usart1.h 382 B

12345678910111213141516171819
  1. /*
  2. * usart.h
  3. * http://www.skybeeper.com/index.php/en/english-en/25-tighten-scanf
  4. */
  5. #ifndef USART1_H_
  6. #define USART1_H_
  7. #include "STM32f10x.h"
  8. //device and usart parameters
  9. #define PLL_FREQUENCY 24000000ul ///< desired target frequency of the core
  10. #define UART1_BAUDRATE 9600
  11. void Usart1Init(void);
  12. void Usart1Put(char ch);
  13. char Usart1Get(void);
  14. #endif /* USART1_H_ */