summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/system.h18
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);
56bool detect_flashed_ramimage(void); 56bool detect_flashed_ramimage(void);
57bool detect_original_firmware(void); 57bool 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
61void set_cpu_frequency(long frequency); 66void set_cpu_frequency(long frequency);
67#ifdef CPU_BOOST_LOGGING
68char * cpu_boost_log_getlog_first(void);
69char * cpu_boost_log_getlog_next(void);
70int cpu_boost_log_getcount(void);
71void cpu_boost_(bool on_off, char* location, int line);
72#else
62void cpu_boost(bool on_off); 73void cpu_boost(bool on_off);
74#endif
63void cpu_idle_mode(bool on_off); 75void cpu_idle_mode(bool on_off);
64int get_cpu_boost_counter(void); 76int 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