?? target.h
字號:
** 0xFF for all leds, others no action
** led: 要取反的LED的號碼,1-4代表LED1-LED4,0xFF代表全部LED,其他值無意義。
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if (TARGET_LED1_EN > 0) || (TARGET_LED2_EN > 0) || (TARGET_LED3_EN > 0) || (TARGET_LED4_EN > 0)
extern void ledToggle (INT8U ucLed);
#endif
/*********************************************************************************************************
** Function name: buzInit
** Descriptions: Initialize the target board's buzzer 初始化目標板的蜂鳴器
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if TARGET_BUZ_EN > 0
extern void buzInit (void);
#endif
/*********************************************************************************************************
** Function name: buzOn
** Descriptions: Switch on the buzzer 打開蜂鳴器
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if TARGET_BUZ_EN > 0
extern void buzOn (void);
#endif
/*********************************************************************************************************
** Function name: buzOff
** Descriptions: Switch off the buzzer 關閉蜂鳴器
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if TARGET_BUZ_EN > 0
extern void buzOff (void);
#endif
/*********************************************************************************************************
** Function name: buzToggle
**
** Descriptions: Toggle the buzzer 取反蜂鳴器
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if TARGET_BUZ_EN > 0
extern void buzToggle (void);
#endif
/*********************************************************************************************************
** Function name: keyInit
** Descriptions: Initialize the target board's keys,support up to 4 keys
** 初始化目標板的按鍵,最多支持4個
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if (TARGET_KEY1_EN > 0) || (TARGET_KEY2_EN > 0) || (TARGET_KEY3_EN > 0) || (TARGET_KEY4_EN > 0)
extern void keyInit (void);
#endif
/*********************************************************************************************************
** Function name: keyRead
** Descriptions: Read the status of the keys. 讀取按鍵的狀態
** Input parameters: None 無
** Output 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無意義
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if (TARGET_KEY1_EN > 0) || (TARGET_KEY2_EN > 0) || (TARGET_KEY3_EN > 0) || (TARGET_KEY4_EN > 0)
extern INT8U keyRead (void);
#endif
/*********************************************************************************************************
** Function name: timer0AInit
** Descriptions: Initialize Timer0A to 32bit timeout 初始化定時器0A為32位超時
** Input parameters: Tick: Number of timeout tick 超時脈沖數
Prio: Interrupt priority 中斷優先級
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if TARGET_TMR0A_EN > 0
extern void timer0AInit (INT32U ulTick, INT8U ucPrio);
#endif
/*********************************************************************************************************
** Function name: timer0AISR
** Descriptions: Timeout interrupt handler of Timer0A 定時器0A超時中斷
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if TARGET_TMR0A_EN > 0
extern void timer0AISR (void);
#endif
/*********************************************************************************************************
** Function name: tickISRHandler
** Descriptions: Timeout interrupt handler of system timer 系統定時器超時中斷
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
extern void tickISRHandler (void);
/*********************************************************************************************************
** Function name: targetInit
** Descriptions: Initialize the target board 初始化目標板
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.01.18
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
extern void targetInit (void);
#ifdef __cplusplus
}
#endif
#endif
/*********************************************************************************************************
END FILE
*********************************************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -