Is it an error in SDK about S32DS?

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

Is it an error in SDK about S32DS?

457 Views
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 Kudos
Reply
1 Reply

443 Views
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 Kudos
Reply