Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: blinky_max32630fthr
rtos/rtx/TARGET_ARM7/rt_System.h@0:5c4d7b2438d3, 2016-11-11 (annotated)
- Committer:
- switches
- Date:
- Fri Nov 11 20:59:50 2016 +0000
- Revision:
- 0:5c4d7b2438d3
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
switches | 0:5c4d7b2438d3 | 1 | /*---------------------------------------------------------------------------- |
switches | 0:5c4d7b2438d3 | 2 | * RL-ARM - RTX |
switches | 0:5c4d7b2438d3 | 3 | *---------------------------------------------------------------------------- |
switches | 0:5c4d7b2438d3 | 4 | * Name: RT_SYSTEM.H |
switches | 0:5c4d7b2438d3 | 5 | * Purpose: System Task Manager definitions |
switches | 0:5c4d7b2438d3 | 6 | * Rev.: V4.60 |
switches | 0:5c4d7b2438d3 | 7 | *---------------------------------------------------------------------------- |
switches | 0:5c4d7b2438d3 | 8 | * |
switches | 0:5c4d7b2438d3 | 9 | * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH |
switches | 0:5c4d7b2438d3 | 10 | * All rights reserved. |
switches | 0:5c4d7b2438d3 | 11 | * Redistribution and use in source and binary forms, with or without |
switches | 0:5c4d7b2438d3 | 12 | * modification, are permitted provided that the following conditions are met: |
switches | 0:5c4d7b2438d3 | 13 | * - Redistributions of source code must retain the above copyright |
switches | 0:5c4d7b2438d3 | 14 | * notice, this list of conditions and the following disclaimer. |
switches | 0:5c4d7b2438d3 | 15 | * - Redistributions in binary form must reproduce the above copyright |
switches | 0:5c4d7b2438d3 | 16 | * notice, this list of conditions and the following disclaimer in the |
switches | 0:5c4d7b2438d3 | 17 | * documentation and/or other materials provided with the distribution. |
switches | 0:5c4d7b2438d3 | 18 | * - Neither the name of ARM nor the names of its contributors may be used |
switches | 0:5c4d7b2438d3 | 19 | * to endorse or promote products derived from this software without |
switches | 0:5c4d7b2438d3 | 20 | * specific prior written permission. |
switches | 0:5c4d7b2438d3 | 21 | * |
switches | 0:5c4d7b2438d3 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
switches | 0:5c4d7b2438d3 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
switches | 0:5c4d7b2438d3 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
switches | 0:5c4d7b2438d3 | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
switches | 0:5c4d7b2438d3 | 26 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
switches | 0:5c4d7b2438d3 | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
switches | 0:5c4d7b2438d3 | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
switches | 0:5c4d7b2438d3 | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
switches | 0:5c4d7b2438d3 | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
switches | 0:5c4d7b2438d3 | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
switches | 0:5c4d7b2438d3 | 32 | * POSSIBILITY OF SUCH DAMAGE. |
switches | 0:5c4d7b2438d3 | 33 | *---------------------------------------------------------------------------*/ |
switches | 0:5c4d7b2438d3 | 34 | |
switches | 0:5c4d7b2438d3 | 35 | /* Variables */ |
switches | 0:5c4d7b2438d3 | 36 | #define os_psq ((P_PSQ)&os_fifo) |
switches | 0:5c4d7b2438d3 | 37 | extern int os_tick_irqn; |
switches | 0:5c4d7b2438d3 | 38 | |
switches | 0:5c4d7b2438d3 | 39 | /* Functions */ |
switches | 0:5c4d7b2438d3 | 40 | extern U32 rt_suspend (void); |
switches | 0:5c4d7b2438d3 | 41 | extern void rt_resume (U32 sleep_time); |
switches | 0:5c4d7b2438d3 | 42 | extern void rt_tsk_lock (void); |
switches | 0:5c4d7b2438d3 | 43 | extern void rt_tsk_unlock (void); |
switches | 0:5c4d7b2438d3 | 44 | extern void rt_psh_req (void); |
switches | 0:5c4d7b2438d3 | 45 | extern void rt_pop_req (void); |
switches | 0:5c4d7b2438d3 | 46 | extern void rt_systick (void); |
switches | 0:5c4d7b2438d3 | 47 | extern void rt_stk_check (void); |
switches | 0:5c4d7b2438d3 | 48 | |
switches | 0:5c4d7b2438d3 | 49 | /*---------------------------------------------------------------------------- |
switches | 0:5c4d7b2438d3 | 50 | * end of file |
switches | 0:5c4d7b2438d3 | 51 | *---------------------------------------------------------------------------*/ |
switches | 0:5c4d7b2438d3 | 52 |