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
489 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdio.h>
  4. #include <functional>
  5. #include "sdk\components\zcanreceiver\zcanreceiver.hpp"
  6. namespace iflytop {
  7. using namespace std;
  8. class Main : public ZCanRceiverListener {
  9. private:
  10. /* data */
  11. public:
  12. virtual void onRceivePacket(CanPacketRxBuffer *rxbuf, uint8_t *packet, size_t len);
  13. Main(/* args */){};
  14. ~Main(){};
  15. void run();
  16. };
  17. extern Main gmain;
  18. } // namespace iflytop
  19. extern "C" {
  20. void umain(void) { iflytop::gmain.run(); }
  21. }