Lucas De Marchi
d31e85e738
AP_HAL_Linux: fix copy and paste error on gpio table
7 years ago
Michael du Breuil
7043738f3b
AP_HAL_Linux: Clear UART buffers when opening a port
7 years ago
Hyungsub
97b93920b3
AP_HAL_Linux: fix memory leaks
...
Fixes #8642
7 years ago
Peter Barker
c9dbdd7a5c
AP_HAL_Linux: clarify method name, use common methods for setting time
7 years ago
Eugene Shamaev
7dd8308a8c
AP_HAL_Linux: reducing indenting by linearizing the logic
7 years ago
mirkix
b32b57ad75
AP_HAL_Linux: change SPI Bus for PocketPilot final design
7 years ago
Michael du Breuil
80d1a1de9a
AP_HAL_Linux: Remove timer process suspension interface
7 years ago
Michael du Breuil
737c4ac36f
AP_HAL_Linux: Remove RC overrides
7 years ago
Lucas De Marchi
88dc17fe6e
AP_HAL_Linux: Storage: fix initialization
...
Use init() to lazily create/open storage directory and keep fd open
afterwards. This avoids duplicate code opening the storage in several
places.
7 years ago
Lucas De Marchi
1f3b7b5687
AP_HAL_Linux: Storage: fix writing garbage while creating file
...
By the time we create the storage we hadn't still initialized the
buffer. Remove the writes during storage creation since ftruncate() will
take care of the file size aspect and MAX storage write chunk is taken
care by Linux according to the media/fs that is there.
7 years ago
Lucas De Marchi
5526997d45
AP_HAL_Linux: Storage: prefer custom storage
...
If ardupilot was started with --storage-directory option, use that
directory to save/load parameters.
7 years ago
Lucas De Marchi
ff6e76ea6a
AP_HAL_Linux: add custom storage directory
7 years ago
Lucas De Marchi
9e538632b3
AP_HAL_Linux: use AP_HAL_STORAGE_DIRECTORY
...
Add mkdir_p implementation copied from kmod and create the directory
with all possible components.
7 years ago
Andrew Tridgell
b396b2a2e0
HAL_Linux: take account of available bytes in receive_time_constraint_us
7 years ago
Francisco Ferreira
5e821428a1
AP_HAL_Linux: remove Qualcomm board support
7 years ago
Andrew Tridgell
b8eeac41c8
HAL_Linux: implement uart timestamp API
7 years ago
Michael du Breuil
517e20093e
AP_HAL_Linux: Remove set_overrides() method
7 years ago
mirkix
95fbc222d5
AP_HAL_Linux: enable GPIOs for PocketPilot
7 years ago
Peter Barker
d5cad015dc
AP_HAL_Linux: move delay callback handling to base HAL Scheduler class
7 years ago
Andrew Tridgell
4404c95cc8
HAL_Linux: use ceilf()
7 years ago
Lucas De Marchi
b1b4b66e65
AP_HAL_Linux: minlure: fix uart path
...
In some point in past it may have been ttyS2, but right now on kernel
4.16+ the UART is on ttyS5. We could do like is done for I2C and search
on sysfs, but it requires additional changes.
7 years ago
Lucas De Marchi
320db1d79b
AP_HAL_Linux: remove unused i2c devpaths
7 years ago
Lucas De Marchi
2000e17646
AP_HAL: move get_device() method from AP_HAL_Linux
...
This way it's possible to use the method in platform-independent code
without a need to up cast.
7 years ago
Lucas De Marchi
4f2498947b
AP_HAL_Linux: remove redundant ifdef
...
CONFIG_HAL_BOARD_SUBTYPE should be set in the boards header.
7 years ago
mirkix
0c353d2af0
AP_HAL_Linux: change PocketPilot to final baro sensor
7 years ago
mirkix
598ae5c3f7
AP_HAL_Linux: PocketPilot: change pru to final design
7 years ago
Mark Whitehorn
7ad0318d4f
AP_HAL_Linux: fix latent bug in ToneAlarm
7 years ago
Lucas De Marchi
cf3a9cddc8
AP_HAL_Linux: fix build error with flexible array
...
Apparently this code came in part from libuavcan that defines this
struct Control. They also had the same issue detailed on
https://github.com/UAVCAN/libuavcan/issues/116 .
The solution here is much simpler though: stick to the design of cmsg()
even if it's C. As per cmsg(3), use a union together with CMSG_SPACE().
7 years ago
chobits
15b8ae99fe
AP_HAL_Linux: fixed AP_MODULE_SUPPORTED on static build
7 years ago
mirkix
234dcc1939
AP_HAL_Linux: fix BeagleBone Blue voltage divider
7 years ago
Lucas De Marchi
755b1cdced
AP_HAL_Linux: rpi: sort include headers
7 years ago
Lucas De Marchi
90160a9c52
AP_HAL_Linux: rpi: use const var and fix formatting
...
Use a const variable instead of a define so we don't polute the
environment with a define specific to this function.
Also remove tabs and replace with proper coding style.
7 years ago
Dmitri Ranfft
05ebabbf6b
AP_HAL_Linux: fixed RPi version detection on kernel 4.9
7 years ago
Siddharth Purohit
a55f1c85af
HAL_Linux: add support for api change in AP_HAL::CANManager
7 years ago
Andrew Tridgell
26161ee467
HAL_Linux: Storage::_timer_tick is an override
7 years ago
Andrew Tridgell
22de99dd58
HAL_Linux: implement _timer_tick in UARTDriver
7 years ago
mirkix
bf758098d7
AP_HAL_Linux: fix deallocation
7 years ago
mirkix
c5eb52bf8d
AP_HAL_Linux: fix comment
7 years ago
mirkix
700171a0fc
AP_HAL_Linux: add second RCIN port for Blue
7 years ago
Nikita Tomilov
1549b1a52a
AP_BoardConfig: CAN: Merge PX4 and Linux CAN setup
...
Here we merge PX4 and Linux CAN bus setup since the interface is almost
the same for both of them.
7 years ago
Tom Pittenger
d713d57904
AP_HAL_Linux: update software license referencing UAVCAN submodule
7 years ago
Nikita Tomilov
3ac2e4e8c5
AP_HAL_Linux: CAN: _pollRead no more than 100 iterations
...
This adds a counter here to only loop to a maximum number of iterations.
Now we avoid situations in which we would be stuck processing packets here.
This also adds some other meaningful defines
7 years ago
Nikita Tomilov
43bfcbc8e2
AP_HAL_Linux: CAN: Rename CANDriver -> CANManager
7 years ago
Nikita Tomilov
d0fc481202
AP_HAL_Linux: CAN: Rename Linux::LinuxCAN -> Linux::CAN
7 years ago
Alexey Bulatov
e0acbd3e53
AP_HAL_LINUX: Add CAN to timer_task
7 years ago
Nikita Tomilov
a50e6c6dd7
AP_HAL: board: linux: Add default CAN interface name
7 years ago
Nikita Tomilov
b6665f7e58
AP_HAL_Linux: CAN: get rid of RaiiCloser
7 years ago
Alexey Bulatov
976500960f
AP_HAL_LINUX: Add CAN driver
7 years ago
Andrew Tridgell
8fea99e1da
HAL_Linux: use calloc in preferance to malloc
7 years ago
Andrew Tridgell
43c1bd0ae9
HAL_Linux: fixed I2C get_device() interface
...
just stubs for now
7 years ago