V M
/
NRF24L01_receiver
NRF com
mbed-rtos/rtx/rt_List.h@0:fdfe93cb9255, 2013-05-27 (annotated)
- Committer:
- vmihalcut
- Date:
- Mon May 27 06:06:31 2013 +0000
- Revision:
- 0:fdfe93cb9255
NRF24L01 receiver
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vmihalcut | 0:fdfe93cb9255 | 1 | /*---------------------------------------------------------------------------- |
vmihalcut | 0:fdfe93cb9255 | 2 | * RL-ARM - RTX |
vmihalcut | 0:fdfe93cb9255 | 3 | *---------------------------------------------------------------------------- |
vmihalcut | 0:fdfe93cb9255 | 4 | * Name: RT_LIST.H |
vmihalcut | 0:fdfe93cb9255 | 5 | * Purpose: Functions for the management of different lists |
vmihalcut | 0:fdfe93cb9255 | 6 | * Rev.: V4.60 |
vmihalcut | 0:fdfe93cb9255 | 7 | *---------------------------------------------------------------------------- |
vmihalcut | 0:fdfe93cb9255 | 8 | * |
vmihalcut | 0:fdfe93cb9255 | 9 | * Copyright (c) 1999-2009 KEIL, 2009-2012 ARM Germany GmbH |
vmihalcut | 0:fdfe93cb9255 | 10 | * All rights reserved. |
vmihalcut | 0:fdfe93cb9255 | 11 | * Redistribution and use in source and binary forms, with or without |
vmihalcut | 0:fdfe93cb9255 | 12 | * modification, are permitted provided that the following conditions are met: |
vmihalcut | 0:fdfe93cb9255 | 13 | * - Redistributions of source code must retain the above copyright |
vmihalcut | 0:fdfe93cb9255 | 14 | * notice, this list of conditions and the following disclaimer. |
vmihalcut | 0:fdfe93cb9255 | 15 | * - Redistributions in binary form must reproduce the above copyright |
vmihalcut | 0:fdfe93cb9255 | 16 | * notice, this list of conditions and the following disclaimer in the |
vmihalcut | 0:fdfe93cb9255 | 17 | * documentation and/or other materials provided with the distribution. |
vmihalcut | 0:fdfe93cb9255 | 18 | * - Neither the name of ARM nor the names of its contributors may be used |
vmihalcut | 0:fdfe93cb9255 | 19 | * to endorse or promote products derived from this software without |
vmihalcut | 0:fdfe93cb9255 | 20 | * specific prior written permission. |
vmihalcut | 0:fdfe93cb9255 | 21 | * |
vmihalcut | 0:fdfe93cb9255 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
vmihalcut | 0:fdfe93cb9255 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
vmihalcut | 0:fdfe93cb9255 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
vmihalcut | 0:fdfe93cb9255 | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
vmihalcut | 0:fdfe93cb9255 | 26 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
vmihalcut | 0:fdfe93cb9255 | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
vmihalcut | 0:fdfe93cb9255 | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
vmihalcut | 0:fdfe93cb9255 | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
vmihalcut | 0:fdfe93cb9255 | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
vmihalcut | 0:fdfe93cb9255 | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
vmihalcut | 0:fdfe93cb9255 | 32 | * POSSIBILITY OF SUCH DAMAGE. |
vmihalcut | 0:fdfe93cb9255 | 33 | *---------------------------------------------------------------------------*/ |
vmihalcut | 0:fdfe93cb9255 | 34 | |
vmihalcut | 0:fdfe93cb9255 | 35 | /* Definitions */ |
vmihalcut | 0:fdfe93cb9255 | 36 | |
vmihalcut | 0:fdfe93cb9255 | 37 | /* Values for 'cb_type' */ |
vmihalcut | 0:fdfe93cb9255 | 38 | #define TCB 0 |
vmihalcut | 0:fdfe93cb9255 | 39 | #define MCB 1 |
vmihalcut | 0:fdfe93cb9255 | 40 | #define SCB 2 |
vmihalcut | 0:fdfe93cb9255 | 41 | #define MUCB 3 |
vmihalcut | 0:fdfe93cb9255 | 42 | #define HCB 4 |
vmihalcut | 0:fdfe93cb9255 | 43 | |
vmihalcut | 0:fdfe93cb9255 | 44 | /* Variables */ |
vmihalcut | 0:fdfe93cb9255 | 45 | extern struct OS_XCB os_rdy; |
vmihalcut | 0:fdfe93cb9255 | 46 | extern struct OS_XCB os_dly; |
vmihalcut | 0:fdfe93cb9255 | 47 | |
vmihalcut | 0:fdfe93cb9255 | 48 | /* Functions */ |
vmihalcut | 0:fdfe93cb9255 | 49 | extern void rt_put_prio (P_XCB p_CB, P_TCB p_task); |
vmihalcut | 0:fdfe93cb9255 | 50 | extern P_TCB rt_get_first (P_XCB p_CB); |
vmihalcut | 0:fdfe93cb9255 | 51 | extern void rt_put_rdy_first (P_TCB p_task); |
vmihalcut | 0:fdfe93cb9255 | 52 | extern P_TCB rt_get_same_rdy_prio (void); |
vmihalcut | 0:fdfe93cb9255 | 53 | extern void rt_resort_prio (P_TCB p_task); |
vmihalcut | 0:fdfe93cb9255 | 54 | extern void rt_put_dly (P_TCB p_task, U16 delay); |
vmihalcut | 0:fdfe93cb9255 | 55 | extern void rt_dec_dly (void); |
vmihalcut | 0:fdfe93cb9255 | 56 | extern void rt_rmv_list (P_TCB p_task); |
vmihalcut | 0:fdfe93cb9255 | 57 | extern void rt_rmv_dly (P_TCB p_task); |
vmihalcut | 0:fdfe93cb9255 | 58 | extern void rt_psq_enq (OS_ID entry, U32 arg); |
vmihalcut | 0:fdfe93cb9255 | 59 | |
vmihalcut | 0:fdfe93cb9255 | 60 | /* This is a fast macro generating in-line code */ |
vmihalcut | 0:fdfe93cb9255 | 61 | #define rt_rdy_prio(void) (os_rdy.p_lnk->prio) |
vmihalcut | 0:fdfe93cb9255 | 62 | |
vmihalcut | 0:fdfe93cb9255 | 63 | |
vmihalcut | 0:fdfe93cb9255 | 64 | /*---------------------------------------------------------------------------- |
vmihalcut | 0:fdfe93cb9255 | 65 | * end of file |
vmihalcut | 0:fdfe93cb9255 | 66 | *---------------------------------------------------------------------------*/ |
vmihalcut | 0:fdfe93cb9255 | 67 |