Is it an error in SDK about S32DS?

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

Is it an error in SDK about S32DS?

458 次查看
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 回复

444 次查看
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 项奖励
回复