Is it an error in SDK about S32DS?

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

Is it an error in SDK about S32DS?

459件の閲覧回数
w_lingjun
Contributor III

Hi,

I'm working on a project based on KEA128.

S32 Design Studio for ARM v2.0 is expired so I install S32 Design Studio for ARM Version 2018.R1.

When I set an IO pin, it output 0, and when I clear an IO pin, it output 1.

So I check the SDK, and find the problem in following picture.

w_lingjun_0-1666337075370.png

It is from the file gpio.h, and its path is:

C:\NXP\S32DS_ARM_v2018.R1\S32DS\Sample_Drivers_for_KEAxxx_Evaluation_grade\headers\gpio.h

Is it an error?

Best regards,

Sarah

0 件の賞賛
返信
1 返信

445件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @w_lingjun 

The macros are correct.

When Port Set Output Register (PSOR) is set to logic 1, also, the corresponding bit in Port Data Output Register (PDOR) is set to logic 1. By the other hand, when Port Clear Output Register (PCOR) is set to logic 1, the corresponding bit in PDOR is set to logic 0.

Depending on the value of PDOR, it will determine the logical output value of the pin.

 

B.R.

VaneB

0 件の賞賛
返信