Example #1
0
//------------------------------------------------------------------------------
//! @brief   Standard Destructor
//------------------------------------------------------------------------------
GpioManager::~GpioManager() {
  std::map< epicsUInt32, GPIO >::iterator it = _mgpio.begin();
  for( ; it != _mgpio.end(); ++it ) {
    unexportPin( it->first );
  }
  _mgpio.clear();
}
Example #2
0
File: gpio.cpp Project: tanuva/wled
Input::~Input()
{
	close(_fd);
	unexportPin(_pin);
}
Example #3
0
File: gpio.cpp Project: tanuva/wled
Output::~Output()
{
	close(_fd);
	setDirection(_pin, Direction::IN);
	unexportPin(_pin);
}