Stair56E UART project
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef __BSP_UART_H_
|
||||
#define __BSP_UART_H_
|
||||
|
||||
|
||||
//#define BAUD_115200 0x0C002711
|
||||
//#define BAUD_57600 0x06002711
|
||||
|
||||
#define BAUD_115200 0x04802711
|
||||
|
||||
extern void Init_uart(uint32_t ch , uint32_t baud);
|
||||
extern void Uart_Send_Char(uint32_t ch, uint8_t c);
|
||||
extern void Uart_Send_String(uint32_t ch, uint8_t *s);
|
||||
extern void Uart_Send_Buf(uint32_t ch, uint8_t *s,uint32_t length);
|
||||
#endif
|
||||
Reference in New Issue
Block a user