PWMTimerMSP432 Hardware attributes.
These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For msp432_driverlib these definitions are found in:
- msp432p401r.h
- gpio.h
- timer_a.h
A sample structure is shown below:
const PWMTimerMSP432_HWAttrs PWMTimerMSP432HWAttrs[] = {
{
.timerBaseAddr = TIMER_A1_BASE,
.clockSource = TIMER_A_CLOCKSOURCE_SMCLK,
.compareRegister = TIMER_A_CAPTURECOMPARE_REGISTER_1,
.gpioPort = GPIO_PORT_P2,
.gpioPinIndex = GPIO_PIN1,
.pwmMode = GPIO_PRIMARY_MODULE_FUNCTION
},
};