gpio_cpu_configure is called often to update the pin configurations.
It assumes GPIO or Alternate Function 2 for most (well I care about PORT TC) functions.
How do you select a different non-GPIO function?
If the pin usage is generally GPIO or non-GPIO maybe the BSP should add a table to define the Alt function.
Or is there a clean up function that can be called after gpio_cpu_configure() to fix the 'errors' induced?
I am using DTIM0 as a clock output... searching ther code I do not see anything in MQX that uses any of the DTIM registers