Tidying low-level debug tool driver code:
- Use automatic objects for libusb/hidapi resources, where possible (to reduce manual resource management) - Removed unused/redundant code - Tidied HidInterface class - Tidied debug tool initialisation code - Other bits of tidying
This commit is contained in:
@@ -8,6 +8,10 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg
|
||||
{
|
||||
using namespace Bloom::Exceptions;
|
||||
|
||||
EdbgInterface::EdbgInterface(Usb::HidInterface&& usbHidInterface)
|
||||
: CmsisDapInterface(std::move(usbHidInterface))
|
||||
{}
|
||||
|
||||
Protocols::CmsisDap::Response EdbgInterface::sendAvrCommandsAndWaitForResponse(
|
||||
const std::vector<Avr::AvrCommand>& avrCommands
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user