87 #ifndef ti_drivers_pwm_PWMMSP432E4__include 88 #define ti_drivers_pwm_PWMMSP432E4__include 97 #include <ti/devices/msp432e4/inc/msp432.h> 99 #include <ti/devices/msp432e4/driverlib/gpio.h> 100 #include <ti/devices/msp432e4/driverlib/pin_map.h> 132 #define PWMMSP432E4_NUM_PWM_PERIPHERALS (1) 135 #define PWMMSP432E4_NUM_PWM_GENERATORS (4) 138 #define PWMMSP432E4_NUM_PWM_OUTPUTS (8) 143 #define PWMMSP432E4_PF0_M0PWM0 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 0, GPIO_PF0_M0PWM0) 148 #define PWMMSP432E4_PR0_M0PWM0 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTR, 0, GPIO_PR0_M0PWM0) 153 #define PWMMSP432E4_PF1_M0PWM1 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 1, GPIO_PF1_M0PWM1) 158 #define PWMMSP432E4_PR1_M0PWM1 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTR, 1, GPIO_PR1_M0PWM1) 163 #define PWMMSP432E4_PF2_M0PWM2 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 2, GPIO_PF2_M0PWM2) 168 #define PWMMSP432E4_PR2_M0PWM2 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTR, 2, GPIO_PR2_M0PWM2) 173 #define PWMMSP432E4_PF3_M0PWM3 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 3, GPIO_PF3_M0PWM3) 178 #define PWMMSP432E4_PR3_M0PWM3 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTR, 3, GPIO_PR3_M0PWM3) 183 #define PWMMSP432E4_PG0_M0PWM4 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTG, 0, GPIO_PG0_M0PWM4) 188 #define PWMMSP432E4_PR4_M0PWM4 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTR, 4, GPIO_PR4_M0PWM4) 193 #define PWMMSP432E4_PG1_M0PWM5 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTG, 1, GPIO_PG1_M0PWM5) 198 #define PWMMSP432E4_PR5_M0PWM5 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTR, 5, GPIO_PR5_M0PWM5) 203 #define PWMMSP432E4_PK4_M0PWM6 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 4, GPIO_PK4_M0PWM6) 208 #define PWMMSP432E4_PR6_M0PWM6 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTR, 6, GPIO_PR6_M0PWM6) 213 #define PWMMSP432E4_PK5_M0PWM7 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 5, GPIO_PK5_M0PWM7) 218 #define PWMMSP432E4_PR7_M0PWM7 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTR, 7, GPIO_PR7_M0PWM7) uint8_t pwmOutputBit
Definition: PWMMSP432E4.h:278
bool isRunning
Definition: PWMMSP432E4.h:280
PWM_Duty_Units
PWM duty cycle unit definitions. Refer to device specific implementation if using PWM_DUTY_COUNTS (ra...
Definition: PWM.h:302
uint8_t prescalar
Definition: PWMMSP432E4.h:263
struct PWMMSP432E4_Object PWMMSP432E4_Object
PWMMSP432E4 Object.
uint32_t pinConfig
Definition: PWMMSP432E4.h:252
PWM_IdleLevel idleLevel
Definition: PWMMSP432E4.h:276
PWMMSP432E4_Status.
Definition: PWMMSP432E4.h:260
Pulse Width Modulation (PWM) driver.
PWM_Period_Units periodUnits
Definition: PWMMSP432E4.h:275
PWM_Period_Units
PWM period unit definitions. Refer to device specific implementation if using PWM_PERIOD_COUNTS (raw ...
Definition: PWM.h:291
The definition of a PWM function table that contains the required set of functions to control a speci...
Definition: PWM.h:404
#define PWMMSP432E4_NUM_PWM_GENERATORS
Definition: PWMMSP432E4.h:135
uint8_t activeOutputs
Definition: PWMMSP432E4.h:264
const PWM_FxnTable PWMMSP432E4_fxnTable
uint32_t pwmGenOpts
Definition: PWMMSP432E4.h:250
PWMMSP432E4_Status * pwmStatusStruct
Definition: PWMMSP432E4.h:273
PWMMSP432E4 Object.
Definition: PWMMSP432E4.h:272
uint8_t pwmOutputNum
Definition: PWMMSP432E4.h:277
struct PWMMSP432E4_HWAttrs PWMMSP432E4_HWAttrs
PWMMSP432E4 Hardware attributes.
struct PWMMSP432E4_Status PWMMSP432E4_Status
PWMMSP432E4_Status.
PWMMSP432E4 Hardware attributes.
Definition: PWMMSP432E4.h:244
uint32_t pwmOutput
Definition: PWMMSP432E4.h:248
uint32_t pwmBaseAddr
Definition: PWMMSP432E4.h:246
PWM_IdleLevel
Idle output level when PWM is not running (stopped / not started).
Definition: PWM.h:314
bool isOpen
Definition: PWMMSP432E4.h:279
PWM_Duty_Units dutyUnits
Definition: PWMMSP432E4.h:274
#define PWMMSP432E4_NUM_PWM_OUTPUTS
Definition: PWMMSP432E4.h:138