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.
This commit is contained in:
parent
0c5afda7e8
commit
70284d390f
17 changed files with 196 additions and 97 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue