Yes

Dependents:   Asservissement_Gyro

Committer:
braichi13
Date:
Sun May 08 14:39:47 2022 +0000
Revision:
0:77205fc699b9
Programme du Gyropode

Who changed what in which revision?

UserRevisionLine numberNew contents of line
braichi13 0:77205fc699b9 1 /*----------------------------------------------------------------------------
braichi13 0:77205fc699b9 2 * RL-ARM - RTX
braichi13 0:77205fc699b9 3 *----------------------------------------------------------------------------
braichi13 0:77205fc699b9 4 * Name: RT_SEMAPHORE.H
braichi13 0:77205fc699b9 5 * Purpose: Implements binary and counting semaphores
braichi13 0:77205fc699b9 6 * Rev.: V4.60
braichi13 0:77205fc699b9 7 *----------------------------------------------------------------------------
braichi13 0:77205fc699b9 8 *
braichi13 0:77205fc699b9 9 * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH
braichi13 0:77205fc699b9 10 * All rights reserved.
braichi13 0:77205fc699b9 11 * Redistribution and use in source and binary forms, with or without
braichi13 0:77205fc699b9 12 * modification, are permitted provided that the following conditions are met:
braichi13 0:77205fc699b9 13 * - Redistributions of source code must retain the above copyright
braichi13 0:77205fc699b9 14 * notice, this list of conditions and the following disclaimer.
braichi13 0:77205fc699b9 15 * - Redistributions in binary form must reproduce the above copyright
braichi13 0:77205fc699b9 16 * notice, this list of conditions and the following disclaimer in the
braichi13 0:77205fc699b9 17 * documentation and/or other materials provided with the distribution.
braichi13 0:77205fc699b9 18 * - Neither the name of ARM nor the names of its contributors may be used
braichi13 0:77205fc699b9 19 * to endorse or promote products derived from this software without
braichi13 0:77205fc699b9 20 * specific prior written permission.
braichi13 0:77205fc699b9 21 *
braichi13 0:77205fc699b9 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
braichi13 0:77205fc699b9 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
braichi13 0:77205fc699b9 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
braichi13 0:77205fc699b9 25 * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
braichi13 0:77205fc699b9 26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
braichi13 0:77205fc699b9 27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
braichi13 0:77205fc699b9 28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
braichi13 0:77205fc699b9 29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
braichi13 0:77205fc699b9 30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
braichi13 0:77205fc699b9 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
braichi13 0:77205fc699b9 32 * POSSIBILITY OF SUCH DAMAGE.
braichi13 0:77205fc699b9 33 *---------------------------------------------------------------------------*/
braichi13 0:77205fc699b9 34
braichi13 0:77205fc699b9 35 /* Functions */
braichi13 0:77205fc699b9 36 extern void rt_sem_init (OS_ID semaphore, U16 token_count);
braichi13 0:77205fc699b9 37 extern OS_RESULT rt_sem_delete(OS_ID semaphore);
braichi13 0:77205fc699b9 38 extern OS_RESULT rt_sem_send (OS_ID semaphore);
braichi13 0:77205fc699b9 39 extern OS_RESULT rt_sem_wait (OS_ID semaphore, U16 timeout);
braichi13 0:77205fc699b9 40 extern void isr_sem_send (OS_ID semaphore);
braichi13 0:77205fc699b9 41 extern void rt_sem_psh (P_SCB p_CB);
braichi13 0:77205fc699b9 42
braichi13 0:77205fc699b9 43 /*----------------------------------------------------------------------------
braichi13 0:77205fc699b9 44 * end of file
braichi13 0:77205fc699b9 45 *---------------------------------------------------------------------------*/
braichi13 0:77205fc699b9 46