-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOSConfig.h
34 lines (24 loc) · 920 Bytes
/
OSConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _OSCONFIG_H_
#define _OSCONFIG_H_
#define FREERTOS
#ifdef FREERTOS
#include "freeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"
/* Task priorities. */
#define mainFLASH_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
#define mainCHECK_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE + 50 )
/* Dimensions the buffer into which the jitter time is written. */
#define mainMAX_MSG_LEN 25
/* The time between cycles of the 'check' task. */
#define mainCHECK_DELAY ( ( portTickType ) 5000 / portTICK_RATE_MS )
/* The number of nano seconds between each processor clock. */
//#define mainNS_PER_CLOCK ( ( unsigned portLONG ) ( ( 1.0 / ( double ) configCPU_CLOCK_HZ ) * 1000000000.0 ) )
/*-----------------------------------------------------------*/
#endif
#ifdef FREERTOS
#define RTOS_ENTER_CRITICAL() taskENTER_CRITICAL()
#define RTOS_EXIT_CRITICAL() taskEXIT_CRITICAL()
#endif
#endif