26 lines
1013 B
C
26 lines
1013 B
C
/******************************************************************************
|
|
* File: MCU_UART_cfg.c
|
|
* Component: MCU_UART
|
|
* Description: Configuration array definition for the MCU_UART driver.
|
|
*
|
|
* Layer: MCU (hardware abstraction) - configuration
|
|
*****************************************************************************/
|
|
|
|
#include "MCU_UART.h"
|
|
#include "MCU_UART_cfg.h"
|
|
|
|
const MCU_UART_tstrConfig MCU_UART_astrConfig[MCU_UART_NUM_INSTANCES] =
|
|
{
|
|
[MCU_UART_INSTANCE_0] =
|
|
{
|
|
.u8TxPin = MCU_UART_0_TX_PIN,
|
|
.u8RxPin = MCU_UART_0_RX_PIN,
|
|
.u32BaudRate = MCU_UART_0_BAUD_RATE,
|
|
.enuDataBits = MCU_UART_0_DATA_BITS,
|
|
.enuStopBits = MCU_UART_0_STOP_BITS,
|
|
.enuParity = MCU_UART_0_PARITY,
|
|
.enuTxAsyncMode = MCU_UART_0_TX_ASYNC_MODE,
|
|
.pfTxCompleteCallback = MCU_UART_0_TX_COMPLETE_CALLBACK,
|
|
.enuRxAsyncMode = MCU_UART_0_RX_ASYNC_MODE,
|
|
},
|
|
}; |