📄 clock.h
字号:
/* $Id: //depot/software/SDK/Triscend/a7hal/include/clock.h#27 $ */#ifndef _CLOCK_H#define _CLOCK_H/* ********************************************************** * clock.h * Copyright(C) 2001-2003 Triscend Corporation. All Rights Reserved. * This file is licensed under the terms of Triscend SDK License Agreement. ********************************************************** *//** * \file * Contains #defines and function prototypes for the Clock driver */#if defined(A7VE) || defined(A7VC) || defined(A7VT) || defined(A7VL)#define A7HAL_XTAL_FREQ 32768 /* Default value for PLL clock */#if defined(TA7VT05_RevA) || defined(TA7VT05_RevA_Audio) || defined(TA7VT05_RevA_Motor)#define A7HAL_XCLK_FREQ 25000000 /* Default value for the external clock */#else#define A7HAL_XCLK_FREQ 48000000 /* Default value for the external clock */#endif#define A7HAL_RING_FREQ 18000000 /* Default value for RING oscillator */#else#define A7HAL_XTAL_FREQ 32768 /* Default value for PLL clock */#define A7HAL_XCLK_FREQ 40000000 /* Default value for the external clock */#define A7HAL_RING_FREQ 20000000 /* Default value for RING oscillator */#endif/* * Definitions for uClinux IOCTL calls. */#define A7HAL_IOCTL_CLOCK_GET_FREQ 0x00#ifdef __cplusplusextern "C"{#endif void a7hal_clock_init( void ); unsigned long a7hal_clock_getDeviceAddress( void ); void a7hal_clock_reset( void ); unsigned long a7hal_clock_getFreq( int noRAM ); void a7hal_clock_setPllClock( unsigned long freq ); unsigned long a7hal_clock_getPllClock( void ); void a7hal_clock_setXClock( unsigned long freq ); unsigned long a7hal_clock_getXClock( void ); void a7hal_clock_setRing( unsigned long freq ); unsigned long a7hal_clock_getRing( void );#ifdef __cplusplus}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -