Hello. We are using the Hercules RM48L952. If we selected to use SPI2 and MIBSPI1 for GIO, then are there additional steps to be able to toggle the ports as GIO outputs that was not required for other GIO repurposed components? The reason is i.e., DMM all is needed to toggle as an output port was i.e.,
void DMM_DMMPC0_GPIO_OFF (uint32 bit)
{
dmmREG->PC0 = dmmREG->PC0 & (uint32)((uint32)0U << bit);
}
void DMM_DMMPC0_GPIO_OFF (uint32 bit)
{
dmmREG->PC0 = dmmREG->PC0 & (uint32)((uint32)0U << bit);
}
But for i.e., SPI2 (MIBSPI1), the same process for does not change the value of the SPI port repurposed as GIO. i.e.,
void SPI_GPIO_OFF (uint32 bit)
{
spiREG2->PC2 = spiREG2->PC2 & (uint32)((uint32)0U << bit);
}
void SPI_GPIO_ON (uint32 bit)
{
spiREG2->PC2 = spiREG2->PC2 | (uint32)((uint32)1U << bit);
}
the value of spiREG2->PC2 (and mibspiREG1->PC2) bits cannot be set to "1" (remains fixed at zero after the spiREG2->PC2 = spiREG2->PC2 | (uint32)((uint32)1U << bit);
Thank you.