Gustavo Jose de Sousa
12423814ef
AP_HAL_AVR: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
c44ab01be8
AP_HAL: use noreturn attribute on panic
...
should reduce coverity warnings
10 years ago
Andrew Tridgell
df21c6c68d
AP_HAL: support micros64() and millis64() on all platforms
...
this will allow for 64 bit timestamps in DF logs (Peter is working on
that)
10 years ago
Andrew Tridgell
a5788dde8f
HAL_AVR: added Scheduler.set_timer_speed() support
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
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
9656b0ad0e
AP_HAL_AVR: add panic method to scheduler
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
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