[X9D] Debug UART driver
This commit is contained in:
+10
-3
@@ -82,9 +82,16 @@
|
||||
// Heart Beat
|
||||
#define PIN_HEART_BEAT GPIO_Pin_7 //PC.07
|
||||
|
||||
// Update UART----RS232 ---UART3
|
||||
#define PIN_UPDATE_UART_TX GPIO_Pin_10 //PB.10
|
||||
#define PIN_UPDATE_UART_RX GPIO_Pin_11 //PB.11
|
||||
// Debug UART
|
||||
#define RCC_AHB1Periph_GPIO_UART RCC_AHB1Periph_GPIOB
|
||||
#define RCC_APB1Periph_UART_DEBUG RCC_APB1Periph_USART3
|
||||
#define GPIO_UART GPIOB
|
||||
#define GPIO_PIN_UART_TX GPIO_Pin_10 //PB.10
|
||||
#define GPIO_PIN_UART_RX GPIO_Pin_11 //PB.11
|
||||
#define GPIO_PinSource_UART_TX GPIO_PinSource10
|
||||
#define GPIO_PinSource_UART_RX GPIO_PinSource11
|
||||
#define GPIO_AF_UART GPIO_AF_USART3
|
||||
#define UART_DEBUG USART3
|
||||
|
||||
// USB_OTG
|
||||
#define PIN_FS_VBUS GPIO_Pin_9 //PA.09
|
||||
|
||||
Reference in New Issue
Block a user