sick_dt35/User/task/mointor.c
2025-04-02 20:51:10 +08:00

21 lines
867 B
C

/* 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 秒
}
}