Made physical interface enum more generic (moved out of AVR8-specific context)
This commit is contained in:
24
src/Targets/TargetPhysicalInterface.hpp
Normal file
24
src/Targets/TargetPhysicalInterface.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace Targets
|
||||
{
|
||||
enum class TargetPhysicalInterface: std::uint8_t
|
||||
{
|
||||
ISP,
|
||||
JTAG,
|
||||
DEBUG_WIRE,
|
||||
PDI,
|
||||
UPDI,
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a mapping of physical interfaces to their marketing name.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
std::map<TargetPhysicalInterface, std::string> getPhysicalInterfaceNames();
|
||||
}
|
||||
Reference in New Issue
Block a user