Commit Graph

32 Commits

Author SHA1 Message Date
Andrew Tridgell 75cb04dd8b HAL_AVR: use memcheck for available_memory() 2013-12-28 14:51:15 +11:00
Andrew Tridgell a5788dde8f HAL_AVR: added Scheduler.set_timer_speed() support 2013-10-13 11:03:37 +09:00
Randy Mackay f2f61af125 HAL_AVR: scheduler interrupt 500hz for APM2 2013-10-13 11:03:13 +09:00
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()
2013-10-13 11:03:00 +09:00
Andrew Tridgell 6d58f5e188 HAL_AVR: updates for AP_HAL::MemberProc 2013-09-30 20:51:20 +10:00
Andrew Tridgell 0ade02a624 HAL_AVR: updates for new scheduler API 2013-09-28 21:24:02 +10:00
Andrew Tridgell 7082e0f8aa AP_HAL: added hold_in_bootloader parameter to scheduler->reboot() 2013-09-04 11:58:13 +10:00
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
2013-07-08 12:07:50 +10:00
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
2013-04-17 21:33:50 +10:00
Pat Hickey 930a789b25 AP_HAL_AVR: Implement new scheduler methods 2013-01-10 14:07:43 -08:00
Pat Hickey 688ec864dc AP_HAL_AVR: deprecate begin/end atomic, timer procs run on resume 2013-01-03 17:33:14 -08:00
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.
2013-01-03 13:48:07 -08:00
Andrew Tridgell 93040e5725 AP_HAL: removed the defer_timer_process() function
this is now unused
2012-12-21 20:01:42 +11:00
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
2012-12-20 14:53:23 +11:00
Pat Hickey b3abe89989 AP_HAL_AVR: add Util stubs 2012-12-20 14:52:37 +11:00
Pat Hickey 9656b0ad0e AP_HAL_AVR: add panic method to scheduler 2012-12-20 14:52:31 +11:00
Pat Hickey f060df9747 AP_HAL_AVR: now that we can detect the APM revision, use wdt reboot on apm2 2012-12-20 14:52:28 +11:00
Andrew Tridgell 1342a82ba7 HAL_AVR: catch atomic nesting errors 2012-12-20 14:51:40 +11:00
Andrew Tridgell e57834d763 DataFlash: added SITL header 2012-12-20 14:51:40 +11:00
Pat Hickey f9e9b8a7ef AP_HAL_AVR: move scheduler's timer-hw dependent methods to a separate cpp 2012-12-20 14:51:34 +11:00
Pat Hickey d504db195e AP_HAL_AVR: add sei in defer timer process 2012-12-20 14:51:33 +11:00
Andrew Tridgell 0f3e30a0c3 HAL_AVR: fixed race condition in delay() 2012-12-20 14:51:33 +11:00
Pat Hickey 88f09d100a AP_HAL_AVR: fix implementation of delay in scheduler 2012-12-20 14:51:32 +11:00
Pat Hickey 6e45ce12b2 AP_HAL_AVR: implement reboot in scheduler
* still need to fix system io register inits to do it like bootloader would
2012-12-20 14:51:32 +11:00
Pat Hickey d47f77f8dd AP_HAL_AVR Scheduler: support nested atomic sections 2012-12-20 14:51:31 +11:00
Pat Hickey 17b951c45b AP_HAL_AVR Scheduler: rename Arduino to be AVR 2012-12-20 14:51:30 +11:00
Pat Hickey c9541d3b00 AP_HAL: added begin_atomic and end_atomic to scheduler 2012-12-20 14:51:29 +11:00
Pat Hickey bae7e4b88e AP_HAL Scheduler: simplify register_timer_process, min time for delay cb 2012-12-20 14:51:27 +11:00
Pat Hickey d422ab7806 AP_HAL: Extend Scheduler to support defered timer procs
* based on queue_proc from AP_PeriodicProcess
2012-12-20 14:51:26 +11:00
Pat Hickey ba7a596ec3 AP_HAL_AVR: Scheduler extensions implemented 2012-12-20 14:51:22 +11:00
Pat Hickey 187571cca9 AP_HAL Scheduler fixes & AP_HAL_AVR Scheduler changed to match 2012-12-20 14:51:22 +11:00
Pat Hickey ea8242ace1 AP_HAL: Add scheduler interface, move Arduino init code to implementation 2012-12-20 14:51:19 +11:00