kasturi rangan raghavan / Mbed 2 deprecated QRS_cpp

Dependencies:   mbed

Committer:
kasturir
Date:
Mon Sep 27 22:51:19 2010 +0000
Revision:
0:906c21fbf97c

        

Who changed what in which revision?

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