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