Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

53 rader
1.4 KiB

  1. /**
  2. ******************************************************************************
  3. * @file usart.h
  4. * @brief This file contains all the function prototypes for
  5. * the usart.c file
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __USART_H__
  21. #define __USART_H__
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "main.h"
  27. #include "stdio.h"
  28. /* USER CODE BEGIN Includes */
  29. int fputc(int ch, FILE *f);
  30. /* USER CODE END Includes */
  31. extern UART_HandleTypeDef huart1;
  32. /* USER CODE BEGIN Private defines */
  33. /* USER CODE END Private defines */
  34. void MX_USART1_UART_Init(void);
  35. /* USER CODE BEGIN Prototypes */
  36. /* USER CODE END Prototypes */
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif /* __USART_H__ */
  41. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/