CWY20735B1 enter and exit critical section APIs

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

Hi:

   as we know, when we process the interrupt routin ,the mcu should enter the critical section,if there is any API to make  the mcu to enter the critical section and exit the critical  section on the CYW20735B1 platform !

thanks!

mandy

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The CYW20735B1 device uses a event callback system which is different from a interrupt system. There is no API for the critical section enter and exit.

View solution in original post

0 Likes
4 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The CYW20735B1 device uses a event callback system which is different from a interrupt system. There is no API for the critical section enter and exit.

0 Likes
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

HI OwenZ_26:

   thank you for your reply.

if so . there seems to be a question that  when the MCU is going on an  important  task for example  the NVram write operation.

  however at this time, a event callback is triggered. if the NVram operation will fail.

how can I  avoid  such things!

thanks!

mandy

0 Likes

The priority for different thread is predefined and the device will avoid that scenario. Customer doesn't need to worry about it.

0 Likes
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

Hi OwenZ_26:

    OK ,  I  have  gotten what you said.   thank you for your patient reply !

0 Likes