LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
os_cfg_app.h
Go to the documentation of this file.
1 /*
2 ************************************************************************************************************************
3 * uC/OS-III
4 * The Real-Time Kernel
5 *
6 * (c) Copyright 2009-2012; Micrium, Inc.; Weston, FL
7 * All rights reserved. Protected by international copyright laws.
8 *
9 * OS CONFIGURATION (APPLICATION SPECIFICS)
10 *
11 * File : OS_CFG_APP.H
12 * By : JJL
13 * Version : V3.03.00
14 *
15 * LICENSING TERMS:
16 * ---------------
17 * uC/OS-III is provided in source form for FREE short-term evaluation, for educational use or
18 * for peaceful research. If you plan or intend to use uC/OS-III in a commercial application/
19 * product then, you need to contact Micrium to properly license uC/OS-III for its use in your
20 * application/product. We provide ALL the source code for your convenience and to help you
21 * experience uC/OS-III. The fact that the source is provided does NOT mean that you can use
22 * it commercially without paying a licensing fee.
23 *
24 * Knowledge of the source code may NOT be used to develop a similar product.
25 *
26 * Please help us continue to provide the embedded community with the finest software available.
27 * Your honesty is greatly appreciated.
28 *
29 * You can contact us at www.micrium.com, or by phone at +1 (954) 217-2036.
30 ************************************************************************************************************************
31 */
32 
33 #ifndef OS_CFG_APP_H
34 #define OS_CFG_APP_H
35 
36 /*
37 ************************************************************************************************************************
38 * CONSTANTS
39 ************************************************************************************************************************
40 */
41 
42  /* --------------------- MISCELLANEOUS ------------------ */
43 #define OS_CFG_MSG_POOL_SIZE 100u /* Maximum number of messages */
44 #define OS_CFG_ISR_STK_SIZE 128u /* Stack size of ISR stack (number of CPU_STK elements) */
45 #define OS_CFG_TASK_STK_LIMIT_PCT_EMPTY 10u /* Stack limit position in percentage to empty */
46 
47 
48  /* ---------------------- IDLE TASK --------------------- */
49 #define OS_CFG_IDLE_TASK_STK_SIZE 64u /* Stack size (number of CPU_STK elements) */
50 
51 
52  /* ------------------ ISR HANDLER TASK ------------------ */
53 #define OS_CFG_INT_Q_SIZE 10u /* Size of ISR handler task queue */
54 #define OS_CFG_INT_Q_TASK_STK_SIZE 128u /* Stack size (number of CPU_STK elements) */
55 
56 
57  /* ------------------- STATISTIC TASK ------------------- */
58 #define OS_CFG_STAT_TASK_PRIO 11u /* Priority */
59 #define OS_CFG_STAT_TASK_RATE_HZ 10u /* Rate of execution (1 to 10 Hz) */
60 #define OS_CFG_STAT_TASK_STK_SIZE 128u /* Stack size (number of CPU_STK elements) */
61 
62 
63  /* ------------------------ TICKS ----------------------- */
64 #define OS_CFG_TICK_RATE_HZ 1000u /* Tick rate in Hertz (10 to 1000 Hz) */
65 #define OS_CFG_TICK_TASK_PRIO 10u /* Priority */
66 #define OS_CFG_TICK_TASK_STK_SIZE 128u /* Stack size (number of CPU_STK elements) */
67 #define OS_CFG_TICK_WHEEL_SIZE 17u /* Number of 'spokes' in tick wheel; SHOULD be prime */
68 
69 
70  /* ----------------------- TIMERS ----------------------- */
71 #define OS_CFG_TMR_TASK_PRIO 11u /* Priority of 'Timer Task' */
72 #define OS_CFG_TMR_TASK_RATE_HZ 10u /* Rate for timers (10 Hz Typ.) */
73 #define OS_CFG_TMR_TASK_STK_SIZE 128u /* Stack size (number of CPU_STK elements) */
74 #define OS_CFG_TMR_WHEEL_SIZE 17u /* Number of 'spokes' in timer wheel; SHOULD be prime */
75 
76 #endif