[Sys-clk-OC] Add RAM freq selection

This commit is contained in:
KazushiM
2021-12-11 20:21:20 +08:00
parent 46c0cb88c3
commit 314b769708
14 changed files with 47 additions and 28 deletions

View File

@@ -20,6 +20,10 @@ static inline std::string formatListFreqMhz(std::uint32_t mhz)
{
return FREQ_DEFAULT_TEXT;
}
else if (mhz == 1600)
{
return "Max MHz";
}
char buf[10];
return std::string(buf, snprintf(buf, sizeof(buf), "%u MHz", mhz));