How to set K60 Open Drain Output

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set K60 Open Drain Output

653 Views
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 Kudos
2 Replies

403 Views
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.

403 Views
CaesarI
Contributor III

Thx Martin.

0 Kudos