示例#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();
}
示例#2
0
文件: gpio.cpp 项目: tanuva/wled
Input::~Input()
{
	close(_fd);
	unexportPin(_pin);
}
示例#3
0
文件: gpio.cpp 项目: tanuva/wled
Output::~Output()
{
	close(_fd);
	setDirection(_pin, Direction::IN);
	unexportPin(_pin);
}