Andrew Tridgell
75cb04dd8b
HAL_AVR: use memcheck for available_memory()
11 years ago
Andrew Tridgell
a5788dde8f
HAL_AVR: added Scheduler.set_timer_speed() support
11 years ago
Randy Mackay
f2f61af125
HAL_AVR: scheduler interrupt 500hz for APM2
11 years ago
John Arne Birkeland
f6038f36bf
HAL_AVR: Improved AVRTimer micros() and millis()
...
- More efficient code by using 16-bit timer
- micros() now has proper 1 us resolution and less overhead
- millis() has less overhead
- removed unneeded/unwanted initializatin of timers in AVRTimer::init()
11 years ago
Andrew Tridgell
6d58f5e188
HAL_AVR: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
0ade02a624
HAL_AVR: updates for new scheduler API
12 years ago
Andrew Tridgell
7082e0f8aa
AP_HAL: added hold_in_bootloader parameter to scheduler->reboot()
12 years ago
tobias
4e7fea787b
HAL_AVR: corrected includes to replace #include "$HEADER" with #inlcude "utility/$HEADER"
...
adding -I for EVERY DIRECTORY isn't desirable
http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
12 years ago
Andrew Tridgell
af7381e9e0
AP_HAL: added register_io_process()
...
this is used to register a low priority IO task. Used for file IO in
DataFlash_File.cpp
12 years ago
Pat Hickey
930a789b25
AP_HAL_AVR: Implement new scheduler methods
12 years ago
Pat Hickey
688ec864dc
AP_HAL_AVR: deprecate begin/end atomic, timer procs run on resume
12 years ago
Pat Hickey
74e2ba2168
AP_HAL_AVR Scheduler: _in_timer_proc is volatile protected
...
* and AVRSemaphore is a friend, so it can read _in_timer_proc
to know the current context.
12 years ago
Andrew Tridgell
93040e5725
AP_HAL: removed the defer_timer_process() function
...
this is now unused
12 years ago
Andrew Tridgell
60d3df50ae
AP_HAL: changed delay() to take a uint16_t
...
this allows for up to 32 second delays, and saves a bit of flash space
12 years ago
Pat Hickey
b3abe89989
AP_HAL_AVR: add Util stubs
12 years ago
Pat Hickey
9656b0ad0e
AP_HAL_AVR: add panic method to scheduler
12 years ago
Pat Hickey
f060df9747
AP_HAL_AVR: now that we can detect the APM revision, use wdt reboot on apm2
12 years ago
Andrew Tridgell
1342a82ba7
HAL_AVR: catch atomic nesting errors
12 years ago
Andrew Tridgell
e57834d763
DataFlash: added SITL header
12 years ago
Pat Hickey
f9e9b8a7ef
AP_HAL_AVR: move scheduler's timer-hw dependent methods to a separate cpp
12 years ago
Pat Hickey
d504db195e
AP_HAL_AVR: add sei in defer timer process
12 years ago
Andrew Tridgell
0f3e30a0c3
HAL_AVR: fixed race condition in delay()
12 years ago
Pat Hickey
88f09d100a
AP_HAL_AVR: fix implementation of delay in scheduler
12 years ago
Pat Hickey
6e45ce12b2
AP_HAL_AVR: implement reboot in scheduler
...
* still need to fix system io register inits to do it like bootloader would
12 years ago
Pat Hickey
d47f77f8dd
AP_HAL_AVR Scheduler: support nested atomic sections
12 years ago
Pat Hickey
17b951c45b
AP_HAL_AVR Scheduler: rename Arduino to be AVR
12 years ago
Pat Hickey
c9541d3b00
AP_HAL: added begin_atomic and end_atomic to scheduler
12 years ago
Pat Hickey
bae7e4b88e
AP_HAL Scheduler: simplify register_timer_process, min time for delay cb
12 years ago
Pat Hickey
d422ab7806
AP_HAL: Extend Scheduler to support defered timer procs
...
* based on queue_proc from AP_PeriodicProcess
12 years ago
Pat Hickey
ba7a596ec3
AP_HAL_AVR: Scheduler extensions implemented
12 years ago
Pat Hickey
187571cca9
AP_HAL Scheduler fixes & AP_HAL_AVR Scheduler changed to match
12 years ago
Pat Hickey
ea8242ace1
AP_HAL: Add scheduler interface, move Arduino init code to implementation
12 years ago
Pat Hickey
59a94d5aac
AP_HAL_AVR: implement ::init method in derived HAL_AVR class.
...
* Implementation of ::init taken from Arduino core. Not tested yet
12 years ago