diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-08 05:40:25 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-08 05:40:25 +0000 |
commit | c263ea837ae7e3c0e963b798afdffd501790ce2c (patch) | |
tree | a899d943856b48f6889cf1fe9f5b97ccc58ca598 /Projects/Webserver/Lib/uip | |
parent | de9bd767dc8578a45a195fb1e37dd4ff26ae9567 (diff) | |
download | lufa-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.c | 9 |
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; } |