sys_clock.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002                            C   H E A D E R   F I L E
00003 
00004     Copyright (c) 2003 Neuros Audio LLC, All rights reserved.
00005 
00006 ******************************************************************************/
00007 
00017 
00018 #ifndef SYS_CLK__H
00019 #define SYS_CLK__H
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025 /*-- HEADER FILE INCLUDES ---------------------------------------------------*/
00026 #include "../ctype.h"
00027 #include "../c54regs.h"
00028 #include "../feature.h"
00029 
00030 /*-- SHARED DEFINITIONS -----------------------------------------------------*/
00031 #define SYSTEM_CLOCK        (12000000L) /* System clock in Hz */
00032 #define SYSTEM_TICK_SECOND  (200)       /* System tick counts in one second. */
00035 typedef enum 
00036 {
00039     CLOCK_FMTUNER  = (int)0x40CF,   
00040     //CLOCK_FMTUNER  = (int)0x90CF,
00041     
00044     CLOCK_IDLE      = (int)0x40CF,  
00045     //CLOCK_IDLE        = (int)0x90CF,  
00046     
00049     CLOCK_PLAY      = (int)0x90CF,
00050     
00053     CLOCK_MYFI      = (int)0x90CF,
00054 
00057     //CLOCK_MP3PLAY = (int)0x80CF,
00058     CLOCK_MP3PLAY   = (int)0x90CF,
00059 
00062     //CLOCK_WAVPLAY = (int)0x80CF,
00063     CLOCK_WAVPLAY   = (int)0x90CF,
00064 
00067     //CLOCK_WMAPLAY = (int)0x80CF,
00068     CLOCK_WMAPLAY   = (int)0x90CF,
00069 
00072     //CLOCK_OGGPLAY = (int)0x80CF,
00073     CLOCK_OGGPLAY   = (int)0x90CF,
00074 
00077     CLOCK_MP3RECORD= (int)0x90CF,
00078     
00081     CLOCK_SLEEP     = (int)0xF000,  
00082     
00085     CLOCK_STARTUP   = (int)0x90CF,  /* 120MHz   CLK_IN * 10. */
00086     
00089     CLOCK_USB       = (int)0x60CF,  /* 84MHz    CLK_IN * 7. */
00090     
00091     
00094     Invalid_ClockMode = (int)0xFFFF
00095 
00096 } CLOCK_MODE;
00097 
00098 /*-- FUNCTION PROTOTYPES ----------------------------------------------------*/
00099 void   SYS_clockSetup(CLOCK_MODE);
00100 UINT32 SYS_getCPUClock(void);
00101 
00102 /*---------------------------------------------------------------------------*/
00103 
00104 #ifdef __cplusplus
00105 }
00106 #endif
00107 
00108 #endif /* SYS_CLK__H */ 
00109 
00110 /*****************************************************************************
00111                 Neuros Audio LLC. Confidential Proprietary
00112  *****************************************************************************/

Generated on Wed Jan 19 01:12:43 2005 for neuros-firmware by  doxygen 1.3.9.1