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
Hi Caesar,
unfortunately the legacy "gpio" driver has that limitation (ODE bit not supported). MQX 4.0 lwgpio driver supports ODE bit.
Thx Martin.