From 6e490759d63a9e3cf983feb59f3a82a2dd64af37 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Thu, 29 Sep 2022 17:06:52 +0200 Subject: [PATCH] s32k1xx: Fix FlexIO timer register access macros --- arch/arm/src/s32k1xx/hardware/s32k1xx_flexio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/s32k1xx/hardware/s32k1xx_flexio.h b/arch/arm/src/s32k1xx/hardware/s32k1xx_flexio.h index 8467461528..d2dcf39187 100644 --- a/arch/arm/src/s32k1xx/hardware/s32k1xx_flexio.h +++ b/arch/arm/src/s32k1xx/hardware/s32k1xx_flexio.h @@ -147,9 +147,9 @@ #define S32K1XX_FLEXIO_SHIFTBUFBIS(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_SHIFTBUFBIS_OFFSET(n)) #define S32K1XX_FLEXIO_SHIFTBUFBYS(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_SHIFTBUFBYS_OFFSET(n)) #define S32K1XX_FLEXIO_SHIFTBUFBBS(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_SHIFTBUFBBS_OFFSET(n)) -#define S32K1XX_FLEXIO_TIMCTL(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_TIMCTL(n)) -#define S32K1XX_FLEXIO_TIMCFG(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_TIMCFG(n)) -#define S32K1XX_FLEXIO_TIMCMP(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_TIMCMP(n)) +#define S32K1XX_FLEXIO_TIMCTL(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_TIMCTL_OFFSET(n)) +#define S32K1XX_FLEXIO_TIMCFG(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_TIMCFG_OFFSET(n)) +#define S32K1XX_FLEXIO_TIMCMP(n) (S32K1XX_FLEXIO_BASE + S32K1XX_FLEXIO_TIMCMP_OFFSET(n)) /* FlexIO Register Bit Definitions ******************************************/