chokchai Hantanong
/
RtosTest
LED Fork
Fork of RtosTest by
scmRTOS/CortexM3/device.h@0:331db0b44b67, 2010-09-21 (annotated)
- Committer:
- mbed714
- Date:
- Tue Sep 21 19:48:05 2010 +0000
- Revision:
- 0:331db0b44b67
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed714 | 0:331db0b44b67 | 1 | //****************************************************************************** |
mbed714 | 0:331db0b44b67 | 2 | //* |
mbed714 | 0:331db0b44b67 | 3 | //* FULLNAME: Single-Chip Microcontroller Real-Time Operating System |
mbed714 | 0:331db0b44b67 | 4 | //* |
mbed714 | 0:331db0b44b67 | 5 | //* NICKNAME: scmRTOS |
mbed714 | 0:331db0b44b67 | 6 | //* |
mbed714 | 0:331db0b44b67 | 7 | //* PROCESSOR: ARM Cortex-M3 |
mbed714 | 0:331db0b44b67 | 8 | //* |
mbed714 | 0:331db0b44b67 | 9 | //* TOOLKIT: EWARM (IAR Systems) |
mbed714 | 0:331db0b44b67 | 10 | //* |
mbed714 | 0:331db0b44b67 | 11 | //* PURPOSE: Device Definitions |
mbed714 | 0:331db0b44b67 | 12 | //* |
mbed714 | 0:331db0b44b67 | 13 | //* Version: 3.10 |
mbed714 | 0:331db0b44b67 | 14 | //* |
mbed714 | 0:331db0b44b67 | 15 | //* $Revision: 196 $ |
mbed714 | 0:331db0b44b67 | 16 | //* $Date:: 2008-06-19 #$ |
mbed714 | 0:331db0b44b67 | 17 | //* |
mbed714 | 0:331db0b44b67 | 18 | //* Copyright (c) 2003-2010, Harry E. Zhurov |
mbed714 | 0:331db0b44b67 | 19 | //* |
mbed714 | 0:331db0b44b67 | 20 | //* Permission is hereby granted, free of charge, to any person |
mbed714 | 0:331db0b44b67 | 21 | //* obtaining a copy of this software and associated documentation |
mbed714 | 0:331db0b44b67 | 22 | //* files (the "Software"), to deal in the Software without restriction, |
mbed714 | 0:331db0b44b67 | 23 | //* including without limitation the rights to use, copy, modify, merge, |
mbed714 | 0:331db0b44b67 | 24 | //* publish, distribute, sublicense, and/or sell copies of the Software, |
mbed714 | 0:331db0b44b67 | 25 | //* and to permit persons to whom the Software is furnished to do so, |
mbed714 | 0:331db0b44b67 | 26 | //* subject to the following conditions: |
mbed714 | 0:331db0b44b67 | 27 | //* |
mbed714 | 0:331db0b44b67 | 28 | //* The above copyright notice and this permission notice shall be included |
mbed714 | 0:331db0b44b67 | 29 | //* in all copies or substantial portions of the Software. |
mbed714 | 0:331db0b44b67 | 30 | //* |
mbed714 | 0:331db0b44b67 | 31 | //* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
mbed714 | 0:331db0b44b67 | 32 | //* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
mbed714 | 0:331db0b44b67 | 33 | //* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
mbed714 | 0:331db0b44b67 | 34 | //* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
mbed714 | 0:331db0b44b67 | 35 | //* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
mbed714 | 0:331db0b44b67 | 36 | //* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH |
mbed714 | 0:331db0b44b67 | 37 | //* THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
mbed714 | 0:331db0b44b67 | 38 | //* |
mbed714 | 0:331db0b44b67 | 39 | //* ================================================================= |
mbed714 | 0:331db0b44b67 | 40 | //* See http://scmrtos.sourceforge.net for documentation, latest |
mbed714 | 0:331db0b44b67 | 41 | //* information, license and contact details. |
mbed714 | 0:331db0b44b67 | 42 | //* ================================================================= |
mbed714 | 0:331db0b44b67 | 43 | //* |
mbed714 | 0:331db0b44b67 | 44 | //****************************************************************************** |
mbed714 | 0:331db0b44b67 | 45 | //* Ported by Andrey Chuikin, Copyright (c) 2008-2010 |
mbed714 | 0:331db0b44b67 | 46 | |
mbed714 | 0:331db0b44b67 | 47 | #ifndef DEVICE_H |
mbed714 | 0:331db0b44b67 | 48 | #define DEVICE_H |
mbed714 | 0:331db0b44b67 | 49 | |
mbed714 | 0:331db0b44b67 | 50 | #include <commdefs.h> |
mbed714 | 0:331db0b44b67 | 51 | |
mbed714 | 0:331db0b44b67 | 52 | //------------------------------------------------------------------------------ |
mbed714 | 0:331db0b44b67 | 53 | // Definitions for some processor registers in order to not include specific |
mbed714 | 0:331db0b44b67 | 54 | // header file for various Cortex-M3 processor derivatives. |
mbed714 | 0:331db0b44b67 | 55 | #define CPU_ICSR ( ( sfr_dword *) 0xE000ED04 ) // Interrupt Control State Register |
mbed714 | 0:331db0b44b67 | 56 | #define CPU_SYSTICKCSR ( ( sfr_dword *) 0xE000E010 ) // SysTick Control and Status Register |
mbed714 | 0:331db0b44b67 | 57 | #define CPU_SYSTICKCSR_EINT 0x02 // Bit for enable/disable SysTick interrupt |
mbed714 | 0:331db0b44b67 | 58 | |
mbed714 | 0:331db0b44b67 | 59 | |
mbed714 | 0:331db0b44b67 | 60 | #endif /* DEVICE_H */ |