uart_conf.h 339 B

123456789101112131415161718
  1. #ifndef __UART_CONF_H__
  2. #define __UART_CONF_H__
  3. #include "stm32f10x.h"
  4. #define USART1_BUF_SIZE 256 //接收一、二级缓冲区大小,缺省值2000
  5. enum {
  6. PT_OFF = 0,
  7. PT_ON = 1,
  8. };
  9. typedef struct _PT_TEST_{
  10. uint8_t bTestStart; // 产测开始
  11. }PtTest;
  12. extern PtTest g_ptTest;
  13. void uart_cmd_task(uint8_t *data, uint8_t len);
  14. #endif