Counter
Dependencies: EthernetInterface NTPClient SDFileSystem TextLCD WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip FATFileSystem
mbed-rtos/rtx/rt_Mailbox.h@0:ecaf3e593122, 2016-02-29 (annotated)
- Committer:
- Tuxitheone
- Date:
- Mon Feb 29 18:59:15 2016 +0000
- Revision:
- 0:ecaf3e593122
TankCounter
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Tuxitheone | 0:ecaf3e593122 | 1 | /*---------------------------------------------------------------------------- |
Tuxitheone | 0:ecaf3e593122 | 2 | * RL-ARM - RTX |
Tuxitheone | 0:ecaf3e593122 | 3 | *---------------------------------------------------------------------------- |
Tuxitheone | 0:ecaf3e593122 | 4 | * Name: RT_MAILBOX.H |
Tuxitheone | 0:ecaf3e593122 | 5 | * Purpose: Implements waits and wake-ups for mailbox messages |
Tuxitheone | 0:ecaf3e593122 | 6 | * Rev.: V4.60 |
Tuxitheone | 0:ecaf3e593122 | 7 | *---------------------------------------------------------------------------- |
Tuxitheone | 0:ecaf3e593122 | 8 | * |
Tuxitheone | 0:ecaf3e593122 | 9 | * Copyright (c) 1999-2009 KEIL, 2009-2012 ARM Germany GmbH |
Tuxitheone | 0:ecaf3e593122 | 10 | * All rights reserved. |
Tuxitheone | 0:ecaf3e593122 | 11 | * Redistribution and use in source and binary forms, with or without |
Tuxitheone | 0:ecaf3e593122 | 12 | * modification, are permitted provided that the following conditions are met: |
Tuxitheone | 0:ecaf3e593122 | 13 | * - Redistributions of source code must retain the above copyright |
Tuxitheone | 0:ecaf3e593122 | 14 | * notice, this list of conditions and the following disclaimer. |
Tuxitheone | 0:ecaf3e593122 | 15 | * - Redistributions in binary form must reproduce the above copyright |
Tuxitheone | 0:ecaf3e593122 | 16 | * notice, this list of conditions and the following disclaimer in the |
Tuxitheone | 0:ecaf3e593122 | 17 | * documentation and/or other materials provided with the distribution. |
Tuxitheone | 0:ecaf3e593122 | 18 | * - Neither the name of ARM nor the names of its contributors may be used |
Tuxitheone | 0:ecaf3e593122 | 19 | * to endorse or promote products derived from this software without |
Tuxitheone | 0:ecaf3e593122 | 20 | * specific prior written permission. |
Tuxitheone | 0:ecaf3e593122 | 21 | * |
Tuxitheone | 0:ecaf3e593122 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Tuxitheone | 0:ecaf3e593122 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Tuxitheone | 0:ecaf3e593122 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
Tuxitheone | 0:ecaf3e593122 | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
Tuxitheone | 0:ecaf3e593122 | 26 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
Tuxitheone | 0:ecaf3e593122 | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
Tuxitheone | 0:ecaf3e593122 | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
Tuxitheone | 0:ecaf3e593122 | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
Tuxitheone | 0:ecaf3e593122 | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
Tuxitheone | 0:ecaf3e593122 | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
Tuxitheone | 0:ecaf3e593122 | 32 | * POSSIBILITY OF SUCH DAMAGE. |
Tuxitheone | 0:ecaf3e593122 | 33 | *---------------------------------------------------------------------------*/ |
Tuxitheone | 0:ecaf3e593122 | 34 | |
Tuxitheone | 0:ecaf3e593122 | 35 | /* Functions */ |
Tuxitheone | 0:ecaf3e593122 | 36 | extern void rt_mbx_init (OS_ID mailbox, U16 mbx_size); |
Tuxitheone | 0:ecaf3e593122 | 37 | extern OS_RESULT rt_mbx_send (OS_ID mailbox, void *p_msg, U16 timeout); |
Tuxitheone | 0:ecaf3e593122 | 38 | extern OS_RESULT rt_mbx_wait (OS_ID mailbox, void **message, U16 timeout); |
Tuxitheone | 0:ecaf3e593122 | 39 | extern OS_RESULT rt_mbx_check (OS_ID mailbox); |
Tuxitheone | 0:ecaf3e593122 | 40 | extern void isr_mbx_send (OS_ID mailbox, void *p_msg); |
Tuxitheone | 0:ecaf3e593122 | 41 | extern OS_RESULT isr_mbx_receive (OS_ID mailbox, void **message); |
Tuxitheone | 0:ecaf3e593122 | 42 | extern void rt_mbx_psh (P_MCB p_CB, void *p_msg); |
Tuxitheone | 0:ecaf3e593122 | 43 | |
Tuxitheone | 0:ecaf3e593122 | 44 | |
Tuxitheone | 0:ecaf3e593122 | 45 | /*---------------------------------------------------------------------------- |
Tuxitheone | 0:ecaf3e593122 | 46 | * end of file |
Tuxitheone | 0:ecaf3e593122 | 47 | *---------------------------------------------------------------------------*/ |
Tuxitheone | 0:ecaf3e593122 | 48 |