📄 os_lh79524.h
字号:
#ifndef OS_LH79524_H
#define OS_LH79524_H
/*
*********************************************************************
* $Workfile: os_lh79524.h $
* $Revision: 1.0 $
* $Author: LiJ $
* $Date: Oct 20 2004 14:11:12 $
*
* Project: LH79524
*
* Description:
*
* Notes:
*
* Revision History:
* $Log: //smaicnt2/pvcs/VM/sharpmcu/archives/sharpmcu/software/csps/lh79524/ports/ucosii/os_lh79524.h-arc $
*
* Rev 1.0 Oct 20 2004 14:11:12 LiJ
* Initial revision.
*
*
* SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
* OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
* AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES,
* SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
*
* SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY
* FOR THE PURPucosiiE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A
* SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
* FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
*
* COPYRIGHT (C) 2000 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
* CAMAS, WA
********************************************************************
*/
#define _SBF(f,v) (((unsigned int)(v)) << (f))
#define _BIT(n) (((unsigned int)(1)) << (n))
#define CRYSTAL_FREQ (11289600)
/**********************************************************************/
/* below define are not to be modified */
/**********************************************************************/
#define TIMER1_LH79524_VIC_SOURCE 5
#define TIMER2_LH79524_VIC_SOURCE 6
#define RCPCBASE (0xFFFE2000)
#define RCPC_SYSPLLCTL (RCPCBASE+0xC0)
#define RCPC_SYSCLKPRE (RCPCBASE+0x18)
typedef struct TIMER_REGS_S
{
/* Control register */
volatile unsigned int ctrl;
/* Interrupt control */
volatile unsigned int int_ctrl;
/* Status register */
volatile unsigned int status;
/* Counter register */
volatile unsigned int cnt;
/* Compare register 0 */
volatile unsigned int cmp0;
/* Compare register 1 */
volatile unsigned int cmp1;
/* Capture register 0 */
volatile unsigned int cap0;
/* Capture register 1 */
volatile unsigned int cap1;
} TIMER_REGS_T;
#define TIMER1_BASE (0xfffc4030)
#define TIMER2_BASE (0xfffc4050)
#define TIMER1 ((TIMER_REGS_T *)(TIMER1_BASE))
#define TIMER2 ((TIMER_REGS_T *)(TIMER2_BASE))
#define VICBASE 0xFFFFF000
#define VICIntEnableClear (VICBASE+0x14)
#define VICIntEnable (VICBASE+0x10)
#define VICVectorAddr (VICBASE+0x30)
#define VICVectorCntl(a) (VICBASE+0x200+a*0x4)
#define VICIntSelect (VICBASE+0xC)
#define VICVectAddr(a) (VICBASE+0x100+a*0x4)
/* Declarations of LH79524 EVB Specific functions */
void MCU_start_ticker (int ticks_per_sec);
#endif /* OS_LH79524_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -