main.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. ******************************************************************************
  3. * @file Project/main.c
  4. * @author "Vladimir N. Shilov" <shilow@ukr.net>
  5. * @version V0.0.1
  6. * @date 18-December-2018
  7. * @brief Main program body
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * "THE BEER-WARE LICENSE" (Revision 42):
  12. * <shilow@ukr.net> wrote this file. As long as you retain this notice you
  13. * can do whatever you want with this stuff. If we meet some day, and you think
  14. * this stuff is worth it, you can buy me a beer in return. Shilov V.N.
  15. *
  16. ******************************************************************************
  17. */
  18. /* Includes ------------------------------------------------------------------*/
  19. #include "stm8s.h"
  20. /* Private defines -----------------------------------------------------------*/
  21. /* Private function prototypes -----------------------------------------------*/
  22. /* Private functions ---------------------------------------------------------*/
  23. void main(void)
  24. {
  25. /* Infinite loop */
  26. while (1)
  27. {
  28. }
  29. }
  30. #ifdef USE_FULL_ASSERT
  31. /**
  32. * @brief Reports the name of the source file and the source line number
  33. * where the assert_param error has occurred.
  34. * @param file: pointer to the source file name
  35. * @param line: assert_param error line source number
  36. * @retval : None
  37. */
  38. void assert_failed(u8* file, u32 line)
  39. {
  40. /* User can add his own implementation to report the file name and line number,
  41. ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
  42. /* Infinite loop */
  43. while (1)
  44. {
  45. }
  46. }
  47. #endif
  48. /************************ (C) COPYRIGHT Shilov V.N. *****END OF FILE****/