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

📄 user_func.h

📁 深圳优龙公司LPC2148开发板(与iar公司开发板基本相同)的原理图和配套样例程序
💻 H
字号:
#ifndef  __USER_FUNC_H
#define  __USER_FUNC_H

/*************************************************************************
 *
 *    Used with ICCARM and AARM.
 *
 *    (c) Copyright IAR Systems 2003
 *
 *    File name   : config.h
 *    Description : Define common defenition
 *
 *    History :
 *    1. Data   	 : Feb 10, 2005
 *  	 Author 	 : Stanimir Bonev
 *  	 Description : Create
 *
 *    $Revision: 1.2 $
 **************************************************************************/

#include <includes.h>
#define BUTT_EVENT_1	1
#define BUTT_EVENT_2	2
#define BUTT_EVENT_3	4
#define BUTT_EVENT_4	8
#define BUTT_FLAG_1 	0x10
#define BUTT_FLAG_2 	0x20
#define BUTT_FLAG_3 	0x40
#define BUTT_FLAG_4 	0x80
#define BUTT_DEB		2    /* 20ms */

#define LIGHT_ON		1
#define LIGHT_OFF   	0

#define LIGHT_SLOW  	1
#define LIGHT_FAST  	0

#define LIGHT_OFF_VALUE 0
#define LIGHT_ON_VALUE  1

void GetTimeAndData( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );

void ScreenSaverInit( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );
void ScreenSaver( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );

void SysTimeUpdate( void );
void Alarm( void );

void LEDs_Init( void ) ;
void LEDs_Set( unsigned char m ) ;
void LEDs_Disp_Test( void ) ;

void Beep( unsigned int time ) ;
void PWM2_Beep_Test( void ) ;

LPC_INT8U GetButtonsEvent( void );
void ButtonsInit( void );
void Buttons_Test( void ) ;

void SetSysTickFlag( void* arg );

void LightCntr( LPC_BOOL On );
void LightInit( void );

void ADC_Init( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );
void ADC_Measure( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );

void ADC3_Input_Test( void ) ;

void ADC_Channel_6_Init( void ) ;
unsigned int ADC_Channel_6_Measure( void ) ;

void NTC_Resistor_Temperature_Test( void ) ;

void IlluminationShow( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );
void IlluminationModeCursorOn( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );
void IlluminationNextMode( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );

void CursorOff( MEMU_STING_DEF* pVarArg , MEMU_IND_DEF* MenuIndex , MEMU_TIME_OUT_DEF* MenuTO );

extern volatile int TickSysFlag;
extern int SysTimeUpdateFlag;
extern int SysAlarmFlag;

extern int TimeFormat;
extern int DataFormat;

extern int LightMode;

#endif  /* __USER_FUNC_H */

⌨️ 快捷键说明

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