mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Move global interrupt enable/disable functions out to Common.h and document them.
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/io.h>
|
||||
#include <avr/sfr_defs.h>
|
||||
|
||||
#include <LUFA/Common/Common.h>
|
||||
|
||||
#include "clock.h"
|
||||
|
||||
@@ -29,9 +28,9 @@ clock_time_t clock_time()
|
||||
{
|
||||
clock_time_t time;
|
||||
|
||||
USB_INT_GlobalDisable();
|
||||
GlobalInterruptDisable();
|
||||
time = clock_datetime;
|
||||
USB_INT_GlobalEnable();
|
||||
GlobalInterruptEnable();
|
||||
|
||||
return time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user