mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
Instead of adding the name argument to a constructor when FW_OBJECT_NAMES is enabled, always supply a name argument. Add a marco that conditionally sets the name to "" if FW_OBJECT_NAMES is not set. This cleans up a lot of the conditional compilation switches that weren't being tested and would silently break, while still stripping the strings from the binary.
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
// ======================================================================
|
|
// \title LinuxGpioDriverImpl.cpp
|
|
// \author tcanham
|
|
// \brief cpp file for LinuxGpioDriver component implementation class
|
|
//
|
|
// \copyright
|
|
// Copyright 2009-2015, by the California Institute of Technology.
|
|
// ALL RIGHTS RESERVED. United States Government Sponsorship
|
|
// acknowledged.
|
|
//
|
|
// ======================================================================
|
|
|
|
|
|
#include <Drv/LinuxGpioDriver/LinuxGpioDriverComponentImpl.hpp>
|
|
#include <Fw/Types/BasicTypes.hpp>
|
|
|
|
namespace Drv {
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Construction, initialization, and destruction
|
|
// ----------------------------------------------------------------------
|
|
|
|
LinuxGpioDriverComponentImpl ::
|
|
LinuxGpioDriverComponentImpl(
|
|
const char *const compName
|
|
) : LinuxGpioDriverComponentBase(compName),
|
|
m_gpio(-1),
|
|
m_direction(GPIO_IN),
|
|
m_fd(-1),
|
|
m_quitThread(false)
|
|
{
|
|
|
|
}
|
|
|
|
void LinuxGpioDriverComponentImpl ::
|
|
init(
|
|
const NATIVE_INT_TYPE instance
|
|
)
|
|
{
|
|
LinuxGpioDriverComponentBase::init(instance);
|
|
}
|
|
|
|
} // end namespace Drv
|