expansion_disable

Function expansion_disable 

Source
pub unsafe extern "C" fn expansion_disable(instance: *mut Expansion)
Expand description

Disable support for expansion modules.

Calling this function will cease all communications with the expansion module (if any), release the serial handle and reset the respective pins to the default state.

Note: Applications requiring serial port access MUST call this function BEFORE calling furi_hal_serial_control_acquire(). Similarly, an expansion_enable() call MUST be made right AFTER a call to furi_hal_serial_control_release() to ensure that the user settings are properly restored.

ยงArguments

  • instance (direction in, out) - pointer to the Expansion instance.