ardupilot/libraries/AP_HAL_Linux/AP_HAL_Linux_Namespace.h
Julien BERAUD 8733f34ce1 AP_HAL_Linux: PWM_Sysfs for bebop
Modify existing class to create a PWM_Sysfs_Base class and derive it for
Bebop and Pwm_Sysfs (mainline kernel)

use asprintf for path allocation since it doesn't cost so much and is done
only at startup
Note that the constructor of the 2 classes : PWM_Sysfs and PWM_Sysfs_Bebop
allocate the paths and the constructor and desctuctor of class PWM_Sysfs_Base
frees them.
only keep in memory the paths that are needed later, i.e free _export_path,
_duty_path. The remaining path are freed in the destructor
2015-12-01 07:07:25 +11:00

51 lines
1.1 KiB
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 PWM_Sysfs;
class PWM_Sysfs_Bebop;
class PWM_Sysfs_Base;
class RCInput;
class RCInput_PRU;
class RCInput_AioPRU;
class RCInput_RPI;
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 RCOutput_Sysfs;
class Semaphore;
class Scheduler;
class Util;
class UtilRPI;
class ToneAlarm;
class Heat;
class HeatPwm;
}
#endif // __AP_HAL_LINUX_NAMESPACE_H__