kern/global.h File Reference

Miscellaneous kernel support functions. More...

#include <stddef.h>
#include "config.h"
#include <avr/pgmspace.h>


Defines

#define JOYOS_VERSION   "0.2.2"
 Current JoyOS version.

Functions

void panic (char *msg)
void set_auto_halt (uint8_t ah)

Detailed Description

This header includes kernel-level support and debbugging functions as well as JoyOS version information.

Function Documentation

void panic ( char *  msg  ) 

System panic. Call this routine to halt the board and display an error message on the LCD. This routine never returns.

Parameters:
msg Display "panic: msg" on the LCD.

void set_auto_halt ( uint8_t  ah  ) 

Enable or disable the Auto-halt. By default after 60 seconds, the kernel will disable all motors and servos and halt. To disable this functionality call set_auto_halt(0);

Parameters:
ah whether to enable or disable auto-halt functionality