97a80eeb99e99e238f0428741436f98424741a2c
[pandora-libraries.git] / include / pnd_device.h
1
2 #ifndef h_pnd_device_h
3 #define h_pnd_device_h
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 // do we have a 'minimal' lib yet anywhere formalized? if not, we could
10 // attempt to include it here.
11
12 // for reference material, see the Pandora wiki. Specifically, some good
13 // places to look:
14 // http://pandorawiki.org/Kernel_interface
15
16 /* overall clock speed
17  * WARN: No boundaries are checked, so try to avoid setting clock to 2GHz :)
18  * NOTE: get-clock() is not implemented yet.
19  */
20 #define PND_DEVICE_PROC_CLOCK "/proc/pandora/cpu_mhz_max"
21 unsigned char pnd_device_set_clock ( unsigned int c ); // returns >0 on success
22 unsigned int pnd_device_get_clock ( void ); // not implemented, returns 0
23
24 // LCD to set on/off
25
26 // set one or more LEDs on
27
28 // suspend/hibernate/etc
29
30 #ifdef __cplusplus
31 } /* "C" */
32 #endif
33
34 #endif