CMake构建CH58x项目,脱离eclipse使用Clion或者Vscode编写代码。
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.

37 lines
908 B

#ifndef TASK_H
#define TASK_H
#include "FreeRTOS.h"
#include "FreeRTOSConfig.h"
#include "task.h"
#include "semphr.h"
#include "CH58x_common.h"
#include "stdio.h"
#include "api-gpio.h"
#include "api-uart.h"
#include "array.h"
// 任务优先级
typedef enum {
Priority_IDLE = 0,
Priority_VeryLOW,
Priority_LOW,
Priority_MID,
Priority_HIGH,
Priority_VeryHIGH,
} Priority_Typedef;
// 返回值
#define myTaskCreate(task, taskName, size, param, priority, handle) \
xTaskCreate((TaskFunction_t)task, \
(const char *)taskName, \
(uint16_t)size, \
(void *)param, \
(UBaseType_t)priority, \
(TaskHandle_t *)handle)
void MyRtos_Init(void);
#endif