mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
[sbus] fix polarity
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
#define POWER_SWITCH_LED 9
|
||||
|
||||
|
||||
/* Pint to set Uart2 RX polarity, on PB13, output low inverts, high doesn't */
|
||||
/* Pint to set Uart2 RX polarity, on PB13, output high inverts, low doesn't */
|
||||
#define RC_POLARITY_GPIO_PORT GPIOB
|
||||
#define RC_POLARITY_GPIO_PIN GPIO13
|
||||
|
||||
|
||||
@@ -48,11 +48,11 @@
|
||||
* SBUS signal has a reversed polarity compared to normal UART
|
||||
* this allows to using hardware UART peripheral by changing
|
||||
* the input signal polarity.
|
||||
* Setting this gpio ouput low inverts the signal,
|
||||
* output high sets it to normal polarity.
|
||||
* Setting this gpio ouput high inverts the signal,
|
||||
* output low sets it to normal polarity.
|
||||
*/
|
||||
#ifndef RC_SET_POLARITY
|
||||
#define RC_SET_POLARITY gpio_output_low
|
||||
#define RC_SET_POLARITY gpio_output_high
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user