clock.h

来自「RTOS系统」· C头文件 代码 · 共 68 行

H
68
字号
/* $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 + =
减小字号Ctrl + -
显示快捷键?