LPC55S69 : Write/Read Gpio lines by different Cores

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

LPC55S69 : Write/Read Gpio lines by different Cores

跳至解决方案
505 次查看
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 项奖励
1 解答
442 次查看
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 项奖励
1 回复
443 次查看
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 项奖励