Using Critical Sections
Any driver that contains an InterruptService routine will most likely require one or more critical sections to synchronize access to hardware resources or driver data among the ISR and other routines.
This section includes the following topics: