test

Dependencies:   F7_Ethernet mbed BSP_DISCO_F746NG SDFileSystem RF24

Committer:
leo44
Date:
Tue Jun 08 10:06:19 2021 +0000
Revision:
0:d984976f1f1c
proto

Who changed what in which revision?

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