From 39a0b064afd6e7fdc89d2d5c3a7e1b6f4c94b320 Mon Sep 17 00:00:00 2001 From: Richard Eoin Meadows Date: Fri, 22 Aug 2014 21:56:35 +0100 Subject: [PATCH] Use external access DSU range --- src/samd20.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/samd20.c b/src/samd20.c index bdb2ba6..bad52b9 100644 --- a/src/samd20.c +++ b/src/samd20.c @@ -110,10 +110,11 @@ static const char samd20_xml_memory_map[] = "" /* Device Service Unit (DSU) Registers */ #define SAMD20_DSU 0x41002000 -#define SAMD20_DSU_CTRLSTAT (SAMD20_DSU + 0x0) -#define SAMD20_DSU_ADDRESS (SAMD20_DSU + 0x4) -#define SAMD20_DSU_LENGTH (SAMD20_DSU + 0x8) -#define SAMD20_DSU_DID (SAMD20_DSU + 0x018) +#define SAMD20_DSU_EXT_ACCESS (SAMD20_DSU + 0x100) +#define SAMD20_DSU_CTRLSTAT (SAMD20_DSU_EXT_ACCESS + 0x0) +#define SAMD20_DSU_ADDRESS (SAMD20_DSU_EXT_ACCESS + 0x4) +#define SAMD20_DSU_LENGTH (SAMD20_DSU_EXT_ACCESS + 0x8) +#define SAMD20_DSU_DID (SAMD20_DSU_EXT_ACCESS + 0x018) #define SAMD20_DSU_PID(n) (SAMD20_DSU + 0x1FE0 + \ (0x4 * (n % 4)) - (0x10 * (n / 4))) #define SAMD20_DSU_CID(n) (SAMD20_DSU + 0x1FF0 + \