AnsweredAssumed Answered

How to set K60 Open Drain Output

Question asked by CaesarI on Apr 17, 2013
Latest reply on Apr 17, 2013 by CaesarI

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,