How to set GPIO in MPC5744P?

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

How to set GPIO in MPC5744P?

705 Views
641679783
Contributor II

Hi NXP team,

The code generated by MBDT is kind of messy, which is hard to read. Therefore I tried to use only S32DS to write my code. If I choose no SDK when starting a new project like that.

pastedImage_2.png

I can simply ues thess codes to set the GPIO(contrl the RGB led):

to set the output:

SIUL2.MSCR[44].B.OBE=1;
SIUL2.GPDO[44].B.PDO=0;
to read the input:
SIUL2.MSCR[79].B.IBE=1;
x=SIUL2.GPDI[79].B.PDI;

However, I can't use Processor Expert to generate code until choose MPC5744P_SDK_Z4. Then the codes "SIUL2.MSCR[44].B.OBE=1;" reported errors, and only codes like following works:

PINS_DRV_SetPins(PTC, (1 << 12));

PINS_DRV_ClearPins(PTC, (1 << 12));

So I want to know whether there is a document to descript these functions in detail.

Labels (1)
Tags (2)
0 Kudos
0 Replies