FRDM-K64 GPIO_ReadPinInput; GPIO_SetPinsOutput and GPIO_ClearPinsOutput

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

FRDM-K64 GPIO_ReadPinInput; GPIO_SetPinsOutput and GPIO_ClearPinsOutput

跳至解决方案
2,599 次查看
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 解答
2,403 次查看
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.

在原帖中查看解决方案

1 回复
2,404 次查看
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.