You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lucas De Marchi
a4c1b0d75f
AP_HAL_Linux: add constructor to find I2C bus reliably
...
The device number in /dev may not be reliable from one boot to another
due to the initialization order of each bus.
For example, in Minnow Board Max, the exposed I2C buses may be i2c-7 and
i2c-8 or i2c-8 and i2c-9 depending if the platform driver in the kernel
is initialized before or after the PCI.
It also may change with different version and configuration of the DT or
UEFI used making another kernel driver to bind to the device. This means that
for Minnow Board Max we need to use something like below to pass to the
constructor:
static const char * const i2c_devpaths[] = {
/* UEFI with lpss set to ACPI */
"/devices/platform/80860F41:05",
/* UEFI with lpss set to PCI */
"/devices/pci0000:00/0000:00:18.6",
NULL
};
The devpath here is the one returned by udev with the following command:
udevadm info -q path /dev/<i2c-device>
In contrary to the device number in /dev/i2c-N, this path in sysfs is
stable across reboots and can only change if there's a change in the
UEFI firmware or the board's device tree.
This patch assumes the currently supported boards don't have this
problem so it's not touching them.
10 years ago
..
examples/ BusTest
BusTest: Fix compilation error with AP_ADC
10 years ago
AP_HAL_Linux.h
…
AP_HAL_Linux_Main.h
…
AP_HAL_Linux_Namespace.h
AP_HAL_Linux: Add RcInput and RcOutput with only one PRU when using a BBB. BBBMINI use the RC AIO PRU firmware already
10 years ago
AP_HAL_Linux_Private.h
AP_HAL_Linux: renamed AnalogIn_Navio
10 years ago
AnalogIn.cpp
…
AnalogIn.h
…
AnalogIn_Navio.cpp
AP_HAL_Linux: use functor macros
10 years ago
AnalogIn_Navio.h
AP_HAL_Linux: renamed AnalogIn_Navio
10 years ago
GPIO.cpp
…
GPIO.h
AP_HAL_Linux: add support for BBBMINI, simple ArduPilot DIY Cape for the BeagleBone Black
10 years ago
GPIO_BBB.cpp
AP_HAL_Linux: add support for BBBMINI, simple ArduPilot DIY Cape for the BeagleBone Black
10 years ago
GPIO_BBB.h
AP_HAL_Linux: add support for BBBMINI, simple ArduPilot DIY Cape for the BeagleBone Black
10 years ago
GPIO_RPI.cpp
AP_HAL_Linux: add RPi version runtime detection
10 years ago
GPIO_RPI.h
AP_HAL_Linux: add RPi version runtime detection
10 years ago
HAL_Linux_Class.cpp
HAL_Linux: added udp example to help
10 years ago
HAL_Linux_Class.h
…
I2CDriver.cpp
AP_HAL_Linux: add constructor to find I2C bus reliably
10 years ago
I2CDriver.h
AP_HAL_Linux: add constructor to find I2C bus reliably
10 years ago
RCInput.cpp
HAL_Linux: accept a smaller sync pulse width
10 years ago
RCInput.h
…
RCInput_AioPRU.cpp
AP_HAL_Linux: Add RcInput and RcOutput with only one PRU when using a BBB. BBBMINI use the RC AIO PRU firmware already
10 years ago
RCInput_AioPRU.h
AP_HAL_Linux: Add RcInput and RcOutput with only one PRU when using a BBB. BBBMINI use the RC AIO PRU firmware already
10 years ago
RCInput_Navio.cpp
AP_HAL_Linux: Navio RCInput reimplemented.
10 years ago
RCInput_Navio.h
AP_HAL_Linux: Navio RCInput reimplemented.
10 years ago
RCInput_PRU.cpp
AP_HAL_Linux: add support for BBBMINI, simple ArduPilot DIY Cape for the BeagleBone Black
10 years ago
RCInput_PRU.h
…
RCInput_ZYNQ.cpp
…
RCInput_ZYNQ.h
…
RCOutput_AioPRU.cpp
AP_HAL_Linux: Fix loading Firmware
10 years ago
RCOutput_AioPRU.h
AP_HAL_Linux: Add RcInput and RcOutput with only one PRU when using a BBB. BBBMINI use the RC AIO PRU firmware already
10 years ago
RCOutput_Navio.cpp
AP_HAL_Linux: added buffering in RCOutput_Navio
10 years ago
RCOutput_Navio.h
AP_HAL_Linux: added buffering in RCOutput_Navio
10 years ago
RCOutput_PRU.cpp
…
RCOutput_PRU.h
…
RCOutput_ZYNQ.cpp
…
RCOutput_ZYNQ.h
AP_HAL_Linux: Fix compiler warning of MAX_PWMS redefinition (previously defined)
10 years ago
SPIDriver.cpp
AP_HAL_Linux: added support for dynamic speed configration in LinuxSPIUARTDriver
10 years ago
SPIDriver.h
AP_HAL_Linux: add support for BBBMINI, simple ArduPilot DIY Cape for the BeagleBone Black
10 years ago
SPIUARTDriver.cpp
AP_HAL_Linux: added support for dynamic speed configration in LinuxSPIUARTDriver
10 years ago
SPIUARTDriver.h
AP_HAL_Linux: added LinuxSPIUARTDriver that can handle SPI-driven Ublox
10 years ago
Scheduler.cpp
AP_HAL_Linux: Changes in Scheduler: Added defines for delays, RCIN_RERIOD changed
10 years ago
Scheduler.h
AP_HAL: use noreturn attribute on panic
10 years ago
Semaphores.cpp
…
Semaphores.h
…
Storage.cpp
…
Storage.h
…
Storage_FRAM.cpp
…
Storage_FRAM.h
…
ToneAlarmDriver.cpp
…
ToneAlarmDriver.h
HAL_Linux: added ToneAlarmDriver.h
10 years ago
UARTDriver.cpp
AP_HAL_Linux: fixed TCP client connection in LinuxUARTDriver
10 years ago
UARTDriver.h
AP_HAL_Linux: added LinuxSPIUARTDriver that can handle SPI-driven Ublox
10 years ago
Util.cpp
HAL_Linux: fixed #if for linux builds
10 years ago
Util.h
HAL_Linux: Add set_system_clock
10 years ago
dsm.cpp
…
dsm.h
…
sbus.cpp
…
sbus.h
…