mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-29 05:33:28 +00:00
15 lines
370 B
C
15 lines
370 B
C
#include "cmsis_os.h" // CMSIS RTOS header file
|
|
|
|
extern void thread_sample (void const *argument); // prototype
|
|
|
|
typedef struct a {
|
|
char y[100];
|
|
} a_element;
|
|
|
|
osThreadDef (thread_sample, osPriorityBelowNormal, 2, 100);
|
|
|
|
osPoolDef(MyPool, 10, struct a);
|
|
osMessageQDef(MyMessage, 10, a_element *);
|
|
osMailQDef(MyMail, 10, a_element);
|
|
|
|
|