Miscellaneous


int sleep ( int sec );
#include <unistd.h>
pauses the current task for sec seconds
returns: zero

int msleep ( int msec );
#include <unistd.h>
pauses the current task for msec milliseconds
returns: zero

void power_off ( );
#include <rom/system.h>
Initiates Software Standby/Low Power mode.  On/Off button will reactivate

void reset ( );
#include <rom/system.h>
Returns control to ROM, ie. Cold Boot

int random ( );
#include <stdlib.h>
returns: a random integer

void srandom ( int seed );
#include <stdlib.h>
Seeds the random number generator with value seed

long int sys_time
#include <time.h>
macro that evaluates to the current system time (time up from last firmware d/l) in msec. This is a 32 bit value which will overflow after 49.7 days of continuous operation.