From 6dc25e11505b84218726cbd0199f79ed414f86e5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 25 Jul 2018 11:43:53 -0600 Subject: [PATCH] arch/arm/src/samd2l2/chip/saml_evsys.h: Complete some unfinished settings. --- arch/arm/src/samd2l2/chip/saml_evsys.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/samd2l2/chip/saml_evsys.h b/arch/arm/src/samd2l2/chip/saml_evsys.h index 4b57a6a4a9..49e0d55427 100644 --- a/arch/arm/src/samd2l2/chip/saml_evsys.h +++ b/arch/arm/src/samd2l2/chip/saml_evsys.h @@ -72,10 +72,8 @@ #define SAM_EVSYS_INTENSET (SAM_EVSYS_BASE+SAM_EVSYS_INTENSET_OFFSET #define SAM_EVSYS_INTFLAG (SAM_EVSYS_BASE+SAM_EVSYS_INTFLAG_OFFSET) #define SAM_EVSYS_SWEVT (SAM_EVSYS_BASE+SAM_EVSYS_SWEVT_OFFSET) -#define SAM_EVSYS_CHANNEL_OFFSET(n) (0x0020 + ((n) << 2)) /* Channel registers */ -#define SAM_EVSYS_CHANNEL_OFFSET(n) (0x0020 + ((n) << 2)) /* Channel registers */ -#define SAM_EVSYS_USER_OFFSET(n) (0x0080 + ((m) << 2)) /* User registers */ -#define SAM_EVSYS_USER_OFFSET(n) (0x0080 + ((m) << 2)) /* User registers */ +#define SAM_EVSYS_CHANNEL_BASE(n) (SAM_EVSYS_BASE+SAM_EVSYS_CHANNEL_OFFSET(n)) +#define SAM_EVSYS_USER_BASE(n) (SAM_EVSYS_BASE+SAM_EVSYS_USER_OFFSET(n)) /* EVSYS register bit definitions ***********************************************************/