main.c 846 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // Пример проекта для платы STM32F0Discovery
  3. // Моргание светодиодом
  4. // teplofizik
  5. //
  6. #define assert_param(a)
  7. #include "stm32f0xx_gpio.h"
  8. #include "stm32f0xx.h"
  9. #include "stm32f0xx_usart.h"
  10. #include "stm32f0xx_syscfg.h"
  11. #include "stm32f0xx_exti.h"
  12. #include "stm32f0xx_rcc.h"
  13. #include "stm32f0xx_spi.h"
  14. #include "stm32f0xx_misc.h"
  15. #include "stm320518_eval_spi_sd.c"
  16. #include "stm320518_eval.c"
  17. #include "stm32f0xx_i2c.c"
  18. #include "stm32f0xx_gpio.c"
  19. #include "stm32f0xx_usart.c"
  20. #include "stm32f0xx_syscfg.c"
  21. #include "stm32f0xx_exti.c"
  22. #include "stm32f0xx_rcc.c"
  23. #include "stm32f0xx_spi.c"
  24. #include "stm32f0xx_misc.c"
  25. int main(void)
  26. {
  27. while(1)
  28. {
  29. // Моргание!
  30. led_On();
  31. delay(200000UL);
  32. led_Off();
  33. delay(200000UL);
  34. }
  35. }