usart.h 691 B

1234567891011121314151617181920212223242526
  1. #ifndef __USART_AS_H
  2. #define __USART_AS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /* 包含头文件-----------------------------------------------------------------*/
  7. #include "stm32f10x.h"
  8. /* 宏定义---------------------------------------------------------------------*/
  9. /* 类型定义-------------------------------------------------------------------*/
  10. /* 全局变量-------------------------------------------------------------------*/
  11. /* 函数原型-------------------------------------------------------------------*/
  12. void usart1_config(uint32_t baud);
  13. void usart2_config(uint32_t baud);
  14. void usart3_config(uint32_t baud);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif /* usart.h */