FRDM-K64 GPIO_ReadPinInput; GPIO_SetPinsOutput and GPIO_ClearPinsOutput

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FRDM-K64 GPIO_ReadPinInput; GPIO_SetPinsOutput and GPIO_ClearPinsOutput

ソリューションへジャンプ
2,554件の閲覧回数
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,358件の閲覧回数
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,359件の閲覧回数
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.