Hi,
I'm working with TMS320F2837xD device and I have a question about accessing GPIO pins from CPU2. For CPU1 project I'm using the code structure like this:
EALLOW; GpioCtrlRegs.GPAMUX2.bit.GPIO19 = 0x0000; GpioCtrlRegs.GPADIR.bit.GPIO19 = GpioCtrlRegs.GPADIR.bit.GPIO19 | (1); GpioDataRegs.GPADAT.bit.GPIO19 = 0; EDIS;
This works for CPU1 very well. But for CPU2 the access to GpioCtrlRegs is prohibited. Does it mean that for CPU2 projects I need to re-write this code structure to GPIO_ReadPin/GPIO_WritePin? Or is there any other way how to access GPIO pins from CPU2?
Thank you!
Best regards,
Tomas