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.

20 lines
512 B

  1. #include "device.hpp"
  2. #include "project_configs.h"
  3. using namespace iflytop;
  4. extern DMA_HandleTypeDef PC_DEBUG_UART_DMA_HANDLER;
  5. void Device::init() {
  6. chip_cfg_t chipcfg = {};
  7. chipcfg.us_dleay_tim = &PC_SYS_DELAY_US_TIMER;
  8. chipcfg.tim_irq_scheduler_tim = &PC_SYS_TIM_IRQ_SCHEDULER_TIMER;
  9. chipcfg.huart = &PC_DEBUG_UART;
  10. chipcfg.debuglight = PC_DEBUG_LIGHT_GPIO;
  11. chip_init(&chipcfg);
  12. zos_cfg_t zoscfg;
  13. zos_init(&zoscfg);
  14. }
  15. void Device::loop() {}