diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-08 04:49:20 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-08 04:49:20 +0000 |
commit | 70284d390f524e84e0539ad1e869366aaf94cf24 (patch) | |
tree | b250bd819829b6e2807f4c85bd1342aa979eeb28 /Projects | |
parent | 0c5afda7e8d7c3bbaa15297c05d39dc4c90e4d5b (diff) | |
download | lufa-70284d390f524e84e0539ad1e869366aaf94cf24.tar.gz lufa-70284d390f524e84e0539ad1e869366aaf94cf24.tar.bz2 lufa-70284d390f524e84e0539ad1e869366aaf94cf24.zip |
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.
Diffstat (limited to 'Projects')
-rw-r--r-- | Projects/Webserver/Lib/uip/clock.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; } |