mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
14 lines
253 B
C
14 lines
253 B
C
#ifndef __CRITICAL_BLOCKS_H__
|
|
#define __CRITICAL_BLOCKS_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
extern uint8_t in_critical_usb_section;
|
|
|
|
void critical_begin();
|
|
void critical_end();
|
|
|
|
#define is_in_critical_section() (in_critical_usb_section != 0)
|
|
|
|
#endif
|