mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
[G4] UART update for RCC_ClockCmd
This commit is contained in:
parent
5c4b206868
commit
feaa145814
1 changed files with 6 additions and 6 deletions
|
@ -95,7 +95,7 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
|
|||
{ DEFIO_TAG_E(PB6), GPIO_AF7_USART1 },
|
||||
{ DEFIO_TAG_E(PC4), GPIO_AF7_USART1 },
|
||||
},
|
||||
.rcc_apb2 = RCC_APB2(USART1),
|
||||
.rcc = RCC_APB2(USART1),
|
||||
.rxIrq = USART1_IRQn,
|
||||
.txPriority = NVIC_PRIO_SERIALUART1_TXDMA,
|
||||
.rxPriority = NVIC_PRIO_SERIALUART1,
|
||||
|
@ -126,7 +126,7 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
|
|||
{ DEFIO_TAG_E(PA14), GPIO_AF7_USART2 },
|
||||
{ DEFIO_TAG_E(PB3), GPIO_AF7_USART2 },
|
||||
},
|
||||
.rcc_apb1 = RCC_APB11(USART2),
|
||||
.rcc = RCC_APB11(USART2),
|
||||
.rxIrq = USART2_IRQn,
|
||||
.txPriority = NVIC_PRIO_SERIALUART2_TXDMA,
|
||||
.rxPriority = NVIC_PRIO_SERIALUART2,
|
||||
|
@ -157,7 +157,7 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
|
|||
{ DEFIO_TAG_E(PB10), GPIO_AF7_USART3 },
|
||||
{ DEFIO_TAG_E(PC10), GPIO_AF7_USART3 },
|
||||
},
|
||||
.rcc_apb1 = RCC_APB11(USART3),
|
||||
.rcc = RCC_APB11(USART3),
|
||||
.rxIrq = USART3_IRQn,
|
||||
.txPriority = NVIC_PRIO_SERIALUART3_TXDMA,
|
||||
.rxPriority = NVIC_PRIO_SERIALUART3,
|
||||
|
@ -184,7 +184,7 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
|
|||
.txPins = {
|
||||
{ DEFIO_TAG_E(PC10), GPIO_AF5_UART4 },
|
||||
},
|
||||
.rcc_apb1 = RCC_APB11(UART4),
|
||||
.rcc = RCC_APB11(UART4),
|
||||
.rxIrq = UART4_IRQn,
|
||||
.txPriority = NVIC_PRIO_SERIALUART4_TXDMA,
|
||||
.rxPriority = NVIC_PRIO_SERIALUART4,
|
||||
|
@ -211,7 +211,7 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
|
|||
.txPins = {
|
||||
{ DEFIO_TAG_E(PC12), GPIO_AF5_UART5 },
|
||||
},
|
||||
.rcc_apb1 = RCC_APB11(UART5),
|
||||
.rcc = RCC_APB11(UART5),
|
||||
.rxIrq = UART5_IRQn,
|
||||
.txPriority = NVIC_PRIO_SERIALUART5_TXDMA,
|
||||
.rxPriority = NVIC_PRIO_SERIALUART5,
|
||||
|
@ -243,7 +243,7 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
|
|||
{ DEFIO_TAG_E(PB11), GPIO_AF8_LPUART1 },
|
||||
{ DEFIO_TAG_E(PC1), GPIO_AF8_LPUART1 },
|
||||
},
|
||||
.rcc_apb1 = RCC_APB12(LPUART1),
|
||||
.rcc = RCC_APB12(LPUART1),
|
||||
.rxIrq = LPUART1_IRQn,
|
||||
.txPriority = NVIC_PRIO_SERIALUART6_TXDMA,
|
||||
.rxPriority = NVIC_PRIO_SERIALUART6,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue