OS_EnterRegion() Indicates to the OS the beginning of a critical region.

A critical region counter (OS_RegionCnt), which is 0 by default, is incremented so that the routine can be nested.

Interrupts < Fast Interrupt and Normal Interrupt > are not disabled using OS_EnterRegion();

however, disabling interrupts will disable preemptive task switches.

Fast Interrupt : High priority interrupts - May not call embOS API functions

embOS does never disable high priority interrupts 

Normal Interrupt : Low priority interrupts - May call embOS API functions

 

OS_LeaveRegion() Indicates to the OS the end of a critical region.

A critical region counter (OS_RegionCnt), which is 0 by default, is decremented.
If this counter reaches 0 again, the critical region ends.

 

相关文章:

  • 2022-03-02
  • 2021-10-02
  • 2021-11-09
  • 2021-10-19
  • 2021-12-10
  • 2022-01-20
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2021-11-30
  • 2021-05-30
  • 2021-08-07
  • 2022-02-04
  • 2021-08-06
相关资源
相似解决方案