MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / disable_rxtx

Method disable_rxtx

libraries/AP_HAL_ChibiOS/UARTDriver.cpp:1891–1899  ·  view source on GitHub ↗

disable TX/RX pins for unusued uart

Source from the content-addressed store, hash-verified

1889
1890// disable TX/RX pins for unusued uart
1891void UARTDriver::disable_rxtx(void) const
1892{
1893 if (arx_line) {
1894 palSetLineMode(arx_line, PAL_MODE_INPUT);
1895 }
1896 if (atx_line) {
1897 palSetLineMode(atx_line, PAL_MODE_INPUT);
1898 }
1899}
1900
1901#endif //CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS

Callers 1

initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected