I am working with CCS5.4 on a TM4F212EFQC (or maybe a big brother for now). I am writing a functional test app for the HW. For some applications a pin will be configured for GPIO output and sometimes PWM output. With one application I want to toggle between the two functions. I use the following line of code to configure the pin for an alternative function:
GPIOPinConfigure (GPIO_PH5_M0PWM5);
But there is not a GPIOPinUnconfigure function or a GPIO_PH5_GPIO value.
So once configured as PWM, how do I reconfigure the pin back to GPIO? Looking at the code it seems sending it a 0x00 would be a bad idea.
(Currently it seems the option is to start running as GPIO, run GPIO tests, switch to PWM, run PWM tests and if you want to go back to GPIO, then reset. This may work for a functional test. I am not sure I can think of an application in the field that would need the functionality.)