I'm using a emulated uart on SPORT1. Every thing used to work fine until I added the following line:
*pPORTGIO &= ~PG10;
*pPORTG_FER &= ~PG10;
*pPORTGIO_DIR |= PG10;
Basically I tried to use the PG10 as GPIO. PG10 happens to be multiplexed with RSCLK1 (receive clock sport).
Since the SPORT1 is using internal generated clock I thought it would not be an issue to free PIN from the peripheral.
Can you please tell if there is anyway I can preserve the SPORT rx functionality and use the PG10 as GPIO?
Does the RSCLK1 pin must be really enabled even if the clock is internally generated?