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: Mecatro_Gyro_Programme_Codeur_HC06
rtx/TARGET_ARM7/rt_Event.h@0:a8ed743bc1e1, 2021-04-16 (annotated)
- Committer:
- daoyu_sofiane
- Date:
- Fri Apr 16 09:25:33 2021 +0000
- Revision:
- 0:a8ed743bc1e1
Projet Gyropode
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
daoyu_sofiane | 0:a8ed743bc1e1 | 1 | /*---------------------------------------------------------------------------- |
daoyu_sofiane | 0:a8ed743bc1e1 | 2 | * RL-ARM - RTX |
daoyu_sofiane | 0:a8ed743bc1e1 | 3 | *---------------------------------------------------------------------------- |
daoyu_sofiane | 0:a8ed743bc1e1 | 4 | * Name: RT_EVENT.H |
daoyu_sofiane | 0:a8ed743bc1e1 | 5 | * Purpose: Implements waits and wake-ups for event flags |
daoyu_sofiane | 0:a8ed743bc1e1 | 6 | * Rev.: V4.60 |
daoyu_sofiane | 0:a8ed743bc1e1 | 7 | *---------------------------------------------------------------------------- |
daoyu_sofiane | 0:a8ed743bc1e1 | 8 | * |
daoyu_sofiane | 0:a8ed743bc1e1 | 9 | * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH |
daoyu_sofiane | 0:a8ed743bc1e1 | 10 | * All rights reserved. |
daoyu_sofiane | 0:a8ed743bc1e1 | 11 | * Redistribution and use in source and binary forms, with or without |
daoyu_sofiane | 0:a8ed743bc1e1 | 12 | * modification, are permitted provided that the following conditions are met: |
daoyu_sofiane | 0:a8ed743bc1e1 | 13 | * - Redistributions of source code must retain the above copyright |
daoyu_sofiane | 0:a8ed743bc1e1 | 14 | * notice, this list of conditions and the following disclaimer. |
daoyu_sofiane | 0:a8ed743bc1e1 | 15 | * - Redistributions in binary form must reproduce the above copyright |
daoyu_sofiane | 0:a8ed743bc1e1 | 16 | * notice, this list of conditions and the following disclaimer in the |
daoyu_sofiane | 0:a8ed743bc1e1 | 17 | * documentation and/or other materials provided with the distribution. |
daoyu_sofiane | 0:a8ed743bc1e1 | 18 | * - Neither the name of ARM nor the names of its contributors may be used |
daoyu_sofiane | 0:a8ed743bc1e1 | 19 | * to endorse or promote products derived from this software without |
daoyu_sofiane | 0:a8ed743bc1e1 | 20 | * specific prior written permission. |
daoyu_sofiane | 0:a8ed743bc1e1 | 21 | * |
daoyu_sofiane | 0:a8ed743bc1e1 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
daoyu_sofiane | 0:a8ed743bc1e1 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
daoyu_sofiane | 0:a8ed743bc1e1 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
daoyu_sofiane | 0:a8ed743bc1e1 | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
daoyu_sofiane | 0:a8ed743bc1e1 | 26 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
daoyu_sofiane | 0:a8ed743bc1e1 | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
daoyu_sofiane | 0:a8ed743bc1e1 | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
daoyu_sofiane | 0:a8ed743bc1e1 | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
daoyu_sofiane | 0:a8ed743bc1e1 | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
daoyu_sofiane | 0:a8ed743bc1e1 | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
daoyu_sofiane | 0:a8ed743bc1e1 | 32 | * POSSIBILITY OF SUCH DAMAGE. |
daoyu_sofiane | 0:a8ed743bc1e1 | 33 | *---------------------------------------------------------------------------*/ |
daoyu_sofiane | 0:a8ed743bc1e1 | 34 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 35 | /* Functions */ |
daoyu_sofiane | 0:a8ed743bc1e1 | 36 | extern OS_RESULT rt_evt_wait (U16 wait_flags, U16 timeout, BOOL and_wait); |
daoyu_sofiane | 0:a8ed743bc1e1 | 37 | extern void rt_evt_set (U16 event_flags, OS_TID task_id); |
daoyu_sofiane | 0:a8ed743bc1e1 | 38 | extern void rt_evt_clr (U16 clear_flags, OS_TID task_id); |
daoyu_sofiane | 0:a8ed743bc1e1 | 39 | extern void isr_evt_set (U16 event_flags, OS_TID task_id); |
daoyu_sofiane | 0:a8ed743bc1e1 | 40 | extern U16 rt_evt_get (void); |
daoyu_sofiane | 0:a8ed743bc1e1 | 41 | extern void rt_evt_psh (P_TCB p_CB, U16 set_flags); |
daoyu_sofiane | 0:a8ed743bc1e1 | 42 | |
daoyu_sofiane | 0:a8ed743bc1e1 | 43 | /*---------------------------------------------------------------------------- |
daoyu_sofiane | 0:a8ed743bc1e1 | 44 | * end of file |
daoyu_sofiane | 0:a8ed743bc1e1 | 45 | *---------------------------------------------------------------------------*/ |
daoyu_sofiane | 0:a8ed743bc1e1 | 46 |