Dependencies:   PinDetect TextLCD mbed mRotaryEncoder

Committer:
cicklaus
Date:
Mon Feb 13 02:11:20 2012 +0000
Revision:
0:afb2650fb49a

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cicklaus 0:afb2650fb49a 1 //******************************************************************************
cicklaus 0:afb2650fb49a 2 //*
cicklaus 0:afb2650fb49a 3 //* FULLNAME: Single-Chip Microcontroller Real-Time Operating System
cicklaus 0:afb2650fb49a 4 //*
cicklaus 0:afb2650fb49a 5 //* NICKNAME: scmRTOS
cicklaus 0:afb2650fb49a 6 //*
cicklaus 0:afb2650fb49a 7 //* PROCESSOR: ARM Cortex-M3
cicklaus 0:afb2650fb49a 8 //*
cicklaus 0:afb2650fb49a 9 //* TOOLKIT: EWARM (IAR Systems)
cicklaus 0:afb2650fb49a 10 //*
cicklaus 0:afb2650fb49a 11 //* PURPOSE: Project Level Configuration
cicklaus 0:afb2650fb49a 12 //*
cicklaus 0:afb2650fb49a 13 //* Version: 3.10
cicklaus 0:afb2650fb49a 14 //*
cicklaus 0:afb2650fb49a 15 //* $Revision: 196 $
cicklaus 0:afb2650fb49a 16 //* $Date:: 2008-06-19 #$
cicklaus 0:afb2650fb49a 17 //*
cicklaus 0:afb2650fb49a 18 //* Copyright (c) 2003-2010, Harry E. Zhurov
cicklaus 0:afb2650fb49a 19 //*
cicklaus 0:afb2650fb49a 20 //* Permission is hereby granted, free of charge, to any person
cicklaus 0:afb2650fb49a 21 //* obtaining a copy of this software and associated documentation
cicklaus 0:afb2650fb49a 22 //* files (the "Software"), to deal in the Software without restriction,
cicklaus 0:afb2650fb49a 23 //* including without limitation the rights to use, copy, modify, merge,
cicklaus 0:afb2650fb49a 24 //* publish, distribute, sublicense, and/or sell copies of the Software,
cicklaus 0:afb2650fb49a 25 //* and to permit persons to whom the Software is furnished to do so,
cicklaus 0:afb2650fb49a 26 //* subject to the following conditions:
cicklaus 0:afb2650fb49a 27 //*
cicklaus 0:afb2650fb49a 28 //* The above copyright notice and this permission notice shall be included
cicklaus 0:afb2650fb49a 29 //* in all copies or substantial portions of the Software.
cicklaus 0:afb2650fb49a 30 //*
cicklaus 0:afb2650fb49a 31 //* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
cicklaus 0:afb2650fb49a 32 //* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
cicklaus 0:afb2650fb49a 33 //* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
cicklaus 0:afb2650fb49a 34 //* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
cicklaus 0:afb2650fb49a 35 //* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
cicklaus 0:afb2650fb49a 36 //* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
cicklaus 0:afb2650fb49a 37 //* THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
cicklaus 0:afb2650fb49a 38 //*
cicklaus 0:afb2650fb49a 39 //* =================================================================
cicklaus 0:afb2650fb49a 40 //* See http://scmrtos.sourceforge.net for documentation, latest
cicklaus 0:afb2650fb49a 41 //* information, license and contact details.
cicklaus 0:afb2650fb49a 42 //* =================================================================
cicklaus 0:afb2650fb49a 43 //*
cicklaus 0:afb2650fb49a 44 //******************************************************************************
cicklaus 0:afb2650fb49a 45 //* Ported by Andrey Chuikin, Copyright (c) 2008-2010
cicklaus 0:afb2650fb49a 46
cicklaus 0:afb2650fb49a 47 #ifndef scmRTOS_CONFIG_H
cicklaus 0:afb2650fb49a 48 #define scmRTOS_CONFIG_H
cicklaus 0:afb2650fb49a 49
cicklaus 0:afb2650fb49a 50 #ifndef __IAR_SYSTEMS_ASM__
cicklaus 0:afb2650fb49a 51 #include <commdefs.h>
cicklaus 0:afb2650fb49a 52
cicklaus 0:afb2650fb49a 53 typedef word TTimeout;
cicklaus 0:afb2650fb49a 54
cicklaus 0:afb2650fb49a 55 #endif // __IAR_SYSTEMS_ASM__
cicklaus 0:afb2650fb49a 56
cicklaus 0:afb2650fb49a 57 #include "device.h"
cicklaus 0:afb2650fb49a 58 //------------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 59 //
cicklaus 0:afb2650fb49a 60 // Specify scmRTOS Process Count. Must be less than 31
cicklaus 0:afb2650fb49a 61 //
cicklaus 0:afb2650fb49a 62 //
cicklaus 0:afb2650fb49a 63 #define scmRTOS_PROCESS_COUNT 14
cicklaus 0:afb2650fb49a 64
cicklaus 0:afb2650fb49a 65 //-----------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 66 //
cicklaus 0:afb2650fb49a 67 // scmRTOS System Timer
cicklaus 0:afb2650fb49a 68 //
cicklaus 0:afb2650fb49a 69 // Nested Interrupts enable macro. Value 1 means that interrupts are
cicklaus 0:afb2650fb49a 70 // globally enabled within System Timer ISR (this is default for Cortex-M3).
cicklaus 0:afb2650fb49a 71 //
cicklaus 0:afb2650fb49a 72 //
cicklaus 0:afb2650fb49a 73 #define scmRTOS_SYSTIMER_NEST_INTS_ENABLE 1
cicklaus 0:afb2650fb49a 74
cicklaus 0:afb2650fb49a 75 //-----------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 76 //
cicklaus 0:afb2650fb49a 77 // scmRTOS System Timer Tick Counter Enable
cicklaus 0:afb2650fb49a 78 //
cicklaus 0:afb2650fb49a 79 //
cicklaus 0:afb2650fb49a 80 #define scmRTOS_SYSTEM_TICKS_ENABLE 1
cicklaus 0:afb2650fb49a 81
cicklaus 0:afb2650fb49a 82
cicklaus 0:afb2650fb49a 83 //-----------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 84 //
cicklaus 0:afb2650fb49a 85 // scmRTOS System Timer Hook
cicklaus 0:afb2650fb49a 86 //
cicklaus 0:afb2650fb49a 87 //
cicklaus 0:afb2650fb49a 88 #define scmRTOS_SYSTIMER_HOOK_ENABLE 1
cicklaus 0:afb2650fb49a 89
cicklaus 0:afb2650fb49a 90 //-----------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 91 //
cicklaus 0:afb2650fb49a 92 // scmRTOS Idle Process Hook
cicklaus 0:afb2650fb49a 93 //
cicklaus 0:afb2650fb49a 94 //
cicklaus 0:afb2650fb49a 95 #define scmRTOS_IDLE_HOOK_ENABLE 1
cicklaus 0:afb2650fb49a 96
cicklaus 0:afb2650fb49a 97 //-----------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 98 //
cicklaus 0:afb2650fb49a 99 // scmRTOS Idle Process Stack size (in bytes)
cicklaus 0:afb2650fb49a 100 // (20 * sizeof(TStackItem)) - it's a minimum allowed value.
cicklaus 0:afb2650fb49a 101 //
cicklaus 0:afb2650fb49a 102 #define scmRTOS_IDLE_PROCESS_STACK_SIZE (20 * sizeof(TStackItem))
cicklaus 0:afb2650fb49a 103
cicklaus 0:afb2650fb49a 104 //-----------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 105 //
cicklaus 0:afb2650fb49a 106 // scmRTOS Priority Order
cicklaus 0:afb2650fb49a 107 //
cicklaus 0:afb2650fb49a 108 // This macro defines the order of the process's priorities. Default,
cicklaus 0:afb2650fb49a 109 // the ascending order is used. Alternatively, the descending priority
cicklaus 0:afb2650fb49a 110 // order can be used. On some platforms the descending order is preferred
cicklaus 0:afb2650fb49a 111 // because of performance.
cicklaus 0:afb2650fb49a 112 //
cicklaus 0:afb2650fb49a 113 // Default (corresponding to ascending order) value of macro is 0.
cicklaus 0:afb2650fb49a 114 // Alternative (corresponding to descending order) value of macro is 1.
cicklaus 0:afb2650fb49a 115 //
cicklaus 0:afb2650fb49a 116 // On Cortex-M3 the descending order is preferred for performance reason.
cicklaus 0:afb2650fb49a 117 //
cicklaus 0:afb2650fb49a 118 #define scmRTOS_PRIORITY_ORDER 1
cicklaus 0:afb2650fb49a 119
cicklaus 0:afb2650fb49a 120 //-----------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 121 //
cicklaus 0:afb2650fb49a 122 // scmRTOS Context Switch User Hook enable
cicklaus 0:afb2650fb49a 123 //
cicklaus 0:afb2650fb49a 124 // The macro enables/disables user defined hook called from system
cicklaus 0:afb2650fb49a 125 // Context Switch Hook function.
cicklaus 0:afb2650fb49a 126 //
cicklaus 0:afb2650fb49a 127 //
cicklaus 0:afb2650fb49a 128 #define scmRTOS_CONTEXT_SWITCH_USER_HOOK_ENABLE 0
cicklaus 0:afb2650fb49a 129
cicklaus 0:afb2650fb49a 130
cicklaus 0:afb2650fb49a 131 #endif // scmRTOS_CONFIG_H
cicklaus 0:afb2650fb49a 132 //-----------------------------------------------------------------------------
cicklaus 0:afb2650fb49a 133