/* mock cmcng.h — ota_srv.c 隔离单测用 (gcc, 无 WCH 环境) */ #ifndef __MOCK_CMCNG_H__ #define __MOCK_CMCNG_H__ #include #include typedef struct { uint32_t flag; uint32_t timeout; uint32_t tick; } Flag_Counter; extern Flag_Counter g_flag_counter_key; extern Flag_Counter g_flag_counter_ota; uint32_t mstick(void); void UART2_SendString(uint8_t *buf, uint16_t len); #define PRINT(fmt, ...) printf(fmt, ##__VA_ARGS__) #endif