2 #include <stdio.h> /* for FILE etc */
3 #include <stdlib.h> /* for malloc */
6 #include <sys/types.h> /* for open */
11 #include "pnd_device.h"
13 unsigned char pnd_device_set_clock ( unsigned int c ) {
17 sprint ( buffer, "%u", c );
19 if ( ( f = open ( PND_DEVICE_PROC_CLOCK, O_RDONLY ) ) < 0 ) {
23 if ( write ( f, buffer, strlen ( buffer ) ) < strlen ( buffer ) ) {
32 unsigned int pnd_device_get_clock ( void ) {