Control a robot over the internet using UDP and a Ethernet interface.
Dependencies: EthernetInterface Motor TextLCD mbed-rtos mbed Socket lwip-eth lwip-sys lwip
mbed-rtos/rtx/RTX_Conf.h@0:1496281373a5, 2013-10-17 (annotated)
- Committer:
- apatel336
- Date:
- Thu Oct 17 13:26:38 2013 +0000
- Revision:
- 0:1496281373a5
Initial Release
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
apatel336 | 0:1496281373a5 | 1 | /*---------------------------------------------------------------------------- |
apatel336 | 0:1496281373a5 | 2 | * RL-ARM - RTX |
apatel336 | 0:1496281373a5 | 3 | *---------------------------------------------------------------------------- |
apatel336 | 0:1496281373a5 | 4 | * Name: RTX_CONFIG.H |
apatel336 | 0:1496281373a5 | 5 | * Purpose: Exported functions of RTX_Config.c |
apatel336 | 0:1496281373a5 | 6 | * Rev.: V4.60 |
apatel336 | 0:1496281373a5 | 7 | *---------------------------------------------------------------------------- |
apatel336 | 0:1496281373a5 | 8 | * |
apatel336 | 0:1496281373a5 | 9 | * Copyright (c) 1999-2009 KEIL, 2009-2012 ARM Germany GmbH |
apatel336 | 0:1496281373a5 | 10 | * All rights reserved. |
apatel336 | 0:1496281373a5 | 11 | * Redistribution and use in source and binary forms, with or without |
apatel336 | 0:1496281373a5 | 12 | * modification, are permitted provided that the following conditions are met: |
apatel336 | 0:1496281373a5 | 13 | * - Redistributions of source code must retain the above copyright |
apatel336 | 0:1496281373a5 | 14 | * notice, this list of conditions and the following disclaimer. |
apatel336 | 0:1496281373a5 | 15 | * - Redistributions in binary form must reproduce the above copyright |
apatel336 | 0:1496281373a5 | 16 | * notice, this list of conditions and the following disclaimer in the |
apatel336 | 0:1496281373a5 | 17 | * documentation and/or other materials provided with the distribution. |
apatel336 | 0:1496281373a5 | 18 | * - Neither the name of ARM nor the names of its contributors may be used |
apatel336 | 0:1496281373a5 | 19 | * to endorse or promote products derived from this software without |
apatel336 | 0:1496281373a5 | 20 | * specific prior written permission. |
apatel336 | 0:1496281373a5 | 21 | * |
apatel336 | 0:1496281373a5 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
apatel336 | 0:1496281373a5 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
apatel336 | 0:1496281373a5 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
apatel336 | 0:1496281373a5 | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
apatel336 | 0:1496281373a5 | 26 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
apatel336 | 0:1496281373a5 | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
apatel336 | 0:1496281373a5 | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
apatel336 | 0:1496281373a5 | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
apatel336 | 0:1496281373a5 | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
apatel336 | 0:1496281373a5 | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
apatel336 | 0:1496281373a5 | 32 | * POSSIBILITY OF SUCH DAMAGE. |
apatel336 | 0:1496281373a5 | 33 | *---------------------------------------------------------------------------*/ |
apatel336 | 0:1496281373a5 | 34 | |
apatel336 | 0:1496281373a5 | 35 | |
apatel336 | 0:1496281373a5 | 36 | /* Error Codes */ |
apatel336 | 0:1496281373a5 | 37 | #define OS_ERR_STK_OVF 1 |
apatel336 | 0:1496281373a5 | 38 | #define OS_ERR_FIFO_OVF 2 |
apatel336 | 0:1496281373a5 | 39 | #define OS_ERR_MBX_OVF 3 |
apatel336 | 0:1496281373a5 | 40 | |
apatel336 | 0:1496281373a5 | 41 | /* Definitions */ |
apatel336 | 0:1496281373a5 | 42 | #define BOX_ALIGN_8 0x80000000 |
apatel336 | 0:1496281373a5 | 43 | #define _declare_box(pool,size,cnt) U32 pool[(((size)+3)/4)*(cnt) + 3] |
apatel336 | 0:1496281373a5 | 44 | #define _declare_box8(pool,size,cnt) U64 pool[(((size)+7)/8)*(cnt) + 2] |
apatel336 | 0:1496281373a5 | 45 | #define _init_box8(pool,size,bsize) _init_box (pool,size,(bsize) | BOX_ALIGN_8) |
apatel336 | 0:1496281373a5 | 46 | |
apatel336 | 0:1496281373a5 | 47 | /* Variables */ |
apatel336 | 0:1496281373a5 | 48 | extern U32 idle_task_stack[]; |
apatel336 | 0:1496281373a5 | 49 | extern U32 os_fifo[]; |
apatel336 | 0:1496281373a5 | 50 | extern void *os_active_TCB[]; |
apatel336 | 0:1496281373a5 | 51 | |
apatel336 | 0:1496281373a5 | 52 | /* Constants */ |
apatel336 | 0:1496281373a5 | 53 | extern U16 const os_maxtaskrun; |
apatel336 | 0:1496281373a5 | 54 | extern U32 const os_trv; |
apatel336 | 0:1496281373a5 | 55 | extern U8 const os_flags; |
apatel336 | 0:1496281373a5 | 56 | extern U32 const os_rrobin; |
apatel336 | 0:1496281373a5 | 57 | extern U32 const os_clockrate; |
apatel336 | 0:1496281373a5 | 58 | extern U32 const os_timernum; |
apatel336 | 0:1496281373a5 | 59 | extern U16 const idle_task_stack_size; |
apatel336 | 0:1496281373a5 | 60 | |
apatel336 | 0:1496281373a5 | 61 | extern U8 const os_fifo_size; |
apatel336 | 0:1496281373a5 | 62 | |
apatel336 | 0:1496281373a5 | 63 | /* Functions */ |
apatel336 | 0:1496281373a5 | 64 | extern void os_idle_demon (void); |
apatel336 | 0:1496281373a5 | 65 | extern int os_tick_init (void); |
apatel336 | 0:1496281373a5 | 66 | extern void os_tick_irqack (void); |
apatel336 | 0:1496281373a5 | 67 | extern void os_tmr_call (U16 info); |
apatel336 | 0:1496281373a5 | 68 | extern void os_error (U32 err_code); |
apatel336 | 0:1496281373a5 | 69 | |
apatel336 | 0:1496281373a5 | 70 | /*---------------------------------------------------------------------------- |
apatel336 | 0:1496281373a5 | 71 | * end of file |
apatel336 | 0:1496281373a5 | 72 | *---------------------------------------------------------------------------*/ |