Code: Select all
#define SER_RX_FIFO_SIZE 250
// RX Fifo (soft-fifo write by RX complete interrupt)
static u8_t RxFifo[SER_RX_FIFO_SIZE];
Code: Select all
#define SER_RX_FIFO_SIZE 250
// RX Fifo (soft-fifo write by RX complete interrupt)
static u8_t RxFifo[SER_RX_FIFO_SIZE];
Code: Select all
////////////////////////////////////////////////////////////
//! @name structures
//! structures for serial interaction
//! @{
//! @brief
//! structure for serial initialization
typedef struct {
u32_t prescaler; //!< prescaler value for serial port
void *pTxFifo; //!< pointer for TX buffer
void *pRxFifo; //!< pointer for RX buffer
u8_t databits; //!< number of databits ( 5..8)
u8_t stopbits; //!< number of stopbits ( 1..2)
u8_t parity; //!< mode of parity ( see SER_PARITY_..)
u8_t TxFifoSize; //!< size of TX buffer space
u8_t RxFifoSize; //!< size of RX buffer space
u8_t ISRnum; //!< number of VIC channel for ISR routine
} SERInit_t;