From 70284d390f524e84e0539ad1e869366aaf94cf24 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 8 Apr 2011 04:49:20 +0000 Subject: 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. --- Projects/Webserver/Lib/uip/clock.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Projects') diff --git a/Projects/Webserver/Lib/uip/clock.c b/Projects/Webserver/Lib/uip/clock.c index 71eaf2b28..87650b6da 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; } -- cgit v1.2.3