fork

Committer:
mbed_official
Date:
Mon Jun 01 11:00:36 2015 +0100
Revision:
80:2dab120a94c2
Synchronized with git revision 7a1d25e3dfbe5bc1457774d4af3c73383a0ff81d

Full URL: https://github.com/mbedmicro/mbed/commit/7a1d25e3dfbe5bc1457774d4af3c73383a0ff81d/

Silicon Labs - Initial test framework pin definitions for EFM32 platforms

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 80:2dab120a94c2 1 /*----------------------------------------------------------------------------
mbed_official 80:2dab120a94c2 2 * RL-ARM - RTX
mbed_official 80:2dab120a94c2 3 *----------------------------------------------------------------------------
mbed_official 80:2dab120a94c2 4 * Name: RT_TASK.H
mbed_official 80:2dab120a94c2 5 * Purpose: Task functions and system start up.
mbed_official 80:2dab120a94c2 6 * Rev.: V4.60
mbed_official 80:2dab120a94c2 7 *----------------------------------------------------------------------------
mbed_official 80:2dab120a94c2 8 *
mbed_official 80:2dab120a94c2 9 * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH
mbed_official 80:2dab120a94c2 10 * All rights reserved.
mbed_official 80:2dab120a94c2 11 * Redistribution and use in source and binary forms, with or without
mbed_official 80:2dab120a94c2 12 * modification, are permitted provided that the following conditions are met:
mbed_official 80:2dab120a94c2 13 * - Redistributions of source code must retain the above copyright
mbed_official 80:2dab120a94c2 14 * notice, this list of conditions and the following disclaimer.
mbed_official 80:2dab120a94c2 15 * - Redistributions in binary form must reproduce the above copyright
mbed_official 80:2dab120a94c2 16 * notice, this list of conditions and the following disclaimer in the
mbed_official 80:2dab120a94c2 17 * documentation and/or other materials provided with the distribution.
mbed_official 80:2dab120a94c2 18 * - Neither the name of ARM nor the names of its contributors may be used
mbed_official 80:2dab120a94c2 19 * to endorse or promote products derived from this software without
mbed_official 80:2dab120a94c2 20 * specific prior written permission.
mbed_official 80:2dab120a94c2 21 *
mbed_official 80:2dab120a94c2 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 80:2dab120a94c2 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 80:2dab120a94c2 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
mbed_official 80:2dab120a94c2 25 * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
mbed_official 80:2dab120a94c2 26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
mbed_official 80:2dab120a94c2 27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
mbed_official 80:2dab120a94c2 28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
mbed_official 80:2dab120a94c2 29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
mbed_official 80:2dab120a94c2 30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
mbed_official 80:2dab120a94c2 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
mbed_official 80:2dab120a94c2 32 * POSSIBILITY OF SUCH DAMAGE.
mbed_official 80:2dab120a94c2 33 *---------------------------------------------------------------------------*/
mbed_official 80:2dab120a94c2 34
mbed_official 80:2dab120a94c2 35 /* Definitions */
mbed_official 80:2dab120a94c2 36 #define __CMSIS_RTOS 1
mbed_official 80:2dab120a94c2 37
mbed_official 80:2dab120a94c2 38 /* Values for 'state' */
mbed_official 80:2dab120a94c2 39 #define INACTIVE 0
mbed_official 80:2dab120a94c2 40 #define READY 1
mbed_official 80:2dab120a94c2 41 #define RUNNING 2
mbed_official 80:2dab120a94c2 42 #define WAIT_DLY 3
mbed_official 80:2dab120a94c2 43 #define WAIT_ITV 4
mbed_official 80:2dab120a94c2 44 #define WAIT_OR 5
mbed_official 80:2dab120a94c2 45 #define WAIT_AND 6
mbed_official 80:2dab120a94c2 46 #define WAIT_SEM 7
mbed_official 80:2dab120a94c2 47 #define WAIT_MBX 8
mbed_official 80:2dab120a94c2 48 #define WAIT_MUT 9
mbed_official 80:2dab120a94c2 49
mbed_official 80:2dab120a94c2 50 /* Return codes */
mbed_official 80:2dab120a94c2 51 #define OS_R_TMO 0x01
mbed_official 80:2dab120a94c2 52 #define OS_R_EVT 0x02
mbed_official 80:2dab120a94c2 53 #define OS_R_SEM 0x03
mbed_official 80:2dab120a94c2 54 #define OS_R_MBX 0x04
mbed_official 80:2dab120a94c2 55 #define OS_R_MUT 0x05
mbed_official 80:2dab120a94c2 56
mbed_official 80:2dab120a94c2 57 #define OS_R_OK 0x00
mbed_official 80:2dab120a94c2 58 #define OS_R_NOK 0xff
mbed_official 80:2dab120a94c2 59
mbed_official 80:2dab120a94c2 60 /* Variables */
mbed_official 80:2dab120a94c2 61 extern struct OS_TSK os_tsk;
mbed_official 80:2dab120a94c2 62 extern struct OS_TCB os_idle_TCB;
mbed_official 80:2dab120a94c2 63
mbed_official 80:2dab120a94c2 64 /* Functions */
mbed_official 80:2dab120a94c2 65 extern void rt_switch_req (P_TCB p_new);
mbed_official 80:2dab120a94c2 66 extern void rt_dispatch (P_TCB next_TCB);
mbed_official 80:2dab120a94c2 67 extern void rt_block (U16 timeout, U8 block_state);
mbed_official 80:2dab120a94c2 68 extern void rt_tsk_pass (void);
mbed_official 80:2dab120a94c2 69 extern OS_TID rt_tsk_self (void);
mbed_official 80:2dab120a94c2 70 extern OS_RESULT rt_tsk_prio (OS_TID task_id, U8 new_prio);
mbed_official 80:2dab120a94c2 71 extern OS_RESULT rt_tsk_delete (OS_TID task_id);
mbed_official 80:2dab120a94c2 72 extern void rt_sys_init (void);
mbed_official 80:2dab120a94c2 73 extern void rt_sys_start (void);