isr vs task

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

isr vs task

跳至解决方案
581 次查看
Seitec
Contributor III

Hi I would like ask you.

 

I need catch some message from I2C where is lot devices. So when message come i need separate message.  Is better way use ISR or event which is connected to flag I2C. Is possible use event?

 

Thank you very much

 

Ondra.

0 项奖励
1 解答
377 次查看
PetrM
Senior Contributor I

Hello,

 

in MQX 3.8, there's an I2C slave example that shows how to continuously process messages that address your I2C device in slave mode.

The I2C driver operates on byte basis, you have to create the protocol above this low layer according to your needs in one of your tasks.

 

Regards,

PetrM

 

在原帖中查看解决方案

0 项奖励
1 回复
378 次查看
PetrM
Senior Contributor I

Hello,

 

in MQX 3.8, there's an I2C slave example that shows how to continuously process messages that address your I2C device in slave mode.

The I2C driver operates on byte basis, you have to create the protocol above this low layer according to your needs in one of your tasks.

 

Regards,

PetrM

 

0 项奖励