187 extern void uart_dma_enable(
unsigned char rx_dma_en,
unsigned char tx_dma_en);
197 extern void uart_irq_enable(
unsigned char rx_irq_en,
unsigned char tx_irq_en);
236 extern volatile unsigned char uart_dma_send(
unsigned char* Addr);
254 extern void uart_recbuff_init(
unsigned char *RecvAddr,
unsigned short RecvBufLen);
static void uart_reset(void)
This function resets the UART module.
Definition: uart.h:136
Definition: gpio_8258.h:58
void uart_ndma_irq_triglevel(unsigned char rx_level, unsigned char tx_level)
config the number level setting the irq bit of status register 0x9d ie 0x9d[3]. uart_ndma_get_irq If ...
Definition: gpio_8258.h:47
Definition: gpio_8258.h:56
Definition: gpio_8258.h:73
void uart_gpio_set(UART_TxPinDef tx_pin, UART_RxPinDef rx_pin)
This function serves to select pin for UART module.
void uart_recbuff_init(unsigned char *RecvAddr, unsigned short RecvBufLen)
data receive buffer initiate function. DMA would move received uart data to the address space...
Definition: gpio_8258.h:49
Definition: gpio_8258.h:69
Definition: gpio_8258.h:80
#define reg_uart_status1
Definition: register_8258.h:342
void uart_dma_enable(unsigned char rx_dma_en, unsigned char tx_dma_en)
enable uart DMA mode
UART_ParityTypeDef
Define parity type.
Definition: uart.h:48
void uart_set_cts(unsigned char Enable, unsigned char Select, UART_CtsPinDef pin)
UART hardware flow control configuration. Configure CTS pin.
UART_RtsPinDef
Define UART RTS pin : A4 B3 B6 C0.
Definition: uart.h:111
static unsigned char uart_tx_is_busy(void)
This function servers to indicate Tx state.
Definition: uart.h:125
void uart_clear_parity_error(void)
This function clears parity error status once when it occurs.
Definition: gpio_8258.h:68
UART_RxPinDef
Define UART RX pin: A0 B0 B7 C3 C5 D6.
Definition: uart.h:87
Definition: gpio_8258.h:67
void uart_ndma_send_byte(unsigned char uartData)
uart send data function with not DMA method. variable uart_TxIndex,it must cycle the four registers 0...
UART_RTSModeTypeDef
Define UART RTS mode.
Definition: uart.h:66
#define BIT(n)
Definition: bsp.h:33
Definition: gpio_8258.h:64
Definition: gpio_8258.h:55
Definition: gpio_8258.h:62
Definition: gpio_8258.h:76
void uart_irq_enable(unsigned char rx_irq_en, unsigned char tx_irq_en)
config the irq of uart tx and rx
Definition: gpio_8258.h:45
unsigned char uart_is_parity_error(void)
This function determines whether parity error occurs once a packet arrives.
Definition: register_8258.h:147
unsigned char uart_ndmairq_get(void)
get the status of uart irq.
Definition: register_8258.h:344
#define reg_rst0
Definition: register_8258.h:143
volatile unsigned char uart_send_byte(unsigned char byte)
uart send data function, this function tell the DMA to get data from the RAM and start the DMA transm...
UART_StopBitTypeDef
Define the length of stop bit.
Definition: uart.h:57
UART_CtsPinDef
Define UART CTS pin : A3 B2 C4 D1.
Definition: uart.h:100
Definition: gpio_8258.h:57
UART_TxPinDef
Define UART TX pin:A2 B1 D0 D3 D7.
Definition: uart.h:75
volatile unsigned char uart_dma_send(unsigned char *Addr)
uart send data function, this function tell the DMA to get data from the RAM and start the DMA transm...
void uart_set_rts(unsigned char Enable, UART_RTSModeTypeDef Mode, unsigned char Thresh, unsigned char Invert, UART_RtsPinDef pin)
UART hardware flow control configuration. Configure RTS pin.
void uart_init_baudrate(unsigned int Baudrate, unsigned int System_clock, UART_ParityTypeDef Parity, UART_StopBitTypeDef StopBit)
This function initializes the UART module.
void uart_init(unsigned short g_uart_div, unsigned char g_bwpc, UART_ParityTypeDef Parity, UART_StopBitTypeDef StopBit)
This function initializes the UART module.
void uart_set_rts_level(unsigned char Polarity)
This function sets the RTS pin's level manually.
Definition: gpio_8258.h:61
Definition: gpio_8258.h:48
Definition: gpio_8258.h:74
Definition: gpio_8258.h:79