kopia lustrzana https://github.com/OpenRTX/OpenRTX
106 wiersze
4.0 KiB
C
106 wiersze
4.0 KiB
C
/*
|
|
*********************************************************************************************************
|
|
* EXAMPLE CODE
|
|
*
|
|
* (c) Copyright 2009-2013; Micrium, Inc.; Weston, FL
|
|
*
|
|
* All rights reserved. Protected by international copyright laws.
|
|
*
|
|
* Please feel free to use any application code labeled as 'EXAMPLE CODE' in
|
|
* your application products. Example code may be used as is, in whole or in
|
|
* part, or may be used as a reference only.
|
|
*
|
|
* Please help us continue to provide the Embedded community with the finest
|
|
* software available. Your honesty is greatly appreciated.
|
|
*
|
|
* You can contact us at www.micrium.com.
|
|
*********************************************************************************************************
|
|
*/
|
|
|
|
/*
|
|
*********************************************************************************************************
|
|
*
|
|
* APPLICATION CONFIGURATION
|
|
*
|
|
* uC/OS-III on POSIX
|
|
*
|
|
* Filename : app.c
|
|
* Version : V1.00
|
|
* Programmer(s) : EJ
|
|
*
|
|
*********************************************************************************************************
|
|
*/
|
|
|
|
|
|
/*
|
|
*********************************************************************************************************
|
|
* MODULE
|
|
*********************************************************************************************************
|
|
*/
|
|
|
|
#ifndef APP_CFG_MODULE_PRESENT
|
|
#define APP_CFG_MODULE_PRESENT
|
|
|
|
|
|
/*
|
|
*********************************************************************************************************
|
|
* INCLUDE
|
|
*********************************************************************************************************
|
|
*/
|
|
|
|
|
|
/*
|
|
*********************************************************************************************************
|
|
* TASK PRIORITIES
|
|
*********************************************************************************************************
|
|
*/
|
|
|
|
#define APP_CFG_TASK_START_PRIO 33
|
|
|
|
#define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2)
|
|
|
|
|
|
/*
|
|
*********************************************************************************************************
|
|
* TASK STACK SIZES
|
|
* Size of the task stacks (# of OS_STK entries)
|
|
*********************************************************************************************************
|
|
*/
|
|
|
|
#define APP_CFG_TASK_START_STK_SIZE 4096
|
|
|
|
|
|
/*
|
|
*********************************************************************************************************
|
|
* uC/TCP-IP v2.10
|
|
*********************************************************************************************************
|
|
*/
|
|
|
|
|
|
/*
|
|
*********************************************************************************************************
|
|
* TRACE / DEBUG CONFIGURATION
|
|
*********************************************************************************************************
|
|
*/
|
|
#ifndef TRACE_LEVEL_OFF
|
|
#define TRACE_LEVEL_OFF 0
|
|
#endif
|
|
|
|
#ifndef TRACE_LEVEL_INFO
|
|
#define TRACE_LEVEL_INFO 1
|
|
#endif
|
|
|
|
#ifndef TRACE_LEVEL_DEBUG
|
|
#define TRACE_LEVEL_DEBUG 2
|
|
#endif
|
|
|
|
#define APP_TRACE_LEVEL TRACE_LEVEL_OFF
|
|
#define APP_TRACE printf
|
|
|
|
#define APP_TRACE_INFO(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_INFO) ? (void)(APP_TRACE x) : (void)0)
|
|
#define APP_TRACE_DBG(x) ((APP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG) ? (void)(APP_TRACE x) : (void)0)
|
|
|
|
#define APP_TRACE_DEBUG(x) APP_TRACE_DBG(x)
|
|
|
|
#endif
|