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 --- AT91SAM7S256/Source/c_button.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 AT91SAM7S256/Source/c_button.h (limited to 'AT91SAM7S256/Source/c_button.h') diff --git a/AT91SAM7S256/Source/c_button.h b/AT91SAM7S256/Source/c_button.h new file mode 100644 index 0000000..abb1b2b --- /dev/null +++ b/AT91SAM7S256/Source/c_button.h @@ -0,0 +1,37 @@ +// +// Date init 14.12.2004 +// +// Revision date $Date:: 16-05-06 9:58 $ +// +// Filename $Workfile:: c_button.h $ +// +// Version $Revision:: 6 $ +// +// Archive $Archive:: /LMS2006/Sys01/Main/Firmware/Source/c_button.h $ +// +// Platform C +// + +#ifndef C_BUTTON +#define C_BUTTON + +#ifdef INCLUDE_OS +extern const HEADER cButton; +#endif + +#include "c_button.iom" + + +typedef struct +{ + UWORD Cnt[NO_OF_BTNS]; + UBYTE OldState; +}VARSBUTTON; + +void cButtonInit(void* pHeader); +void cButtonCtrl(void); +void cButtonExit(void); + +extern const HEADER cButton; + +#endif -- cgit v1.2.3