LPC55S69 : Write/Read Gpio lines by different Cores

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC55S69 : Write/Read Gpio lines by different Cores

ソリューションへジャンプ
1,054件の閲覧回数
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 解決策
991件の閲覧回数
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 返信
992件の閲覧回数
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 件の賞賛
返信