Includes itoa implementation and functions for interacting with lcd display and joystick
Diff: bsp.h
- Revision:
- 0:60800820b5a8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bsp.h Thu Feb 16 14:28:40 2012 +0000 @@ -0,0 +1,20 @@ +#ifndef bsp_h +#define bsp_h + +#define BSP_TICKS_PER_SEC 100 // system clock tick rate + +#define JOYSTICK_INPUT_PIN p16 +#define JOYSTICK_SELECT_PIN p13 + +#define JOY_UP 1 +#define JOY_DOWN 2 +#define JOY_CENTER 3 + +void BSP_lcdScrollIn(char*, char*); // display functions +void BSP_lcdUpdate(char*,char*); +int BSP_joyUpdate(void); // returns joystick value + +char* itoa(int, int); // int to char, number and base +char* cat(char*, char*, char*); // concatonate, first, second, output(for filling with ' ' if lenght of first+second<output ) + +#endif \ No newline at end of file