gpio_cpu_configure - override defaults?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

gpio_cpu_configure - override defaults?

ソリューションへジャンプ
910件の閲覧回数
w2vy
Contributor V

 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

0 件の賞賛
返信
1 解決策
442件の閲覧回数
w2vy
Contributor V

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.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
443件の閲覧回数
w2vy
Contributor V

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.

0 件の賞賛
返信