MCPcopy Create free account
hub / github.com/SmingHub/Sming / speedToString

Function speedToString

tests/HostTests/modules/SpiFlash.cpp:26–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26String speedToString(SPIFlashSpeed speed)
27{
28 switch(speed) {
29 case SPEED_40MHZ:
30 return _F("40 MHz");
31 case SPEED_26MHZ:
32 return _F("26 MHz");
33 case SPEED_20MHZ:
34 return _F("20 MHz");
35 case SPEED_80MHZ:
36 return _F("80 MHz");
37 default:
38 return nullptr;
39 }
40}
41
42String sizeToString(SPIFlashSize size)
43{

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected