Made physical interface enum more generic (moved out of AVR8-specific context)

This commit is contained in:
Nav
2024-02-15 21:24:41 +00:00
parent f33b4d8c70
commit 7e9e28286f
20 changed files with 156 additions and 160 deletions

View 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();
}