Esempio n. 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();
}
Esempio n. 2
0
File: gpio.cpp Progetto: tanuva/wled
Input::~Input()
{
	close(_fd);
	unexportPin(_pin);
}
Esempio n. 3
0
File: gpio.cpp Progetto: tanuva/wled
Output::~Output()
{
	close(_fd);
	setDirection(_pin, Direction::IN);
	unexportPin(_pin);
}