Dependencies: PinDetect TextLCD mbed mRotaryEncoder
scmRTOS/CortexM3/device.h@0:afb2650fb49a, 2012-02-13 (annotated)
- Committer:
- cicklaus
- Date:
- Mon Feb 13 02:11:20 2012 +0000
- Revision:
- 0:afb2650fb49a
Who changed what in which revision?
User | Revision | Line number | New 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: Device Definitions |
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 DEVICE_H |
cicklaus | 0:afb2650fb49a | 48 | #define DEVICE_H |
cicklaus | 0:afb2650fb49a | 49 | |
cicklaus | 0:afb2650fb49a | 50 | #include <commdefs.h> |
cicklaus | 0:afb2650fb49a | 51 | |
cicklaus | 0:afb2650fb49a | 52 | //------------------------------------------------------------------------------ |
cicklaus | 0:afb2650fb49a | 53 | // Definitions for some processor registers in order to not include specific |
cicklaus | 0:afb2650fb49a | 54 | // header file for various Cortex-M3 processor derivatives. |
cicklaus | 0:afb2650fb49a | 55 | #define CPU_ICSR ( ( sfr_dword *) 0xE000ED04 ) // Interrupt Control State Register |
cicklaus | 0:afb2650fb49a | 56 | #define CPU_SYSTICKCSR ( ( sfr_dword *) 0xE000E010 ) // SysTick Control and Status Register |
cicklaus | 0:afb2650fb49a | 57 | #define CPU_SYSTICKCSR_EINT 0x02 // Bit for enable/disable SysTick interrupt |
cicklaus | 0:afb2650fb49a | 58 | |
cicklaus | 0:afb2650fb49a | 59 | |
cicklaus | 0:afb2650fb49a | 60 | #endif /* DEVICE_H */ |