You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
522 B

2 years ago
  1. #include "main.hpp"
  2. #include <stddef.h>
  3. #include <stdio.h>
  4. #include "main.h"
  5. #include "project.hpp"
  6. #include "sdk\chip\iflytop_no_os.h"
  7. #include "usart.h"
  8. namespace iflytop {
  9. Main gmain;
  10. };
  11. using namespace iflytop;
  12. void Main::run() {
  13. // for (size_t i = 0; i < 100; i++) {
  14. // uint8_t c = '1';
  15. // HAL_UART_Transmit(&DEBUG_UART, &c, 1, 100);
  16. // }
  17. iflytop_no_os_cfg_t cfg = {
  18. .delayhtim = &DELAY_US_TIMER,
  19. .debuguart = &DEBUG_UART,
  20. };
  21. iflytop_no_os_init(&cfg);
  22. printf("Hello World!\r\n");
  23. }