[sbus] fix polarity

This commit is contained in:
Felix Ruess
2013-07-23 16:45:41 +02:00
parent 7f7c20927a
commit 72a8f1715a
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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