heater wip

This commit is contained in:
2021-01-23 17:22:40 +01:00
parent b7d3818202
commit 61ed56ace9
24 changed files with 810 additions and 77 deletions

View File

@ -0,0 +1,26 @@
#include <bsp_q7s/gpio/cookies/GpioCookie.h>
GpioCookie::GpioCookie() {
}
void GpioCookie::addGpio(GpioMap newEntry){
gpioMapIter = gpioMap.find(newEntry);
if(gpioMapIter == gpioMap.end()) {
std::pair status = gpioMap.emplace(newEntry);
if (status.second == false) {
sif::error << "GpioCookie::addGpio: Failed to add GPIO "
<< newEntry.first << "to GPIO map" << std::endl;
return HasReturnvaluesIF::RETURN_OK;
}
}
else {
sif::error << "GpioCookie::addGpio: GPIO already exists in GPIO map "
<< std::endl;
}
}
GpioMap getGpioMap() const{
return gpioMap;
}
GpioCookie::~GpioCookie() {}