How to set K60 Open Drain Output

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

How to set K60 Open Drain Output

1,524件の閲覧回数
CaesarI
Contributor III

Hello all,

I use MQX 3.8 on K60 and I want to initialize a output pin as Open Drain Output by using fopen("gpio:output"...

Therefor MQX uses gpio_cpu_configure() in io_gpio_kgpio.c.

I could'nt see how to send the parameter for setting ODE bit in PORTx_PCRyy register.

I did'nt find any define for ODE bit.

How to set ODE bit using fopen("gpio:output"...?

Best regards,

Caesar

0 件の賞賛
返信
2 返答(返信)

1,274件の閲覧回数
Martin_
NXP Employee
NXP Employee

Hi Caesar,

unfortunately the legacy "gpio" driver has that limitation (ODE bit not supported). MQX 4.0 lwgpio driver supports ODE bit.

1,274件の閲覧回数
CaesarI
Contributor III

Thx Martin.

0 件の賞賛
返信