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

📄 app_cfg.h

📁 ucosii和ucgui移植到LPC1788上
💻 H
字号:
/*
*********************************************************************************************************
*
*                                      APPLICATION CONFIGURATION
*
*                                     NXP cortex-M3	 MCU
*                                              with the
*                                   EV-LPC1788 Evaluation Board
*
* Filename      : app_cfg.h
* Version       : V1.0
* Programmer(s) : YJ
*********************************************************************************************************
*/
#include <stdint.h>
#include "lpc177x_8x_gpio.h"
#include "lpc177x_8x_pinsel.h"

#ifndef  __APP_CFG_H__
#define  __APP_CFG_H__

#define GUI_SUPPORT_TOUCH 1 //1 = enable

/*
*********************************************************************************************************
*                                       MODULE ENABLE / DISABLE
*********************************************************************************************************
*/

#define  APP_OS_PROBE_EN                         DEF_ENABLED
#define  APP_PROBE_COM_EN                        DEF_ENABLED

/*
*********************************************************************************************************
*                                              TASKS NAMES
*********************************************************************************************************
*/


/*
*********************************************************************************************************
*                                            TASK PRIORITIES
*********************************************************************************************************
*/

#define  APP_TASK_LED_PRIO                               5
#define  APP_TASK_LCD_PRIO							       3

#if (GUI_SUPPORT_TOUCH == 1)
		#define  APP_TASK_TOUCH_PRIO                       2
#endif


#define  OS_PROBE_TASK_PRIO              (OS_LOWEST_PRIO - 3)
#define  OS_TASK_TMR_PRIO                (OS_LOWEST_PRIO - 2)

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

#define  APP_TASK_LED_STK_SIZE                         128
#define  APP_TASK_LCD_STK_SIZE                           512

#if (GUI_SUPPORT_TOUCH == 1)
		#define  APP_TASK_Touch_STK_SIZE                 128
#endif

#define  OS_PROBE_TASK_STK_SIZE                          128

/*
*********************************************************************************************************
*                                                  LIB
*********************************************************************************************************
*/

#define  uC_CFG_OPTIMIZE_ASM_EN                 DEF_ENABLED
#define  LIB_STR_CFG_FP_EN                      DEF_DISABLED

extern unsigned int CCLK_Frq;

//LED indicators preset	定义LED使用GPIO端口
#define BRD_LED_1_CONNECTED_PORT		(1)
#define BRD_LED_1_CONNECTED_PIN			(12)
#define BRD_LED_1_CONNECTED_MASK		(1 << BRD_LED_1_CONNECTED_PIN)

#define BRD_LED_2_CONNECTED_PORT		(1)
#define BRD_LED_2_CONNECTED_PIN			(13)
#define BRD_LED_2_CONNECTED_MASK		(1 << BRD_LED_2_CONNECTED_PIN)

#endif

⌨️ 快捷键说明

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