mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 17:38:32 -04:00
cdf70f6fe5
This commit adds the class Linux::GPIO_Sysfs. This class provides a generic implementation of AP_HAL::GPIO on Linux by using GPIO Sysfs Interface (https://www.kernel.org/doc/Documentation/gpio/sysfs.txt). The channel() interface should be preferred in places that need to be fast. Since it maintains the file descriptor open this is much faster than opening and closing it.
47 lines
994 B
C++
47 lines
994 B
C++
|
|
#ifndef __AP_HAL_LINUX_NAMESPACE_H__
|
|
#define __AP_HAL_LINUX_NAMESPACE_H__
|
|
|
|
namespace Linux {
|
|
class UARTDriver;
|
|
class SPIUARTDriver;
|
|
class RPIOUARTDriver;
|
|
class I2CDriver;
|
|
class SPIDeviceManager;
|
|
class SPIDeviceDriver;
|
|
class AnalogSource;
|
|
class AnalogIn;
|
|
class Storage;
|
|
class GPIO_BBB;
|
|
class GPIO_RPI;
|
|
class GPIO_Sysfs;
|
|
class Storage;
|
|
class Storage_FRAM;
|
|
class DigitalSource;
|
|
class DigitalSource_Sysfs;
|
|
class RCInput;
|
|
class RCInput_PRU;
|
|
class RCInput_AioPRU;
|
|
class RCInput_Navio;
|
|
class RCInput_Raspilot;
|
|
class RCInput_ZYNQ;
|
|
class RCInput_UART;
|
|
class RCInput_UDP;
|
|
class RCOutput_PRU;
|
|
class RCOutput_AioPRU;
|
|
class RCOutput_PCA9685;
|
|
class RCOutput_Raspilot;
|
|
class RCOutput_ZYNQ;
|
|
class RCOutput_Bebop;
|
|
class Semaphore;
|
|
class Scheduler;
|
|
class Util;
|
|
class UtilRPI;
|
|
class ToneAlarm;
|
|
class Heat;
|
|
class HeatPwm;
|
|
}
|
|
|
|
#endif // __AP_HAL_LINUX_NAMESPACE_H__
|
|
|