add uart5 confirm lqfp64 target NEUTRONRCF435AIO
This commit is contained in:
parent
eba6a0f3ec
commit
9056674121
|
@ -197,6 +197,40 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_UART5
|
||||||
|
{
|
||||||
|
.device = UARTDEV_5,
|
||||||
|
.reg = UART5,
|
||||||
|
#ifdef USE_DMA
|
||||||
|
.rxDMAMuxId = DMAMUX_DMAREQ_ID_UART5_RX,
|
||||||
|
.rxDMAResource = (dmaResource_t *)UART5_RX_DMA_CHANNEL,
|
||||||
|
.txDMAMuxId = DMAMUX_DMAREQ_ID_UART5_TX,
|
||||||
|
.txDMAResource = (dmaResource_t *)UART5_TX_DMA_CHANNEL,
|
||||||
|
#endif
|
||||||
|
.rxPins = {
|
||||||
|
{ DEFIO_TAG_E(PB5), GPIO_MUX_8 },
|
||||||
|
{ DEFIO_TAG_E(PB8), GPIO_MUX_8 },
|
||||||
|
{ DEFIO_TAG_E(PD2), GPIO_MUX_8 },
|
||||||
|
{ DEFIO_TAG_E(PE11), GPIO_MUX_8 },
|
||||||
|
},
|
||||||
|
.txPins = {
|
||||||
|
{ DEFIO_TAG_E(PB6), GPIO_MUX_8 },
|
||||||
|
{ DEFIO_TAG_E(PB9), GPIO_MUX_8 },
|
||||||
|
{ DEFIO_TAG_E(PC12), GPIO_MUX_8 },
|
||||||
|
{ DEFIO_TAG_E(PE10), GPIO_MUX_8 },
|
||||||
|
},
|
||||||
|
.rcc = RCC_APB1(UART5),
|
||||||
|
.irqn = UART5_IRQn,
|
||||||
|
.txPriority = NVIC_PRIO_SERIALUART5_TXDMA,
|
||||||
|
.rxPriority = NVIC_PRIO_SERIALUART5,
|
||||||
|
.txBuffer = uart5TxBuffer,
|
||||||
|
.rxBuffer = uart5RxBuffer,
|
||||||
|
.txBufferSize = sizeof(uart5TxBuffer),
|
||||||
|
.rxBufferSize = sizeof(uart5RxBuffer),
|
||||||
|
},
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_UART8
|
#ifdef USE_UART8
|
||||||
{
|
{
|
||||||
.device = UARTDEV_8,
|
.device = UARTDEV_8,
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
* BOOT0 button
|
* BOOT0 button
|
||||||
* PA8 MCO1
|
* PA8 MCO1
|
||||||
* PA12 OTG1 D+ DP
|
* PA12 OTG1 D+ DP
|
||||||
* PA11 OTG1 D- DN
|
* PA11 OTG1 D- DM
|
||||||
* PH0 HEXT IN
|
* PH0 HEXT IN
|
||||||
* PH1 HEXT OUT
|
* PH1 HEXT OUT
|
||||||
*/
|
*/
|
||||||
|
@ -156,9 +156,10 @@
|
||||||
#define UART4_RX_PIN PC11
|
#define UART4_RX_PIN PC11
|
||||||
#define UART4_TX_PIN PC10
|
#define UART4_TX_PIN PC10
|
||||||
|
|
||||||
|
//uart5 与i2c 复用,如果启用uart5 需要关闭i2c 的所有设备
|
||||||
#define USE_UART5
|
#define USE_UART5
|
||||||
#define UART8_RX_PIN PD2
|
#define UART5_RX_PIN PD2
|
||||||
#define UART8_TX_PIN PC12
|
#define UART5_TX_PIN PC12
|
||||||
|
|
||||||
//#define USE_SOFTSERIAL1
|
//#define USE_SOFTSERIAL1
|
||||||
//#define USE_SOFTSERIAL2
|
//#define USE_SOFTSERIAL2
|
||||||
|
|
Loading…
Reference in New Issue