aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Webserver/Lib/uip
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-04-08 05:40:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-04-08 05:40:25 +0000
commitc263ea837ae7e3c0e963b798afdffd501790ce2c (patch)
treea899d943856b48f6889cf1fe9f5b97ccc58ca598 /Projects/Webserver/Lib/uip
parentde9bd767dc8578a45a195fb1e37dd4ff26ae9567 (diff)
downloadlufa-c263ea837ae7e3c0e963b798afdffd501790ce2c.tar.gz
lufa-c263ea837ae7e3c0e963b798afdffd501790ce2c.tar.bz2
lufa-c263ea837ae7e3c0e963b798afdffd501790ce2c.zip
Move global interrupt enable/disable functions out to Common.h and document them.
Diffstat (limited to 'Projects/Webserver/Lib/uip')
-rw-r--r--Projects/Webserver/Lib/uip/clock.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Projects/Webserver/Lib/uip/clock.c b/Projects/Webserver/Lib/uip/clock.c
index 87650b6da..e71f7209d 100644
--- a/Projects/Webserver/Lib/uip/clock.c
+++ b/Projects/Webserver/Lib/uip/clock.c
@@ -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;
}