/* Includes ----------------------------------------------------------------- */ #include "device\can.h" #include "task\user_task.h" #include "bsp\led.h" /* Private typedef ---------------------------------------------------------- */ /* Private define ----------------------------------------------------------- */ /* Private macro ------------------------------------------------------------ */ /* Private variables -------------------------------------------------------- */ /* Private function --------------------------------------------------------- */ /* Exported functions ------------------------------------------------------- */ void Task_Monitor(void *argument) { (void)argument; // 消除未使用参数的警告 while (1) { BSP_LED_SET(BSP_LED1, BSP_LED_TAGGLE); // 切换 LED 状态 HAL_Delay(1000); // 延时 1 秒 } }