| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

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-2010; 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.01.1
14 *
15 * LICENSING TERMS:
16 * ---------------
17 * uC/OS-III is provided in source form to registered licensees ONLY. It is
18 * illegal to distribute this source code to any third party unless you receive
19 * written permission by an authorized Micrium representative. Knowledge of
20 * the source code may NOT be used to develop a similar product.
21 *
22 * Please help us continue to provide the Embedded community with the finest
23 * software available. Your honesty is greatly appreciated.
24 *
25 * You can contact us at www.micrium.com.
26 ************************************************************************************************************************
27 */
28
29 #ifndef OS_CFG_APP_H
30 #define OS_CFG_APP_H
31
32 /*
33 ************************************************************************************************************************
34 * CONSTANTS
35 ************************************************************************************************************************
36 */
37
38 /* --------------------- MISCELLANEOUS ------------------ */
39 #define OS_CFG_MSG_POOL_SIZE 100u /* Maximum number of messages */
40 #define OS_CFG_ISR_STK_SIZE 256u /* Stack size of ISR stack (number of CPU_STK elements) */
41 #define OS_CFG_TASK_STK_LIMIT_PCT_EMPTY 10u /* Stack limit position in percentage to empty */
42
43
44 /* ---------------------- IDLE TASK --------------------- */
45 #define OS_CFG_IDLE_TASK_STK_SIZE 128u /* Stack size (number of CPU_STK elements) */
46
47
48 /* ------------------ ISR HANDLER TASK ------------------ */
49 #define OS_CFG_INT_Q_SIZE 10u /* Size of ISR handler task queue */
50 #define OS_CFG_INT_Q_TASK_STK_SIZE 256u /* Stack size (number of CPU_STK elements) */
51
52
53 /* ------------------- STATISTIC TASK ------------------- */
54 #define OS_CFG_STAT_TASK_PRIO 11u /* Priority */
55 #define OS_CFG_STAT_TASK_RATE_HZ 10u /* Rate of execution (10 Hz Typ.) */
56 #define OS_CFG_STAT_TASK_STK_SIZE 128u /* Stack size (number of CPU_STK elements) */
57
58
59 /* ------------------------ TICKS ----------------------- */
60 #define OS_CFG_TICK_RATE_HZ 1000u /* Tick rate in Hertz (10 to 1000 Hz) */
61 #define OS_CFG_TICK_TASK_PRIO 10u /* Priority */
62 #define OS_CFG_TICK_TASK_STK_SIZE 128u /* Stack size (number of CPU_STK elements) */
63 #define OS_CFG_TICK_WHEEL_SIZE 17u /* Number of 'spokes' in tick wheel; SHOULD be prime */
64
65
66 /* ----------------------- TIMERS ----------------------- */
67 #define OS_CFG_TMR_TASK_PRIO 11u /* Priority of 'Timer Task' */
68 #define OS_CFG_TMR_TASK_RATE_HZ 10u /* Rate for timers (10 Hz Typ.) */
69 #define OS_CFG_TMR_TASK_STK_SIZE 128u /* Stack size (number of CPU_STK elements) */
70 #define OS_CFG_TMR_WHEEL_SIZE 17u /* Number of 'spokes' in timer wheel; SHOULD be prime */
71
72 #endif