diff --git a/sw/airborne/boards/apogee_1.0.h b/sw/airborne/boards/apogee_1.0.h index 49e3c5cc1f..eba373f9d3 100644 --- a/sw/airborne/boards/apogee_1.0.h +++ b/sw/airborne/boards/apogee_1.0.h @@ -113,7 +113,7 @@ #define POWER_SWITCH_LED 9 -/* Uart2 RX polarity, on PB13, 1 on LED_ON, 0 on LED_OFF */ +/* Pint to set Uart2 RX polarity, on PB13, output low inverts, high doesn't */ #define RC_POLARITY_GPIO_PORT GPIOB #define RC_POLARITY_GPIO_PIN GPIO13 diff --git a/sw/airborne/mcu_periph/uart.h b/sw/airborne/mcu_periph/uart.h index e98cafb1f1..84fc1626a6 100644 --- a/sw/airborne/mcu_periph/uart.h +++ b/sw/airborne/mcu_periph/uart.h @@ -51,15 +51,15 @@ #define B230400 230400 #define B921600 921600 -#define UBITS_7 0 -#define UBITS_8 1 +#define UBITS_7 7 +#define UBITS_8 8 -#define USTOP_1 0 -#define USTOP_2 1 +#define USTOP_1 1 +#define USTOP_2 2 #define UPARITY_NO 0 -#define UPARITY_EVEN 1 -#define UPARITY_ODD 2 +#define UPARITY_ODD 1 +#define UPARITY_EVEN 2 /** * UART peripheral