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.

18 lines
513 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #include "gservice.hpp"
  2. #include "a8000_protocol\protocol_event_bus_sender.hpp"
  3. #include "configs/device_id_mgr.hpp"
  4. using namespace iflytop;
  5. void GService::initialize() { //
  6. ZCanReceiver::CFG* zcanreceiver_cfg = zcanreceiver.createCFG(zdevice_id_mgr_get_device_id());
  7. zcanreceiver.initialize(zcanreceiver_cfg);
  8. zcan_protocol_parser.initialize(&zcanreceiver);
  9. ProtocolEventBusSender::inst()->initialize(&zcanreceiver);
  10. }
  11. GService* GService::inst() {
  12. static GService gservice;
  13. return &gservice;
  14. }