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

📄 target.h

📁 基于 Luminary Micro 公司的 Cortex-M3 (ARM)内核使用之 uC/OS-II 作业系统,此例程是移植于 LM3S310 上的应用,于 Keil MDK 工程编译,而 uC/O
💻 H
📖 第 1 页 / 共 2 页
字号:
********************************************************************************************************/
#if (TARGET_LED1_EN>0) || (TARGET_LED2_EN>0) || (TARGET_LED3_EN>0) || (TARGET_LED4_EN>0)
extern void  Led_Toggle (uint8 led);
#endif


/*********************************************************************************************************
** Function name:			Buz_Init 
**
** Descriptions:			Initialize the target board's buzzer 初始化目标板的蜂鸣器
**
** Input parameters:		None 无
** Returned value:		None 无
**         
** Used global variables:	None 无
** Calling modules:		SysCtlPeripheralEnable,GPIODirModeSet,Buz_Off
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#if TARGET_BUZ_EN>0
extern void  Buz_Init (void);
#endif


/*********************************************************************************************************
** Function name:			Buz_On
**
** Descriptions:			Switch on the buzzer 打开蜂鸣器
**
** Input parameters:		None 无
** Returned value:		None 无
**         
** Used global variables:	None 无
** Calling modules:		GPIOPinWrite
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#if TARGET_BUZ_EN>0
extern void  Buz_On(void);
#endif


/*********************************************************************************************************
** Function name:			Buz_Off
**
** Descriptions:			Switch off the buzzer 关闭蜂鸣器
**
** Input parameters:		None 无
** Returned value:		None 无
**         
** Used global variables:	None 无
** Calling modules:		GPIOPinWrite
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#if TARGET_BUZ_EN>0
extern void Buz_Off(void);
#endif


/*********************************************************************************************************
** Function name:			Buz_Toggle
**
** Descriptions:			Toggle the buzzer 取反蜂鸣器
**
** Input parameters:		None 无
** Returned value:		None 无
**         
** Used global variables:	None 无
** Calling modules:		GPIOPinWrite,GPIOPinRead
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#if TARGET_BUZ_EN>0
extern void  Buz_Toggle(void);    
#endif


/*********************************************************************************************************
** Function name:			Key_Init
**
** Descriptions:			Initialize the target board's keys,support up to 4 keys 
**                       初始化目标板的按键,最多支持4个
**
** Input parameters:		None 无
** Returned value:		None 无
**         
** Used global variables:	None 无
** Calling modules:		GPIOPinWrite,GPIOPinRead
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#if (TARGET_KEY1_EN>0) ||  (TARGET_KEY2_EN>0) || (TARGET_KEY3_EN>0) || (TARGET_KEY4_EN>0)
extern void  Key_Init(void);    
#endif


/*********************************************************************************************************
** Function name:			Key_Read
**
** Descriptions:			Read the status of the keys. 读取按键的状态
**
** Input parameters:		None 无
** Returned value:	    8-bit unsigned char data. Bit0-bit3 stand for the status of Key1-Key4, bit4-Bit7 no meaning
**                       8位无符号数,位0-位3表示Key1-Key4的状态,位4-位7无意义
**         
** Used global variables:	None 无
** Calling modules:		GPIOPinWrite,GPIOPinRead
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#if (TARGET_KEY1_EN>0) ||  (TARGET_KEY2_EN>0) || (TARGET_KEY3_EN>0) || (TARGET_KEY4_EN>0)
extern uint8 Key_Read(void);    
#endif


/*********************************************************************************************************
** Function name:			Timer0A_Init
**
** Descriptions:			Initialize Timer0A to 32bit timeout 初始化定时器0A为32位超时
**
** Input parameters:		Tick: Number of timeout tick 超时脉冲数
                         Prio: Interrupt priority 中断优先级
** Returned value:		None 无
**         
** Used global variables:	None 无
** Calling modules:		SysCtlPeripheralEnable,TimerConfigure,TimerLoadSet,TimerIntEnable,
                         IntEnable,IntPrioritySet,TimerEnable
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#if TARGET_TMR0A_EN > 0
extern void Timer0A_Init(uint32 Tick, uint8 Prio);
#endif


/*********************************************************************************************************
** Function name:			Timer0A_ISR
**
** Descriptions:			Timeout interrupt handler of Timer0A 定时器0A超时中断
**
** Input parameters:		None 无
** Returned value:		None 无
**         
** Used global variables:	None 无
** Calling modules:		TimerIntClear,LED_Toggle
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#if TARGET_TMR0A_EN > 0
extern void Timer0A_ISR(void);
#endif


/*********************************************************************************************************
** Function name:			Tmr_TickISR_Handler
**
** Descriptions:			Timeout interrupt handler of system timer 系统定时器超时中断
**
** Input parameters:		None 无
** Returned value:		None 无
**         
** Used global variables:	OSIntNesting
** Calling modules:		OS_ENTER_CRITICAL,OS_EXIT_CRITICAL,OSTimeTick,OSIntExit
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
extern void  Tmr_TickISR_Handler (void);


/*********************************************************************************************************
** Function name:			TargetInit
**
** Descriptions:			Initialize the target board 初始化目标板
**
** Input parameters:		None 无
** Returned value:		None 无
**         
** Used global variables:	None 无
** Calling modules:		SysCtlClockSet,Tmr_TickInit
**
** Created by:				Steven Zhou 周绍刚
** Created Date:			2007-01-18
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
extern void  TargetInit (void);



#endif
/*********************************************************************************************************
*                                        End Of File                                                     *
*********************************************************************************************************/

⌨️ 快捷键说明

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