gpio_cpu_configure is called often to update the pin configurations.
One problem.
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
tom
解決済! 解決策の投稿を見る。
Ok after digging deeper I see that the code I was looking at leaves the bits alone that are not assigned as GPIO.
I just set the PAR bits and all is well.
Ok after digging deeper I see that the code I was looking at leaves the bits alone that are not assigned as GPIO.
I just set the PAR bits and all is well.