mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
[mcu_periph] sane defines for UART bits defines
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user