⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app_cfg.h

📁 ucosII在DRAGONBALL MX21上的移植 开发环境为IAR
💻 H
字号:
/*
*********************************************************************************************************
*                                    APPLICATION SPECIFIC RTOS SETUP
*
*                             (c) Copyright 2005, Micrium, Inc., Weston, FL
*                                          All Rights Reserved
*
*                                          CONFIGURATION FILE
*
* File : app_cfg.h
* By   : Eric Shufro
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                      APPLICATION CONFIGURATION
*
* Note(s) : (1) Configure the product's/application's desired product configuration values.
*********************************************************************************************************
*/

#define  LIB_CFG_CUSTOM_EN                      DEF_ENABLED
#define  LIB_STR_CFG_FP_EN                      DEF_ENABLED

#define  uC_FS_MODULE                           DEF_ENABLED         /* DEF_ENABLED = Present, DEF_DISABLED = Not Present    */
#define  uC_TCPIP_MODULE                        DEF_ENABLED         /* DEF_ENABLED = Present, DEF_DISABLED = Not Present    */
#define  uC_TCPIP_HTTPs_MODULE                  DEF_ENABLED         /* DEF_ENABLED = Present, DEF_DISABLED = Not Present    */
#define  uC_TFTP_MODULE                         DEF_ENABLED         /* DEF_ENABLED = Present, DEF_DISABLED = Not Present    */
#define  uC_DHCPc_MODULE                        DEF_DISABLED        /* DEF_ENABLED = Present, DEF_DISABLED = Not Present    */

/*
*********************************************************************************************************
*                                            TASKS PRIORITIES
*********************************************************************************************************
*/

#define  APP_TASK_START_PRIO                   5
#define  OS_VIEW_TASK_PRIO                     7
#define  OS_VIEW_TASK_ID                       7
#define  NET_OS_CFG_IF_RX_TASK_PRIO           10
#define  NET_OS_CFG_TMR_TASK_PRIO             11
#define  HTTPs_OS_TASK_PRIO                   12
#define  TFTPs_OS_TASK_PRIO                   15

/*
*********************************************************************************************************
*                                              STACK SIZES
*                            Size of the task stacks (# of OS_STK entries)
*********************************************************************************************************
*/

#define  APP_TASK_START_STK_SIZE             512
#define  OS_VIEW_TASK_STK_SIZE               128
#define  NET_OS_CFG_TMR_TASK_STK_SIZE       1024
#define  NET_OS_CFG_IF_RX_TASK_STK_SIZE     1024
#define  HTTPs_OS_TASK_STK_SIZE             2048
#define  TFTPs_OS_TASK_STK_SIZE              512

/*
*********************************************************************************************************
*                                           uC/OS-View CONSTANTS
*********************************************************************************************************
*/

#define  OS_VIEW_PARSE_TASK                     1                     /* Parsing of received packets will be done by a task   */
#define  OS_VIEW_TMR_32_BITS                    1                     /* uC/OS-View timer is 32 bits                          */
#define  OS_VIEW_UART_1                         1                     /* DCE UART1 on the i.MX21ADS evalboard                 */

#define  OS_VIEW_COMM_SEL                   OS_VIEW_UART_1

/*
*********************************************************************************************************
*                                           TFTP CONFIGURATION
*********************************************************************************************************
*/

#define  TFTPs_OS_TASK_NAME                 "TFTP (Server)"
#define  TFTPs_IPPORT                             69                /* Define the TFTP server port.  Default is 69.         */

/*
*********************************************************************************************************
*                                HTTP SERVER CONFIGURATION TEMPLATE FILE
*********************************************************************************************************
*/

#define  HTTPs_OS_TASK_NAME                 "HTTP (Server)"
#define  HTTPs_FS_ROOT                      "mmc:"
#define  HTTPs_DEFAULT_FILE                 "index.htm"

#define  HTTPs_IPPORT                         80

#define  HTTPs_MAX_VAR_SIZE                  255
#define  HTTPs_MAX_VAL_SIZE                  255

#define  HTTPs_HTML_NOT_FOUND_MSG           "<HTML>\r\n" \
                                            "<BODY>\r\n" \
                                            "<HEAD><TITLE>SYSTEM ERROR</TITLE></HEAD>\r\n" \
                                            "<H1>NOT FOUND</H1>\r\n" \
                                            "The requested object does not exist on this server.\r\n" \
                                            "</BODY>\r\n" \
                                            "</HTML>\r\n"


#define  HTTPs_MAX_ACCEPT_RETRY                3
#define  HTTPs_MAX_TX_RETRY                    3

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -