From ba78bd9ba834260d035a9830726afc34fdad2a15 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 18 Oct 2009 23:32:54 +0200 Subject: import firmware from LEGO v1.05 --- ATmega48/Source/c_armcomm.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ATmega48/Source/c_armcomm.h (limited to 'ATmega48/Source/c_armcomm.h') diff --git a/ATmega48/Source/c_armcomm.h b/ATmega48/Source/c_armcomm.h new file mode 100644 index 0000000..239ab73 --- /dev/null +++ b/ATmega48/Source/c_armcomm.h @@ -0,0 +1,44 @@ +// +// Programmer +// +// Date init 14.12.2004 +// +// Reviser $Author:: Dkandlun $ +// +// Revision date $Date:: 28-12-04 14:19 $ +// +// Filename $Workfile:: c_armcomm.h $ +// +// Version $Revision:: 1 $ +// +// Archive $Archive:: /LMS2006/Sys01/Peripheral/Firmware/Source/c_ar $ +// +// Platform C +// + + +#ifndef C_ARMCOMM +#define C_ARMCOMM + +#define NOS_OF_MOTORS 4 +#define NOS_OF_SENSORS 4 +#define NOS_OF_BTNS 5 + +typedef struct +{ + UBYTE TimerTik; + UBYTE MotorStatus[NOS_OF_MOTORS]; + UBYTE MotorSpeed[NOS_OF_MOTORS]; +}InputMap; + +typedef struct +{ + SWORD SensorValue[NOS_OF_SENSORS]; + UBYTE ButtonState[NOS_OF_BTNS]; +}OutputMap; + +void cArmCommInit(void); +UBYTE cArmCommCtrl(void); +void cArmCommExit(void); + +#endif -- cgit v1.2.3