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

Method PeripheralUSB

lib/PicoPeripherals/peripheral_usb.cpp:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "peripheral_usb.h"
2
3PeripheralUSB::PeripheralUSB() {
4 _DP = USB_PERIPHERAL_PIN_DPLUS;
5 _Enable5v = USB_PERIPHERAL_PIN_5V;
6 _Order = USB_PERIPHERAL_PIN_ORDER;
7}
8
9void PeripheralUSB::setConfig(uint8_t block, int8_t dp, int8_t enable5v, uint8_t order) {
10 if (block < NUM_USBS) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected