Added EDBG AvrIspInterface implementation to AtmelIce debug tool class

This commit is contained in:
Nav
2022-03-05 17:57:57 +00:00
parent 50ef525c43
commit 5e1d05ef7f
2 changed files with 13 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ namespace Bloom::DebugToolDrivers
}
this->edbgAvr8Interface = std::make_unique<EdbgAvr8Interface>(this->edbgInterface);
this->edbgAvrIspInterface = std::make_unique<EdbgAvrIspInterface>(this->edbgInterface);
this->setInitialised(true);
}

View File

@@ -10,6 +10,7 @@
#include "src/DebugToolDrivers/Protocols/CMSIS-DAP/CmsisDapInterface.hpp"
#include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/EdbgInterface.hpp"
#include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.hpp"
#include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvrIspInterface.hpp"
#include "src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/CommandFrames/AvrCommandFrames.hpp"
namespace Bloom::DebugToolDrivers
@@ -58,6 +59,10 @@ namespace Bloom::DebugToolDrivers
return this->edbgAvr8Interface.get();
}
TargetInterfaces::Microchip::Avr::AvrIspInterface* getAvrIspInterface() override {
return this->edbgAvrIspInterface.get();
}
std::string getName() override {
return "Atmel-ICE";
};
@@ -96,6 +101,12 @@ namespace Bloom::DebugToolDrivers
*/
std::unique_ptr<Protocols::CmsisDap::Edbg::Avr::EdbgAvr8Interface> edbgAvr8Interface = nullptr;
/**
* The Atmel-ICE employs the EDBG AVRISP protocol, for interfacing with AVR targets via the ISP interface.
* See the EdbgAvrIspInterface class for the protocol implementation.
*/
std::unique_ptr<Protocols::CmsisDap::Edbg::Avr::EdbgAvrIspInterface> edbgAvrIspInterface = nullptr;
bool sessionStarted = false;
};
}