Hello Luciano,
Yes , in my personal opinion, you are right .
Strictly speaking, we should first configure the logic level(0 or 1) , then set the gpio to output direction.
You can change the two HAL function position , then build the ksdk_platform_lib again, then use the function :
GPIO_DRV_OutputPinInit() .
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------