From d383f2bcdb6ff13cc562fce1ff55d826035debad Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 6 Mar 2023 17:36:31 +0100 Subject: Simplify source tree Now just use make in the root directory to build. --- src/sam7s256.h | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/sam7s256.h (limited to 'src/sam7s256.h') diff --git a/src/sam7s256.h b/src/sam7s256.h new file mode 100644 index 0000000..0118c40 --- /dev/null +++ b/src/sam7s256.h @@ -0,0 +1,64 @@ +// +// Date init 14.12.2004 +// +// Revision date $Date:: 24-04-08 14:33 $ +// +// Filename $Workfile:: sam7s256.h $ +// +// Version $Revision:: 5 $ +// +// Archive $Archive:: /LMS2006/Sys01/Main_V02/Firmware/Sam7s256/Incl $ +// +// Platform C +// + +#ifndef SAM7S256_H +#define SAM7S256_H + +#ifdef __IAR_SYSTEMS_ICC__ +#include "ioat91sam7s256.h" +#else +#include "AT91SAM7S256.h" +#endif + +#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<