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/d_button.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 AT91SAM7S256/Source/d_button.c (limited to 'AT91SAM7S256/Source/d_button.c') diff --git a/AT91SAM7S256/Source/d_button.c b/AT91SAM7S256/Source/d_button.c new file mode 100644 index 0000000..a74c166 --- /dev/null +++ b/AT91SAM7S256/Source/d_button.c @@ -0,0 +1,36 @@ +// +// Date init 14.12.2004 +// +// Revision date $Date:: 16-05-06 9:58 $ +// +// Filename $Workfile:: d_button.c $ +// +// Version $Revision:: 4 $ +// +// Archive $Archive:: /LMS2006/Sys01/Main/Firmware/Source/d_button.c $ +// +// Platform C +// + +#include "stdconst.h" +#include "m_sched.h" +#include "d_button.h" +#include "d_button.r" + +static UBYTE TimeTick; + +void dButtonInit(UBYTE Prescaler) +{ + TimeTick = Prescaler; + BUTTONInit; +} + +void dButtonRead(UBYTE *pButton) +{ + BUTTONRead(pButton); +} + +void dButtonExit(void) +{ + BUTTONExit; +} -- cgit v1.2.3