#include "device.hpp" #include "project_configs.h" using namespace iflytop; extern DMA_HandleTypeDef PC_DEBUG_UART_DMA_HANDLER; void Device::init() { chip_cfg_t chipcfg = {}; chipcfg.us_dleay_tim = &PC_SYS_DELAY_US_TIMER; chipcfg.tim_irq_scheduler_tim = &PC_SYS_TIM_IRQ_SCHEDULER_TIMER; chipcfg.huart = &PC_DEBUG_UART; chipcfg.debuglight = PC_DEBUG_LIGHT_GPIO; chip_init(&chipcfg); zos_cfg_t zoscfg; zos_init(&zoscfg); } void Device::loop() {}