LPC55S69 : Write/Read Gpio lines by different Cores

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

LPC55S69 : Write/Read Gpio lines by different Cores

Jump to solution
471 Views
EugeneHiihtaja
Senior Contributor I

Hello !

Do I understand right  and it is no any problem if I would like to Read/write different GPIO pins inside one group 0 or 1

at the same time ?

static inline void GPIO_PinWrite(GPIO_Type *base, uint32_t port, uint32_t pin, uint8_t output)
{
base->B[port][pin] = output;
}


static inline uint32_t GPIO_PinRead(GPIO_Type *base, uint32_t port, uint32_t pin)
{
return (uint32_t)base->B[port][pin];
}

I can see each pin has own address and I can freely write PIO0_17 pin from Core0

and PIO0_18 from Core1 without any faults.

Is this so ?

Or how to safely read/write individuals GPIO pins from Core0 and 1 at the same time ?

Regards,

Eugene

0 Kudos
1 Solution
408 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello Eugene,

That is correct you can handle the pins individually as you mentioned above. 

Best Regards,

Sabina

View solution in original post

0 Kudos
1 Reply
409 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello Eugene,

That is correct you can handle the pins individually as you mentioned above. 

Best Regards,

Sabina

0 Kudos