Dependencies:   EthernetNetIf NetServices mbed HTTPServer

Committer:
etudiant12
Date:
Mon May 23 05:40:11 2011 +0000
Revision:
0:96cf274f19bc

        

Who changed what in which revision?

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