mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 15:08:37 +03:00
Initial commit
This commit is contained in:
70
external/CMSIS_5/CMSIS/RTOS/RTX/UserCodeTemplates/osObjects.h
vendored
Normal file
70
external/CMSIS_5/CMSIS/RTOS/RTX/UserCodeTemplates/osObjects.h
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
/*----------------------------------------------------------------------------
|
||||
* osObjects.h: CMSIS-RTOS global object definitions for an application
|
||||
*----------------------------------------------------------------------------
|
||||
*
|
||||
* This header file defines global RTOS objects used throughout a project
|
||||
*
|
||||
* #define osObjectsPublic indicates that objects are defined; without that
|
||||
* definition the objects are defined as external symbols.
|
||||
*
|
||||
*--------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef __osObjects
|
||||
#define __osObjects
|
||||
|
||||
#if (!defined (osObjectsPublic))
|
||||
#define osObjectsExternal // define RTOS objects with extern attribute
|
||||
#endif
|
||||
|
||||
#include "cmsis_os.h" // CMSIS RTOS header file
|
||||
|
||||
|
||||
// global 'thread' functions ---------------------------------------------------
|
||||
/*
|
||||
Example:
|
||||
extern void sample_name (void const *argument); // thread function
|
||||
|
||||
osThreadId tid_sample_name; // thread id
|
||||
osThreadDef (sample_name, osPriorityNormal, 1, 0); // thread object
|
||||
*/
|
||||
|
||||
|
||||
// global 'semaphores' ----------------------------------------------------------
|
||||
/*
|
||||
Example:
|
||||
osSemaphoreId sid_sample_name; // semaphore id
|
||||
osSemaphoreDef (sample_name); // semaphore object
|
||||
*/
|
||||
|
||||
|
||||
// global 'memory pools' --------------------------------------------------------
|
||||
/*
|
||||
Example:
|
||||
typedef struct sample_name type_sample_name; // object data type
|
||||
|
||||
osPoolId mpid_sample_name; // memory pool id
|
||||
osPoolDef (sample_name, 16, type_sample_name); // memory pool object
|
||||
*/
|
||||
|
||||
|
||||
// global 'message queues' -------------------------------------------------------
|
||||
/*
|
||||
Example:
|
||||
typedef struct sample_name type_sample_name; // object data type
|
||||
|
||||
osMessageQId mid_sample_name; // message queue id
|
||||
osMessageQDef (sample_name, 16, type_sample_name); // message queue object
|
||||
*/
|
||||
|
||||
|
||||
// global 'mail queues' ----------------------------------------------------------
|
||||
/*
|
||||
Example:
|
||||
typedef struct sample_name type_sample_name; // object data type
|
||||
|
||||
osMailQId qid_sample_name; // mail queue id
|
||||
osMailQDef (sample_name, 16, type_sample_name); // mail queue object
|
||||
*/
|
||||
|
||||
#endif // __osObjects
|
Reference in New Issue
Block a user