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.

34 lines
927 B

2 years ago
  1. #include <stddef.h>
  2. #include <stdio.h>
  3. #include "sdk/os/zos.hpp"
  4. #include "sdk\components\dwin\dwin_screen.hpp"
  5. #define TAG "main"
  6. using namespace iflytop;
  7. using namespace std;
  8. extern void umain();
  9. extern "C" {
  10. void StartDefaultTask(void const* argument) { umain(); }
  11. }
  12. void umain() {
  13. /*******************************************************************************
  14. * *
  15. *******************************************************************************/
  16. chip_cfg_t chipcfg;
  17. chipcfg.us_dleay_tim = &DELAY_US_TIMER;
  18. chipcfg.tim_irq_scheduler_tim = &TIM_IRQ_SCHEDULER_TIMER;
  19. chipcfg.huart = &DEBUG_UART;
  20. chipcfg.debuglight = DEBUG_LIGHT_GPIO;
  21. chip_init(&chipcfg);
  22. zos_cfg_t zoscfg;
  23. zos_init(&zoscfg);
  24. while (true) {
  25. OSDefaultSchduler::getInstance()->loop();
  26. osDelay(1);
  27. }
  28. }