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.

24 lines
381 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #include <stddef.h>
  2. #include <stdio.h>
  3. #include "device.hpp"
  4. #include "project_configs.h"
  5. //
  6. #define TAG "main"
  7. using namespace iflytop;
  8. using namespace std;
  9. extern void umain();
  10. extern "C" {
  11. extern void MX_LWIP_Init(void);
  12. void StartDefaultTask(void const* argument) {
  13. MX_LWIP_Init();
  14. umain();
  15. }
  16. }
  17. Device device;
  18. void umain() {
  19. device.init();
  20. device.loop();
  21. }