-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathosconfig.h
36 lines (30 loc) · 1.74 KB
/
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
35
36
/*************************************************************************\
* File Name : conf.h *
* --------------------------------------------------------------------- *
* Title : uXOS Cooperative system hardware config file *
* Revision : V1.0 *
* Notes : *
* *
* --------------------------------------------------------------------- *
* Revision History: *
* When Who Revision Description of change *
* ----------- ----------- --------- ------------------------ *
* 19-08-2011 charlie V1.0 Created the program *
* *
\*************************************************************************/
#ifndef __CONF_H__
#define __CONF_H__
#include "stm32f10x_conf.h"
///////////////////////////////////////////////////////////////////////////
#define MAX_TASK_NUM 6
#define TIMER_NUMBER 6
///////////////////////////////////////////////////////////////////////////
#define CODE const //code
#define DATA //data
///////////////////////////////////////////////////////////////////////////
#define ENABLE_ISR() __enable_irq()
#define DISABLE_ISR() __disable_irq()
#define CLEAR_SYS_WDT() IWDG_ReloadCounter();
//#define NOP() __wait_nop()
///////////////////////////////////////////////////////////////////////////
#endif /* __CONF_H */