From e3eb5f989b0296e0f46bc4932461aef6a15c9ef1 Mon Sep 17 00:00:00 2001 From: canhu Date: Thu, 27 Aug 2020 09:07:21 +0800 Subject: [PATCH] SoC: add IOF mask define for PWM --- SoC/hbirdv2/Common/Include/hbirdv2.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SoC/hbirdv2/Common/Include/hbirdv2.h b/SoC/hbirdv2/Common/Include/hbirdv2.h index f0fb126..622a861 100644 --- a/SoC/hbirdv2/Common/Include/hbirdv2.h +++ b/SoC/hbirdv2/Common/Include/hbirdv2.h @@ -201,9 +201,25 @@ typedef enum EXCn { *****************************************************************************/ // IOF Mappings #define IOF_PWM0_MASK _AC(0x0000000F, UL) +#define IOF_PWM0_CH0_MASK _AC(0x00000001, UL) +#define IOF_PWM0_CH1_MASK _AC(0x00000002, UL) +#define IOF_PWM0_CH2_MASK _AC(0x00000004, UL) +#define IOF_PWM0_CH3_MASK _AC(0x00000008, UL) #define IOF_PWM1_MASK _AC(0x000000F0, UL) +#define IOF_PWM1_CH0_MASK _AC(0x00000010, UL) +#define IOF_PWM1_CH1_MASK _AC(0x00000020, UL) +#define IOF_PWM1_CH2_MASK _AC(0x00000040, UL) +#define IOF_PWM1_CH3_MASK _AC(0x00000080, UL) #define IOF_PWM2_MASK _AC(0x0000000F, UL) +#define IOF_PWM2_CH0_MASK _AC(0x00000001, UL) +#define IOF_PWM2_CH1_MASK _AC(0x00000002, UL) +#define IOF_PWM2_CH2_MASK _AC(0x00000004, UL) +#define IOF_PWM2_CH3_MASK _AC(0x00000008, UL) #define IOF_PWM3_MASK _AC(0x000000F0, UL) +#define IOF_PWM3_CH0_MASK _AC(0x00000010, UL) +#define IOF_PWM3_CH1_MASK _AC(0x00000020, UL) +#define IOF_PWM3_CH2_MASK _AC(0x00000040, UL) +#define IOF_PWM3_CH3_MASK _AC(0x00000080, UL) #define IOF_SPI_MASK _AC(0x00003F00,UL) #define IOF_SPI_SCK (8u)