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/SAM7S256/Include/sam7s256.h | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 AT91SAM7S256/SAM7S256/Include/sam7s256.h (limited to 'AT91SAM7S256/SAM7S256/Include/sam7s256.h') diff --git a/AT91SAM7S256/SAM7S256/Include/sam7s256.h b/AT91SAM7S256/SAM7S256/Include/sam7s256.h new file mode 100644 index 0000000..5a2d07d --- /dev/null +++ b/AT91SAM7S256/SAM7S256/Include/sam7s256.h @@ -0,0 +1,45 @@ +// +// Date init 14.12.2004 +// +// Revision date $Date:: 16-05-06 10:08 $ +// +// Filename $Workfile:: sam7s256.h $ +// +// Version $Revision:: 7 $ +// +// Archive $Archive:: /LMS2006/Sys01/Main/Firmware/Sam7s256/Include/ $ +// +// Platform C +// + +#ifndef SAM7S256_H +#define SAM7S256_H + +#include "ioat91sam7s256.h" + +#define SAM7S256 + +#define HARDWAREInit {\ + ULONG TmpReset;\ + *AT91C_RSTC_RMR = 0xA5000401;\ + *AT91C_AIC_DCR = 1;\ + *AT91C_PITC_PIMR = (0x000FFFFF | 0x01000000);\ + TmpReset = *AT91C_PITC_PIVR;\ + TmpReset = TmpReset;/* Suppress warning*/\ + *AT91C_PMC_PCER = (1L<