11.6:完善多任务和消息队列机制。

This commit is contained in:
2025-11-06 16:32:17 +08:00
commit 5f408b4ece
337 changed files with 257102 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#ifndef __SysTick_H__
#define __SysTick_H__
#include "stm32f10x.h" // Device header
#define SYSTEM SYSTEM_FREERTOS
#define SYSTEM_NONE 0
#define SYSTEM_FREERTOS 1
#define SYSTEM_UCOSII 2
#define SYSTEM_UCOSIII 3
#define SYSTEM_RT_THREAD 4
#define SYSTEM_AZURE_RTOS 5
typedef struct {
uint8_t ucFacUs;
int16_t usFacMs;
} UcFacInit_t;
static UcFacInit_t xUcFacInit = {
.ucFacUs = 0,
.usFacMs = 0
};
void vSysTickInit(uint8_t ucSYSCLK);
void vDelayUs(uint32_t ulNus);
void vDelayMs(uint16_t usNms);
#endif