diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/system.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 688cf9bc15..6b53b88639 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -56,22 +56,38 @@ bool detect_flashed_romimage(void); | |||
56 | bool detect_flashed_ramimage(void); | 56 | bool detect_flashed_ramimage(void); |
57 | bool detect_original_firmware(void); | 57 | bool detect_original_firmware(void); |
58 | 58 | ||
59 | #if defined(HAVE_ADJUSTABLE_CPU_FREQ) \ | ||
60 | && defined(ROCKBOX_HAS_LOGF) | ||
61 | #define CPU_BOOST_LOGGING | ||
62 | #endif | ||
63 | |||
59 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 64 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
60 | #define FREQ cpu_frequency | 65 | #define FREQ cpu_frequency |
61 | void set_cpu_frequency(long frequency); | 66 | void set_cpu_frequency(long frequency); |
67 | #ifdef CPU_BOOST_LOGGING | ||
68 | char * cpu_boost_log_getlog_first(void); | ||
69 | char * cpu_boost_log_getlog_next(void); | ||
70 | int cpu_boost_log_getcount(void); | ||
71 | void cpu_boost_(bool on_off, char* location, int line); | ||
72 | #else | ||
62 | void cpu_boost(bool on_off); | 73 | void cpu_boost(bool on_off); |
74 | #endif | ||
63 | void cpu_idle_mode(bool on_off); | 75 | void cpu_idle_mode(bool on_off); |
64 | int get_cpu_boost_counter(void); | 76 | int get_cpu_boost_counter(void); |
65 | #else | 77 | #else |
66 | #define FREQ CPU_FREQ | 78 | #define FREQ CPU_FREQ |
67 | #define set_cpu_frequency(frequency) | 79 | #define set_cpu_frequency(frequency) |
68 | #define cpu_boost(on_off) | 80 | #define cpu_boost(on_off,location) |
69 | #define cpu_boost_id(on_off, id) | 81 | #define cpu_boost_id(on_off, id) |
70 | #define cpu_idle_mode(on_off) | 82 | #define cpu_idle_mode(on_off) |
71 | #define get_cpu_boost_counter() | 83 | #define get_cpu_boost_counter() |
72 | #define get_cpu_boost_tracker() | 84 | #define get_cpu_boost_tracker() |
73 | #endif | 85 | #endif |
74 | 86 | ||
87 | #ifdef CPU_BOOST_LOGGING | ||
88 | #define cpu_boost(on_off) cpu_boost_(on_off,__FILE__, __LINE__) | ||
89 | #endif | ||
90 | |||
75 | #define BAUDRATE 9600 | 91 | #define BAUDRATE 9600 |
76 | 92 | ||
77 | #ifndef NULL | 93 | #ifndef NULL |