firmware/user.h
author slime@unimatrix01.gamma-quadrant.de
Tue, 29 Jan 2008 22:31:52 +0100
changeset 2 2f55e5dd591d
child 25 96f051df5d60
permissions -rw-r--r--
inital checkin
     1 /*
     2  * Project Frontplatte
     3  *
     4  * user.h  -  Handle incoming commands
     5  *
     6  * This file is released under the GNU General Public License. Refer
     7  * to the COPYING file distributed with this package.
     8  *
     9  * (c) 2007 Carsten Presser cpresser AT fsing.uni-sb.de
    10  */
    11 
    12 #ifndef __USER_H
    13 #define __USER_H
    14 
    15 
    16 /** D E F I N I T I O N S ****************************************************/
    17 // font-offset
    18 #define	TIME_Y_START		6		// pixels
    19 #define	TIME_X_START		2		// 8pixels
    20 #define FONT_HEIGHT			48		// pixels
    21 #define FONT_WIDTH			4		// bytes
    22 
    23 
    24 /** E X T E R N A L   V A R I A B L E S ***************************/
    25 extern unsigned char	gg_keys;
    26 extern unsigned char	gg_ioflags;
    27 extern unsigned char	gg_pwm1dc;
    28 extern unsigned char	gg_mode;
    29 
    30 
    31 
    32 /** P U B L I C  P R O T O T Y P E S *****************************************/
    33 void UserInit(void);
    34 void DrawTime(void);
    35 void ReadKeys(void);
    36 void ReadClock(void);
    37 
    38 void Wdebug (unsigned char dat);
    39 void Wstring (char *dat,unsigned char len);
    40 
    41 #endif //USER_H