Added UART4 and UART5 gpio definitions for stm32f1. Also corrected the naming everywhere. Both peripherals are UARTS not U_S_ARTS.
This commit is contained in:
@@ -79,8 +79,8 @@
|
||||
#define NVIC_SDIO_IRQ 49
|
||||
#define NVIC_TIM5_IRQ 50
|
||||
#define NVIC_SPI3_IRQ 51
|
||||
#define NVIC_USART4_IRQ 52
|
||||
#define NVIC_USART5_IRQ 53
|
||||
#define NVIC_UART4_IRQ 52
|
||||
#define NVIC_UART5_IRQ 53
|
||||
#define NVIC_TIM6_DAC_IRQ 54
|
||||
#define NVIC_TIM7_IRQ 55
|
||||
#define NVIC_DMA2_STREAM0_IRQ 56
|
||||
|
||||
@@ -224,8 +224,8 @@
|
||||
#define RCC_APB1RSTR_I2C3RST (1 << 23)
|
||||
#define RCC_APB1RSTR_I2C2RST (1 << 22)
|
||||
#define RCC_APB1RSTR_I2C1RST (1 << 21)
|
||||
#define RCC_APB1RSTR_USART5RST (1 << 20)
|
||||
#define RCC_APB1RSTR_USART4RST (1 << 19)
|
||||
#define RCC_APB1RSTR_UART5RST (1 << 20)
|
||||
#define RCC_APB1RSTR_UART4RST (1 << 19)
|
||||
#define RCC_APB1RSTR_USART3RST (1 << 18)
|
||||
#define RCC_APB1RSTR_USART2RST (1 << 17)
|
||||
#define RCC_APB1RSTR_SPI3RST (1 << 15)
|
||||
@@ -298,8 +298,8 @@
|
||||
#define RCC_APB1ENR_I2C3EN (1 << 23)
|
||||
#define RCC_APB1ENR_I2C2EN (1 << 22)
|
||||
#define RCC_APB1ENR_I2C1EN (1 << 21)
|
||||
#define RCC_APB1ENR_USART5EN (1 << 20)
|
||||
#define RCC_APB1ENR_USART4EN (1 << 19)
|
||||
#define RCC_APB1ENR_UART5EN (1 << 20)
|
||||
#define RCC_APB1ENR_UART4EN (1 << 19)
|
||||
#define RCC_APB1ENR_USART3EN (1 << 18)
|
||||
#define RCC_APB1ENR_USART2EN (1 << 17)
|
||||
#define RCC_APB1ENR_SPI3EN (1 << 15)
|
||||
@@ -377,8 +377,8 @@
|
||||
#define RCC_APB1LPENR_I2C3LPEN (1 << 23)
|
||||
#define RCC_APB1LPENR_I2C2LPEN (1 << 22)
|
||||
#define RCC_APB1LPENR_I2C1LPEN (1 << 21)
|
||||
#define RCC_APB1LPENR_USART5LPEN (1 << 20)
|
||||
#define RCC_APB1LPENR_USART4LPEN (1 << 19)
|
||||
#define RCC_APB1LPENR_UART5LPEN (1 << 20)
|
||||
#define RCC_APB1LPENR_UART4LPEN (1 << 19)
|
||||
#define RCC_APB1LPENR_USART3LPEN (1 << 18)
|
||||
#define RCC_APB1LPENR_USART2LPEN (1 << 17)
|
||||
#define RCC_APB1LPENR_SPI3LPEN (1 << 15)
|
||||
|
||||
Reference in New Issue
Block a user