Lucas De Marchi
29b667efdf
AP_HAL_Linux: remove useless mlock of stack
...
In Linux the default stack size is always greater than 32k, either 2MB
or 8MB depending on the architecture. There's no point in creating a
function to lock 32k.
10 years ago
Staroselskii Georgii
64da7f0360
AP_HAL_Linux: fix macro that defines number of I/O callbacks
10 years ago
Staroselskii Georgii
e4a21f291d
AP_HAL_Linux: added LinuxSPIUARTDriver that can handle SPI-driven Ublox
10 years ago
Andrew Tridgell
193bda068c
HAL_Linux: run IO processes when we do a stop_clock()
...
this has the effect of allowing logging to progress in Replay where we
are running at much more than realtime speeds
10 years ago
Andrew Tridgell
7497b4dfb1
HAL_Linux: fixed Replay with new AP_InertialSensor library
10 years ago
bugobliterator
329c1f5190
HAL_Linux:create ToneAlarmDriver as a separate class
...
ToneAlarm is now declared as a separate class instance of which is added as a private member of LinuxUtil
Some minor fixes in this patch include changing return type of tonealarm_init() to bool and use dprintf
10 years ago
bugobliterator
f058131140
HAL_Linux Scheduler: reduce the delay inside tonealarm thread
...
Since the tonealarm is now passthrough the delay inside the thread needs to be reduced for precise tune generation
10 years ago
Víctor Mayoral Vilches
ce4c4c43dc
AP_HAL_Linux: Scheduler reboot fix
...
exit from the autpilot when reboot is commanded.
The software assumes that the code is being
launched in an infinite loop thereby an exit
will make it reboot.
10 years ago
bugobliterator
298b27444a
HAL_Linux: Add ToneAlarm Driver to Linux_HAL
...
ToneAlarm is setup for Beaglebone Black using pwm, toneAlarm thread runs on second last priority.
10 years ago
Andrew Tridgell
024d3b71e7
HAL_Linux: use a semaphore in suspend_timer_procs()
...
this is the start of multi-core aware code
11 years ago
Andrew Tridgell
ead82ee581
HAL_Linux: implement millis64() and micros64()
11 years ago
Andrew Tridgell
b9dc2335ee
HAL_Linux: run timer thread at average 1kHz without drift
...
this avoids drift in the 1kHz timer, to avoid bias in the IMU
filtering
11 years ago
Andrew Tridgell
8f280d212b
HAL_Linux: don't use usleep() in suspend_timer_procs()
...
usleep can cause a large delay with PREEMPT kernel
11 years ago
bugobliterator
ac11d282b5
HAL_Linux: Add support for PPM input to HAL_Linux
...
rcin thread continuously scans for values inside ring buffer maintained by pru with rcinpru0 firmware.
11 years ago
Silvia
7fd0e8345d
HAL_Linux: Duplicate `#include <unistd.h>`deleted
11 years ago
Andrew Tridgell
fc8068adfe
HAL_Linux: use board subtypes
11 years ago
Víctor Mayoral Vilches
c4b6026d53
HAL_Linux: include readRegistersMultiple in I2CDriver
...
AP_HAL_Linux implemments this new method.
11 years ago
Andrew Tridgell
74ee70d463
HAL_Linux: updates for ERLE board type
11 years ago
Andrew Tridgell
3fa2207a2d
AP_HAL: allow for microsecond resolution in scheduler->stop_clock()
...
this makes 400Hz in the replay code possible
11 years ago
Andrew Tridgell
78ff078988
HAL_Linux: fixed stopped clock delay
11 years ago
Andrew Tridgell
117b77460e
HAL_Linux: added stop_clock hack!
11 years ago
Andrew Tridgell
ecbfdfba6c
HAL_Linux: implement time_shift() API
11 years ago
Andrew Tridgell
5af51140a9
HAL_Linux: fixed scheduler initialisation bug in Linux HAL as well
11 years ago
Andrew Tridgell
0d682e74c1
HAL_Linux: run threads a bit more slowly
...
this was just wasting cycles
11 years ago
Andrew Tridgell
91511e6503
HAL_Linux: better realtime setup
...
lock all memory and pre-fault the stack in all threads
12 years ago
Andrew Tridgell
07b8f45770
HAL_Linux: use CLOCK_MONOTONIC_RAW to ensure clock never goes backwards
...
this avoids ntp mucking with APM timing
12 years ago
Andrew Tridgell
c9fea2c706
HAL_Linux: fixed scheduling priorities
...
need to be between 1 and 99
12 years ago
Andrew Tridgell
51c19331a6
HAL_Linux: fixed build
12 years ago
Andrew Tridgell
f2ebb2ca87
HAL_Linux: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
1698e1800c
HAL_Linux: timer calls may block on HAL_Linux
...
timer calls can do SPI transfers, which can block
12 years ago
Andrew Tridgell
5102f1511b
HAL_Linux: fixed callbacks from delay()
12 years ago
Andrew Tridgell
a1ef1a9318
HAL_Linux: tweak the scheduling priorities
12 years ago
Andrew Tridgell
1e786b3e20
HAL_Linux: added buffering on the UARTs
12 years ago
Andrew Tridgell
f03315237a
HAL_Linux: fixed timer scheduler
12 years ago
Andrew Tridgell
cca59ce3c9
HAL_Linux: update for new scheduler API
12 years ago
Andrew Tridgell
bcf4f48e65
HAL_Linux: switched to pthread based scheduling
12 years ago
Andrew Tridgell
4ba044c441
AP_HAL_Linux: initial Linux AP_HAL
12 years ago