FRDM-K64 GPIO_ReadPinInput; GPIO_SetPinsOutput and GPIO_ClearPinsOutput

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

FRDM-K64 GPIO_ReadPinInput; GPIO_SetPinsOutput and GPIO_ClearPinsOutput

Jump to solution
965 Views
dbuenom
Contributor II

Hi everyone!

I am using MCUXpresso IDE v10.3.0. 

I tested the functions GPIO_ReadPinInput; GPIO_SetPinsOutput and GPIO_ClearPinsOutput using FRDM-KL25Z board and it worked very well, but if I try to use with FRDM- K64F I am getting an error related to these functions. I attached my program and the message error.

I just trying to read the state of SW2 switch on the board ( PTC6 pin) than I toggle the state of the RGB Led ( pin PTB22).  

Does someone have any idea what is happening? Thanks in advance!

1 Solution
769 Views
dbuenom
Contributor II

Problem solved. For this particular board these functions are  GPIO_PinRead( ), GPIO_PortSet( ) and GPIO_PortClear( ). I discovered that looking at the "fsl_gpio.h " file in the drivers folder.

View solution in original post

1 Reply
770 Views
dbuenom
Contributor II

Problem solved. For this particular board these functions are  GPIO_PinRead( ), GPIO_PortSet( ) and GPIO_PortClear( ). I discovered that looking at the "fsl_gpio.h " file in the drivers folder.