Made physical interface enum more generic (moved out of AVR8-specific context)
This commit is contained in:
14
src/Targets/TargetPhysicalInterface.cpp
Normal file
14
src/Targets/TargetPhysicalInterface.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "TargetPhysicalInterface.hpp"
|
||||
|
||||
namespace Targets
|
||||
{
|
||||
std::map<TargetPhysicalInterface, std::string> getPhysicalInterfaceNames() {
|
||||
return std::map<TargetPhysicalInterface, std::string>({
|
||||
{TargetPhysicalInterface::ISP, "ISP"},
|
||||
{TargetPhysicalInterface::DEBUG_WIRE, "debugWire"},
|
||||
{TargetPhysicalInterface::PDI, "PDI"},
|
||||
{TargetPhysicalInterface::JTAG, "JTAG"},
|
||||
{TargetPhysicalInterface::UPDI, "UPDI"},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user