Includes itoa implementation and functions for interacting with lcd display and joystick

bsp.h

Committer:
tylerjw
Date:
2012-02-16
Revision:
0:60800820b5a8

File content as of revision 0:60800820b5a8:

#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