AnsweredAssumed Answered

how to configure general GPIO pin as a input/output in frdmk64

Question asked by thiva p on Jun 12, 2015
Latest reply on Jun 15, 2015 by David E Seymour

hi,

i am using FRDMk64 controller. KDS2.0 and ksdk 1.1.0 version. i am using MQX example.

i want to make

     PORTC -7th pin as input

     PORTC -8th pin as OUTPUT    

how to do that one.

 

using following API i made as general input/output pin

PORT_HAL_SetMuxMode(PORTC_BASE,7u,kPortMuxAsGpio);

but how to mention INPUT PIN or OUTPUT PIN (i am asking about Direction of pin)

how to mention direction of PIN?

Outcomes