Skip to content

Commit

Permalink
SoC: add IOF mask define for PWM
Browse files Browse the repository at this point in the history
  • Loading branch information
hucan7 committed Aug 27, 2020
1 parent bb3a800 commit e3eb5f9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions SoC/hbirdv2/Common/Include/hbirdv2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3eb5f9

Please sign in to comment.