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

📄 lh7a400_timer_driver.h

📁 sharp触摸屏测试代码
💻 H
字号:
/**********************************************************************
 *	$Workfile:   LH7A400_timer_driver.h  $
 *	$Revision:   1.2  $
 *	$Author:   KovitzP  $
 *	$Date:   Jan 04 2002 16:44:12  $
 *
 *	Project: LH7A400
 *
 *	Description:
 *      This file contains driver support for the timer modules 
 *      on the LH7A400
 *
 *	References:
 *
 * Requires;
 *   LH7A400_int_driver.h and all files included by it.
 *
 *	Revision History:
 *	$Log:   P:/PVCS6_6/archives/LH7A400 (Aruba)/Timer/LH7A400_timer_driver.h-arc  $
 * 
 *    Rev 1.2   Jan 04 2002 16:44:12   KovitzP
 * Added a functions to set and get timer overflows per second.
 * 
 *    Rev 1.1   Nov 13 2001 16:28:58   KovitzP
 * Added dependencies to comments.
 * 
 *    Rev 1.0   Nov 13 2001 16:19:32   KovitzP
 * Initial revision.
 * 
 *
 *	COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
 *		CAMAS, WA
 *********************************************************************/
#ifndef LH7A400_TIMER_DRIVER_H
#define LH7A400_TIMER_DRIVER_H
#include "LH7A400_map.h"
void timer_init(TIMERREGS * timer);
void timer_irq_setup(TIMERREGS * timer, 
                     INT_32 priority, 
                     void (*handler)(void) );

void timer_start(TIMERREGS * timer);
void timer_stop(TIMERREGS * timer);
void timer_set_counts(TIMERREGS * timer, UNS_16 counts);
void timer_clock_2k(TIMERREGS * timer);
void timer_clock_508k(TIMERREGS * timer);
UNS_32 timer_set_delay(TIMERREGS * timer, UNS_32 time_in_us);
UNS_32 timer_get_delay(TIMERREGS * timer);
UNS_32 timer_set_overflow_rate(TIMERREGS * timer, 
                               INT_32 overflows_per_second);
UNS_32 timer_get_overflow_rate(TIMERREGS * timer);
void timer_periodic(TIMERREGS * timer);
void timer_free_run(TIMERREGS * timer);
void timer_int_enable(TIMERREGS * timer);
void timer_int_clear(TIMERREGS * timer);
void timer_int_disable(TIMERREGS * timer);
void buzzer_high(void);
void buzzer_low(void);
void buzzer_timer1(void);
UNS_32 buzzer_squarewave_start(UNS_32 period_in_us);
void buzzer_squarewave_stop(void);

#endif

⌨️ 快捷键说明

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