Andrew Tridgell
b7c4dea9d3
HAL_ChibiOS: gain back 250usec in loop time
...
if we have already called delay_microseconds_boost() then we know
we've given up time to drivers, so we can avoid the extra delay in the
HAL
7 years ago
Mark Whitehorn
8b216cf182
AP_HAL_ChibiOS: add ToneAlarm thread
...
fmuv4 hwdef.dat: remove PWM label from buzzer output pin
add buzzer pin labeled ALARM
remove timer PWM from HAL_PWM_GROUPs
7 years ago
Andrew Tridgell
dce4c90467
HAL_ChibiOS: moved UART thread to UART driver
...
use an event model for triggering sends from tx complete DMA handler
for unbuffered uarts
7 years ago
Siddharth Purohit
f2e77ab773
AP_HAL_ChibiOS: add uavcan thread
7 years ago
Andrew Tridgell
8286486890
HAL_ChibiOS: drop default SPI priority to 179
7 years ago
bugobliterator
f7ac5aa079
HAL_ChibiOS: put rcin on a separate thread
7 years ago
Andrew Tridgell
b07c599bf2
Hal_Chibios: allow for faster INS sample times
...
we need higher priority on SPI and faster device loops
7 years ago
Andrew Tridgell
f14a847b97
HAL_ChibiOS: rename classes to remove 'Chibi'
...
it is redundent as all classes are in ChibiOS namespace, and makes the
code harder to read
7 years ago
Andrew Tridgell
8b6bab7b17
HAL_Chibios: added ChibiOS HAL
...
this is based on initial work by Sid, reset here for easier merging
7 years ago
Peter Barker
9cb23f6108
AP_HAL_VRBRAIN: make in_main_thread const and override
7 years ago
Lucas De Marchi
5ea1784838
global: remove AP_HAL::in_timerprocess()
...
This is not used and in the only places it would make sense would be
internally to the scheduler so remove it.
8 years ago
Murilo Belluzzo
0b86532b5c
Global: Remove '\r' character from all source code files
8 years ago
LukeMike
fde5992b6d
VRBRAIN: updated AP_HAL_VRBRAIN
9 years ago
Lucas De Marchi
44bc2eceb4
AP_HAL_VRBRAIN: replace header guard with pragma once
9 years ago
Lucas De Marchi
f39a6745d1
Global: remove unused _timer_pending from scheduler
9 years ago
Lucas De Marchi
9aa49cda93
Global: remove system_initializing() from scheduler
...
This is not used anymore.
9 years ago
Lucas De Marchi
bf24d0ef31
AP_HAL_VRBRAIN: use init() method without arguments
...
Override the init() method from parent class that doesn't have a
parameter since it's not used here.
9 years ago
Caio Marcelo de Oliveira Filho
cbaa57c7be
AP_HAL_VRBRAIN: remove unused functions
9 years ago
Lucas De Marchi
1b07dabeb7
Replace prog_char and prog_char_t with char
...
prog_char and prog_char_t are now the same as char on supported
platforms. So, just change all places that use them and prefer char
instead.
AVR-specific places were not changed.
9 years ago
Lucas De Marchi
9eaf7c5660
AP_HAL: add format attribute to panic()
9 years ago
Lucas De Marchi
ad61a93c14
AP_HAL: turn panic() into a variadic method
...
Change the declaration on all HAL implementations so panic() in future
may implement a printf-like interface.
9 years ago
Gustavo Jose de Sousa
f714540d8b
AP_HAL_VRBRAIN: 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
e143acd8bf
HAL_VRBRAIN: minimise use of hrt_absolute_time()
11 years ago
Andrew Tridgell
071323a736
HAL_VRBRAIN: added millis64() and micros64()
11 years ago
Emile Castelnuovo
201332caef
AP_HAL: New VRBRAIN board definition and libraries
11 years ago
Andrew Tridgell
5800c2a2c8
HAL_PX4: prevent excessive writes on startup from blocking
...
this could cause copter on PX4 to hang on startup
11 years ago
Andrew Tridgell
1c091cbca5
HAL_PX4: fixed a scheduler bug that affects UART IO
...
we need to detect if we are in a timer task using a PID, not a
flag. This is the same type of bug I fixed last week, but now fixed
properly.
The bug could well be the "USB bug" that Craig has been chasing
11 years ago
Andrew Tridgell
d973730b88
HAL_PX4: use hrt timer and semaphores to improve timing
...
this gives much more accurate microsecond delays, while also ensuring
we yield the CPU when possible
11 years ago
Andrew Tridgell
942ae70651
HAL_PX4: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
7ec242146d
HAL_PX4: update for new scheduler API
12 years ago
Andrew Tridgell
fa107bdb58
PX4: moved UART handling to its own thread
...
this prevents slow writes to the SD card from interfering with MAVLink
or GPS serial communication
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
Andrew Tridgell
02c5c3ec4a
HAL_PX4: changed scheduler priorities
...
put sensor priority above main sketch, to prevent occasional blocking
for sensor data
12 years ago
Andrew Tridgell
d7409b6a25
HAL_PX4: startup in low priority to fix CLI
...
this ensures that tight sensor loops in setup() can run without
sleeping
12 years ago
Andrew Tridgell
70227d5d93
HAL_PX4: added scheduler performance counters
12 years ago
Andrew Tridgell
39e28d48c2
HAL_PX4: switched scheduler to use a pthread
...
this allows the timer tasks to access file descriptors in the main APM
task, which makes writing PX4 device drivers much easier
12 years ago
Andrew Tridgell
7c7a215934
HAL_PX4: fixes for new Scheduler API
12 years ago
Andrew Tridgell
c6305b5876
HAL_PX4: rework Scheduler using hrt calls
...
thanks to Julian Oes for the suggestion
12 years ago
Andrew Tridgell
5a70f3becf
HAL_PX4: added a scheduler implementation
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
Andrew Tridgell
dcc17dad94
SITL: added panic() method in scheduler
12 years ago
Andrew Tridgell
8916b280fd
SITL: filled in more of the HAL SITL backend
12 years ago
Andrew Tridgell
d42cbb791f
HAL_SITL: start filling in more of SITL framework
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