aboutsummaryrefslogtreecommitdiff
path: root/Projects
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-04-08 04:49:20 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-04-08 04:49:20 +0000
commit6d221c9c8267a84329271dfe5f04886978eb58a8 (patch)
treeb250bd819829b6e2807f4c85bd1342aa979eeb28 /Projects
parent673cb95b174747d4f08b0a6551326dd282292c57 (diff)
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1729 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects')
-rw-r--r--Projects/Webserver/Lib/uip/clock.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Projects/Webserver/Lib/uip/clock.c b/Projects/Webserver/Lib/uip/clock.c
index 71eaf2b2..87650b6d 100644
--- a/Projects/Webserver/Lib/uip/clock.c
+++ b/Projects/Webserver/Lib/uip/clock.c
@@ -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;
}