| 12345678910111213141516171819 |
- #ifndef __USART_H
- #define __USART_H
- #include "stdio.h"
- #include "sys.h"
- #include "hal_led.h"
- typedef void (*uart_inter_callback_fp) (uint8_t* data, uint8_t len);
- #define USART_REC_LEN 200
- #define EN_USART1_RX 1
- #define RXBUFFERSIZE 1
- void uart_init(u32 bound);
- void HAL_UartIsrCallbackRegister(uart_inter_callback_fp fp);
- void HAL_Usart1SendData(uint8_t* data, uint8_t len);
- #endif
|