ProjetoBB

Dependencies:   F7_Ethernet WebSocketClient mbed mcp3008

Fork of Nucleo_F746ZG_Ethernet by Dieter Graef

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?

UserRevisionLine numberNew contents of line
DieterGraef 0:f9b6112278fe 1 /*----------------------------------------------------------------------------
DieterGraef 0:f9b6112278fe 2 * RL-ARM - RTX
DieterGraef 0:f9b6112278fe 3 *----------------------------------------------------------------------------
DieterGraef 0:f9b6112278fe 4 * Name: RTX_CONFIG.H
DieterGraef 0:f9b6112278fe 5 * Purpose: Exported functions of RTX_Config.c
DieterGraef 0:f9b6112278fe 6 * Rev.: V4.60
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
DieterGraef 0:f9b6112278fe 36 /* Error Codes */
DieterGraef 0:f9b6112278fe 37 #define OS_ERR_STK_OVF 1
DieterGraef 0:f9b6112278fe 38 #define OS_ERR_FIFO_OVF 2
DieterGraef 0:f9b6112278fe 39 #define OS_ERR_MBX_OVF 3
DieterGraef 0:f9b6112278fe 40
DieterGraef 0:f9b6112278fe 41 /* Definitions */
DieterGraef 0:f9b6112278fe 42 #define BOX_ALIGN_8 0x80000000
DieterGraef 0:f9b6112278fe 43 #define _declare_box(pool,size,cnt) U32 pool[(((size)+3)/4)*(cnt) + 3]
DieterGraef 0:f9b6112278fe 44 #define _declare_box8(pool,size,cnt) U64 pool[(((size)+7)/8)*(cnt) + 2]
DieterGraef 0:f9b6112278fe 45 #define _init_box8(pool,size,bsize) _init_box (pool,size,(bsize) | BOX_ALIGN_8)
DieterGraef 0:f9b6112278fe 46
DieterGraef 0:f9b6112278fe 47 /* Variables */
DieterGraef 0:f9b6112278fe 48 extern U32 idle_task_stack[];
DieterGraef 0:f9b6112278fe 49 extern U32 os_fifo[];
DieterGraef 0:f9b6112278fe 50 extern void *os_active_TCB[];
DieterGraef 0:f9b6112278fe 51
DieterGraef 0:f9b6112278fe 52 /* Constants */
DieterGraef 0:f9b6112278fe 53 extern U16 const os_maxtaskrun;
DieterGraef 0:f9b6112278fe 54 extern U32 const os_trv;
DieterGraef 0:f9b6112278fe 55 extern U8 const os_flags;
DieterGraef 0:f9b6112278fe 56 extern U32 const os_rrobin;
DieterGraef 0:f9b6112278fe 57 extern U32 const os_clockrate;
DieterGraef 0:f9b6112278fe 58 extern U32 const os_timernum;
DieterGraef 0:f9b6112278fe 59 extern U16 const idle_task_stack_size;
DieterGraef 0:f9b6112278fe 60
DieterGraef 0:f9b6112278fe 61 extern U8 const os_fifo_size;
DieterGraef 0:f9b6112278fe 62
DieterGraef 0:f9b6112278fe 63 /* Functions */
DieterGraef 0:f9b6112278fe 64 extern void os_idle_demon (void);
DieterGraef 0:f9b6112278fe 65 extern int os_tick_init (void);
DieterGraef 0:f9b6112278fe 66 extern void os_tick_irqack (void);
DieterGraef 0:f9b6112278fe 67 extern void os_tmr_call (U16 info);
DieterGraef 0:f9b6112278fe 68 extern void os_error (U32 err_code);
DieterGraef 0:f9b6112278fe 69
DieterGraef 0:f9b6112278fe 70 /*----------------------------------------------------------------------------
DieterGraef 0:f9b6112278fe 71 * end of file
DieterGraef 0:f9b6112278fe 72 *---------------------------------------------------------------------------*/