MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / getUSB

Method getUSB

src/peripheralmanager.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35PeripheralUSB* PeripheralManager::getUSB(uint8_t block) {
36 if (block < NUM_USBS) {
37 return ((block == 0) ? &blockUSB0 : &blockUSB0);
38 }
39 return nullptr;
40}
41
42bool PeripheralManager::isI2CEnabled(uint8_t block) {
43 if (block < NUM_I2CS) {

Callers 1

startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected