mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Add in a new common Delay_MS() function, which provides a blocking delay for all architectures.
Remove use of avr-libc specific ATOMIC_BLOCK, replace with a new per-architecture set of inline functions to retrieve and manipulate the global interrupt enable bit for each architecture. Add in documentation for the USB controller common interrupt routine which must be linked to the interrupt controller in the user application on the AVR32 UC3 architecture.
This commit is contained in:
@@ -29,10 +29,9 @@ clock_time_t clock_time()
|
||||
{
|
||||
clock_time_t time;
|
||||
|
||||
ATOMIC_BLOCK(ATOMIC_FORCEON)
|
||||
{
|
||||
time = clock_datetime;
|
||||
}
|
||||
USB_INT_GlobalDisable();
|
||||
time = clock_datetime;
|
||||
USB_INT_GlobalEnable();
|
||||
|
||||
return time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user