00001
00002
00003
00004
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
00026 #include "../ctype.h"
00027 #include "../c54regs.h"
00028 #include "../feature.h"
00029
00030
00031 #define SYSTEM_CLOCK (12000000L)
00032 #define SYSTEM_TICK_SECOND (200)
00035 typedef enum
00036 {
00039 CLOCK_FMTUNER = (int)0x40CF,
00040
00041
00044 CLOCK_IDLE = (int)0x40CF,
00045
00046
00049 CLOCK_PLAY = (int)0x90CF,
00050
00053 CLOCK_MYFI = (int)0x90CF,
00054
00057
00058 CLOCK_MP3PLAY = (int)0x90CF,
00059
00062
00063 CLOCK_WAVPLAY = (int)0x90CF,
00064
00067
00068 CLOCK_WMAPLAY = (int)0x90CF,
00069
00072
00073 CLOCK_OGGPLAY = (int)0x90CF,
00074
00077 CLOCK_MP3RECORD= (int)0x90CF,
00078
00081 CLOCK_SLEEP = (int)0xF000,
00082
00085 CLOCK_STARTUP = (int)0x90CF,
00086
00089 CLOCK_USB = (int)0x60CF,
00090
00091
00094 Invalid_ClockMode = (int)0xFFFF
00095
00096 } CLOCK_MODE;
00097
00098
00099 void SYS_clockSetup(CLOCK_MODE);
00100 UINT32 SYS_getCPUClock(void);
00101
00102
00103
00104 #ifdef __cplusplus
00105 }
00106 #endif
00107
00108 #endif
00109
00110
00111
00112