Part Number: MSP432P401R
I will attach a code that seems to not work. The P4.3 always becomes MCLK after the second function.
port_mapping array looks like this on purpose. I know that PM_UCB0CLK should only be on the 4th place.
// Port mapper configuration register
const uint8_t port_mapping[] =
{
//Port P4:
PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK,
PM_UCB0CLK
};
int main(void)
{
PMAP_configurePorts((const uint8_t *) port_mapping, PMAP_P4MAP, 1,
PMAP_DISABLE_RECONFIGURATION);
GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P4,
GPIO_PIN3, GPIO_PRIMARY_MODULE_FUNCTION);
}