MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / IsRaspberryPi

Method IsRaspberryPi

cpp/hal/sbc_version.cpp:109–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool SBC_Version::IsRaspberryPi()
110{
111 switch (sbc_version) {
112 case sbc_version_type::sbc_raspberry_pi_1:
113 case sbc_version_type::sbc_raspberry_pi_2_3:
114 case sbc_version_type::sbc_raspberry_pi_4:
115 return true;
116 default:
117 return false;
118 }
119}
120
121// The following functions are only used on the Raspberry Pi
122// (imported from bcm_host.c)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected