Skip to content

Instantly share code, notes, and snippets.

@jepler
Created October 6, 2020 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jepler/d3b4af08e9833d56cd7fe1b19087c579 to your computer and use it in GitHub Desktop.
Save jepler/d3b4af08e9833d56cd7fe1b19087c579 to your computer and use it in GitHub Desktop.
Arduino: 1.8.13 (Linux), Board: "Adafruit Feather M4 CAN (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off"
/home/jepler/.local/arduino-1.8.13/arduino-builder -dump-prefs -logger=machine -hardware /home/jepler/.local/arduino-1.8.13/hardware -hardware /home/jepler/.arduino15/packages -hardware /home/jepler/Arduino/hardware -tools /home/jepler/.local/arduino-1.8.13/tools-builder -tools /home/jepler/.local/arduino-1.8.13/hardware/tools/avr -tools /home/jepler/.arduino15/packages -built-in-libraries /home/jepler/.local/arduino-1.8.13/libraries -libraries /home/jepler/Arduino/libraries -fqbn=adafruit:ArduinoCore-samd:adafruit_feather_m4_can:cache=on,speed=120,opt=small,maxqspi=50,usbstack=arduino,debug=off -ide-version=10813 -build-path /tmp/arduino_build_918341 -warnings=none -build-cache /tmp/arduino_cache_161214 -prefs=build.warn_data_percentage=75 -verbose /home/jepler/.local/arduino-1.8.13/examples/01.Basics/Blink/Blink.ino
/home/jepler/.local/arduino-1.8.13/arduino-builder -compile -logger=machine -hardware /home/jepler/.local/arduino-1.8.13/hardware -hardware /home/jepler/.arduino15/packages -hardware /home/jepler/Arduino/hardware -tools /home/jepler/.local/arduino-1.8.13/tools-builder -tools /home/jepler/.local/arduino-1.8.13/hardware/tools/avr -tools /home/jepler/.arduino15/packages -built-in-libraries /home/jepler/.local/arduino-1.8.13/libraries -libraries /home/jepler/Arduino/libraries -fqbn=adafruit:ArduinoCore-samd:adafruit_feather_m4_can:cache=on,speed=120,opt=small,maxqspi=50,usbstack=arduino,debug=off -ide-version=10813 -build-path /tmp/arduino_build_918341 -warnings=none -build-cache /tmp/arduino_cache_161214 -prefs=build.warn_data_percentage=75 -verbose /home/jepler/.local/arduino-1.8.13/examples/01.Basics/Blink/Blink.ino
Using board 'adafruit_feather_m4_can' from platform in folder: /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd
Using core 'arduino' from platform in folder: /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd
Detecting libraries used...
/home/jepler/.arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10813 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_ARDUINOCORE-SAMD -D__SAME51J19A__ -DADAFRUIT_FEATHER_M4_EXPRESS -DADAFRUIT_FEATHER_M4_CAN -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x80CD -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"Adafruit Feather M4 CAN\"" -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE -Os -DVARIANT_QSPI_BAUD_DEFAULT=50000000 -D__SAME51J19A__ -DADAFRUIT_FEATHER_M4_EXPRESS -DADAFRUIT_FEATHER_M4_CAN -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x80CD -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"Adafruit Feather M4 CAN\"" -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -I/home/jepler/.arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/jepler/.arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/jepler/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/variants/feather_m4 /tmp/arduino_build_918341/sketch/Blink.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
/home/jepler/.arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10813 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_ARDUINOCORE-SAMD -D__SAME51J19A__ -DADAFRUIT_FEATHER_M4_EXPRESS -DADAFRUIT_FEATHER_M4_CAN -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x80CD -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"Adafruit Feather M4 CAN\"" -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE -Os -DVARIANT_QSPI_BAUD_DEFAULT=50000000 -D__SAME51J19A__ -DADAFRUIT_FEATHER_M4_EXPRESS -DADAFRUIT_FEATHER_M4_CAN -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x80CD -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"Adafruit Feather M4 CAN\"" -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -I/home/jepler/.arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/jepler/.arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/jepler/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/variants/feather_m4 /tmp/arduino_build_918341/sketch/Blink.ino.cpp -o /tmp/arduino_build_918341/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
/home/jepler/.local/arduino-1.8.13/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_918341/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/jepler/.arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -DF_CPU=120000000L -DARDUINO=10813 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_ARDUINOCORE-SAMD -D__SAME51J19A__ -DADAFRUIT_FEATHER_M4_EXPRESS -DADAFRUIT_FEATHER_M4_CAN -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x80CD -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"Adafruit Feather M4 CAN\"" -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE -Os -DVARIANT_QSPI_BAUD_DEFAULT=50000000 -D__SAME51J19A__ -DADAFRUIT_FEATHER_M4_EXPRESS -DADAFRUIT_FEATHER_M4_CAN -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x80CD -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"Adafruit Feather M4 CAN\"" -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -I/home/jepler/.arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/jepler/.arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/jepler/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino -I/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/variants/feather_m4 /tmp/arduino_build_918341/sketch/Blink.ino.cpp -o /tmp/arduino_build_918341/sketch/Blink.ino.cpp.o
In file included from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/Arduino.h:66,
from /tmp/arduino_build_918341/sketch/Blink.ino.cpp:1:
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/WVariant.h:181:9: error: 'ETCChannel' does not name a type; did you mean 'DAC_Channel1'?
181 | typedef ETCChannel EPWMChannel;
| ^~~~~~~~~~
| DAC_Channel1
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/WVariant.h:182:40: error: 'TCC_INST_NUM' was not declared in this scope
182 | extern const uint32_t GCLK_CLKCTRL_IDs[TCC_INST_NUM+TC_INST_NUM];
| ^~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/WVariant.h:182:53: error: 'TC_INST_NUM' was not declared in this scope
182 | extern const uint32_t GCLK_CLKCTRL_IDs[TCC_INST_NUM+TC_INST_NUM];
| ^~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/WVariant.h:257:36: error: 'TCC_INST_NUM' was not declared in this scope
257 | extern const void* g_apTCInstances[TCC_INST_NUM+TC_INST_NUM] ;
| ^~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/WVariant.h:257:49: error: 'TC_INST_NUM' was not declared in this scope
257 | extern const void* g_apTCInstances[TCC_INST_NUM+TC_INST_NUM] ;
| ^~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/WVariant.h:361:3: error: 'EPWMChannel' does not name a type
361 | EPWMChannel ulPWMChannel ;
| ^~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/WVariant.h:362:3: error: 'ETCChannel' does not name a type; did you mean 'DAC_Channel1'?
362 | ETCChannel ulTCChannel ;
| ^~~~~~~~~~
| DAC_Channel1
In file included from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/variants/feather_m4/variant.h:46,
from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/delay.h:24,
from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/Arduino.h:81,
from /tmp/arduino_build_918341/sketch/Blink.ino.cpp:1:
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/SERCOM.h:171:16: error: expected ')' before '*' token
171 | SERCOM(Sercom* s) ;
| ~ ^
| )
In file included from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/variants/feather_m4/variant.h:46,
from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/delay.h:24,
from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/Arduino.h:81,
from /tmp/arduino_build_918341/sketch/Blink.ino.cpp:1:
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/SERCOM.h:257:3: error: 'Sercom' does not name a type
257 | Sercom* sercom;
| ^~~~~~
In file included from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/USBAPI.h:37,
from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/Arduino.h:158,
from /tmp/arduino_build_918341/sketch/Blink.ino.cpp:1:
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:175:2: error: 'UsbDevice' does not name a type
175 | UsbDevice &usb;
| ^~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:178:34: error: 'UsbDeviceDescriptor' does not name a type; did you mean 'DeviceDescriptor'?
178 | __attribute__((__aligned__(4))) UsbDeviceDescriptor EP[USB_EPT_NUM];
| ^~~~~~~~~~~~~~~~~~~
| DeviceDescriptor
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In constructor 'USBDevice_SAMD21G18x::USBDevice_SAMD21G18x()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:32:27: error: class 'USBDevice_SAMD21G18x' does not have any field named 'usb'
32 | USBDevice_SAMD21G18x() : usb(USB->DEVICE) {
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:32:31: error: 'USB' was not declared in this scope
32 | USBDevice_SAMD21G18x() : usb(USB->DEVICE) {
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::enable()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:44:3: error: 'usb' was not declared in this scope
44 | usb.CTRLA.bit.ENABLE = 1;
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:46:29: error: 'USB_SYNCBUSY_ENABLE' was not declared in this scope
46 | while( usb.SYNCBUSY.reg & USB_SYNCBUSY_ENABLE ); //wait for sync
| ^~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::disable()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:50:3: error: 'usb' was not declared in this scope
50 | usb.CTRLA.bit.ENABLE = 0;
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:52:29: error: 'USB_SYNCBUSY_ENABLE' was not declared in this scope
52 | while( usb.SYNCBUSY.reg & USB_SYNCBUSY_ENABLE ); //wait for sync
| ^~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setUSBDeviceMode()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:57:35: error: 'usb' was not declared in this scope
57 | inline void setUSBDeviceMode() { usb.CTRLA.bit.MODE = USB_CTRLA_MODE_DEVICE_Val; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:57:56: error: 'USB_CTRLA_MODE_DEVICE_Val' was not declared in this scope
57 | inline void setUSBDeviceMode() { usb.CTRLA.bit.MODE = USB_CTRLA_MODE_DEVICE_Val; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setUSBHostMode()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:58:35: error: 'usb' was not declared in this scope
58 | inline void setUSBHostMode() { usb.CTRLA.bit.MODE = USB_CTRLA_MODE_HOST_Val; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:58:56: error: 'USB_CTRLA_MODE_HOST_Val' was not declared in this scope
58 | inline void setUSBHostMode() { usb.CTRLA.bit.MODE = USB_CTRLA_MODE_HOST_Val; }
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::runInStandby()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:60:33: error: 'usb' was not declared in this scope
60 | inline void runInStandby() { usb.CTRLA.bit.RUNSTDBY = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::noRunInStandby()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:61:33: error: 'usb' was not declared in this scope
61 | inline void noRunInStandby() { usb.CTRLA.bit.RUNSTDBY = 0; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::wakeupHost()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:62:33: error: 'usb' was not declared in this scope
62 | inline void wakeupHost() { usb.CTRLB.bit.UPRSM = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setFullSpeed()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:65:37: error: 'usb' was not declared in this scope
65 | inline void setFullSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_FS_Val; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:65:61: error: 'USB_DEVICE_CTRLB_SPDCONF_FS_Val' was not declared in this scope
65 | inline void setFullSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_FS_Val; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setLowSpeed()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:66:37: error: 'usb' was not declared in this scope
66 | inline void setLowSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_LS_Val; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:66:61: error: 'USB_DEVICE_CTRLB_SPDCONF_LS_Val' was not declared in this scope
66 | inline void setLowSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_LS_Val; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setHiSpeed()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:67:37: error: 'usb' was not declared in this scope
67 | inline void setHiSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HS_Val; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:67:61: error: 'USB_DEVICE_CTRLB_SPDCONF_HS_Val' was not declared in this scope
67 | inline void setHiSpeed() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HS_Val; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setHiSpeedTestMode()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:68:37: error: 'usb' was not declared in this scope
68 | inline void setHiSpeedTestMode() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HSTM_Val; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:68:61: error: 'USB_DEVICE_CTRLB_SPDCONF_HSTM_Val' was not declared in this scope
68 | inline void setHiSpeedTestMode() { usb.CTRLB.bit.SPDCONF = USB_DEVICE_CTRLB_SPDCONF_HSTM_Val; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::attach()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:71:25: error: 'usb' was not declared in this scope
71 | inline void attach() { usb.CTRLB.bit.DETACH = 0; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::detach()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:72:25: error: 'usb' was not declared in this scope
72 | inline void detach() { usb.CTRLB.bit.DETACH = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::isEndOfResetInterrupt()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:75:54: error: 'usb' was not declared in this scope
75 | inline bool isEndOfResetInterrupt() { return usb.INTFLAG.bit.EORST; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::ackEndOfResetInterrupt()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:76:47: error: 'usb' was not declared in this scope
76 | inline void ackEndOfResetInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_EORST; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:76:65: error: 'USB_DEVICE_INTFLAG_EORST' was not declared in this scope
76 | inline void ackEndOfResetInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_EORST; }
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::enableEndOfResetInterrupt()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:77:47: error: 'usb' was not declared in this scope
77 | inline void enableEndOfResetInterrupt() { usb.INTENSET.bit.EORST = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::disableEndOfResetInterrupt()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:78:47: error: 'usb' was not declared in this scope
78 | inline void disableEndOfResetInterrupt() { usb.INTENCLR.bit.EORST = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::isStartOfFrameInterrupt()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:80:54: error: 'usb' was not declared in this scope
80 | inline bool isStartOfFrameInterrupt() { return usb.INTFLAG.bit.SOF; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::ackStartOfFrameInterrupt()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:81:47: error: 'usb' was not declared in this scope
81 | inline void ackStartOfFrameInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_SOF; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:81:65: error: 'USB_DEVICE_INTFLAG_SOF' was not declared in this scope
81 | inline void ackStartOfFrameInterrupt() { usb.INTFLAG.reg = USB_DEVICE_INTFLAG_SOF; }
| ^~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::enableStartOfFrameInterrupt()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:82:47: error: 'usb' was not declared in this scope
82 | inline void enableStartOfFrameInterrupt() { usb.INTENSET.bit.SOF = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::disableStartOfFrameInterrupt()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:83:47: error: 'usb' was not declared in this scope
83 | inline void disableStartOfFrameInterrupt() { usb.INTENCLR.bit.SOF = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::setAddress(uint32_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:86:44: error: 'usb' was not declared in this scope
86 | inline void setAddress(uint32_t addr) { usb.DADD.bit.DADD = addr; usb.DADD.bit.ADDEN = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::unsetAddress()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:87:44: error: 'usb' was not declared in this scope
87 | inline void unsetAddress() { usb.DADD.bit.DADD = 0; usb.DADD.bit.ADDEN = 0; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'uint16_t USBDevice_SAMD21G18x::frameNumber()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:90:41: error: 'usb' was not declared in this scope
90 | inline uint16_t frameNumber() { return usb.FNUM.bit.FNUM; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetType(ep_t, uint8_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:99:54: error: 'usb' was not declared in this scope
99 | inline void epBank0SetType(ep_t ep, uint8_t type) { usb.DeviceEndpoint[ep].EPCFG.bit.EPTYPE0 = type; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetType(ep_t, uint8_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:100:54: error: 'usb' was not declared in this scope
100 | inline void epBank1SetType(ep_t ep, uint8_t type) { usb.DeviceEndpoint[ep].EPCFG.bit.EPTYPE1 = type; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'uint16_t USBDevice_SAMD21G18x::epInterruptSummary()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:103:48: error: 'usb' was not declared in this scope
103 | inline uint16_t epInterruptSummary() { return usb.EPINTSMRY.reg; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank0IsSetupReceived(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:105:59: error: 'usb' was not declared in this scope
105 | inline bool epBank0IsSetupReceived(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.RXSTP; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank0IsStalled(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:106:59: error: 'usb' was not declared in this scope
106 | inline bool epBank0IsStalled(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.STALL0; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank1IsStalled(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:107:59: error: 'usb' was not declared in this scope
107 | inline bool epBank1IsStalled(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.STALL1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank0IsTransferComplete(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:108:59: error: 'usb' was not declared in this scope
108 | inline bool epBank0IsTransferComplete(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.TRCPT0; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank1IsTransferComplete(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:109:59: error: 'usb' was not declared in this scope
109 | inline bool epBank1IsTransferComplete(ep_t ep) { return usb.DeviceEndpoint[ep].EPINTFLAG.bit.TRCPT1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0AckSetupReceived(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:111:52: error: 'usb' was not declared in this scope
111 | inline void epBank0AckSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_RXSTP; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:111:91: error: 'USB_DEVICE_EPINTFLAG_RXSTP' was not declared in this scope
111 | inline void epBank0AckSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_RXSTP; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0AckStalled(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:112:52: error: 'usb' was not declared in this scope
112 | inline void epBank0AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(1); }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:112:91: error: 'USB_DEVICE_EPINTFLAG_STALL' was not declared in this scope
112 | inline void epBank0AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(1); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1AckStalled(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:113:52: error: 'usb' was not declared in this scope
113 | inline void epBank1AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(2); }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:113:91: error: 'USB_DEVICE_EPINTFLAG_STALL' was not declared in this scope
113 | inline void epBank1AckStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_STALL(2); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0AckTransferComplete(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:114:52: error: 'usb' was not declared in this scope
114 | inline void epBank0AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(1); }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:114:91: error: 'USB_DEVICE_EPINTFLAG_TRCPT' was not declared in this scope
114 | inline void epBank0AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(1); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1AckTransferComplete(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:115:52: error: 'usb' was not declared in this scope
115 | inline void epBank1AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(2); }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:115:91: error: 'USB_DEVICE_EPINTFLAG_TRCPT' was not declared in this scope
115 | inline void epBank1AckTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTFLAG.reg = USB_DEVICE_EPINTFLAG_TRCPT(2); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0EnableSetupReceived(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:117:55: error: 'usb' was not declared in this scope
117 | inline void epBank0EnableSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.RXSTP = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0EnableStalled(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:118:55: error: 'usb' was not declared in this scope
118 | inline void epBank0EnableStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.STALL0 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1EnableStalled(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:119:55: error: 'usb' was not declared in this scope
119 | inline void epBank1EnableStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.STALL1 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0EnableTransferComplete(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:120:55: error: 'usb' was not declared in this scope
120 | inline void epBank0EnableTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.TRCPT0 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1EnableTransferComplete(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:121:55: error: 'usb' was not declared in this scope
121 | inline void epBank1EnableTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENSET.bit.TRCPT1 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0DisableSetupReceived(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:123:56: error: 'usb' was not declared in this scope
123 | inline void epBank0DisableSetupReceived(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.RXSTP = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0DisableStalled(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:124:56: error: 'usb' was not declared in this scope
124 | inline void epBank0DisableStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.STALL0 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1DisableStalled(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:125:56: error: 'usb' was not declared in this scope
125 | inline void epBank1DisableStalled(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.STALL1 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0DisableTransferComplete(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:126:56: error: 'usb' was not declared in this scope
126 | inline void epBank0DisableTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.TRCPT0 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1DisableTransferComplete(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:127:56: error: 'usb' was not declared in this scope
127 | inline void epBank1DisableTransferComplete(ep_t ep) { usb.DeviceEndpoint[ep].EPINTENCLR.bit.TRCPT1 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank0IsReady(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:130:50: error: 'usb' was not declared in this scope
130 | inline bool epBank0IsReady(ep_t ep) { return usb.DeviceEndpoint[ep].EPSTATUS.bit.BK0RDY; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'bool USBDevice_SAMD21G18x::epBank1IsReady(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:131:50: error: 'usb' was not declared in this scope
131 | inline bool epBank1IsReady(ep_t ep) { return usb.DeviceEndpoint[ep].EPSTATUS.bit.BK1RDY; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetReady(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:132:43: error: 'usb' was not declared in this scope
132 | inline void epBank0SetReady(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSSET.bit.BK0RDY = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetReady(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:133:43: error: 'usb' was not declared in this scope
133 | inline void epBank1SetReady(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSSET.bit.BK1RDY = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0ResetReady(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:134:43: error: 'usb' was not declared in this scope
134 | inline void epBank0ResetReady(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSCLR.bit.BK0RDY = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1ResetReady(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:135:43: error: 'usb' was not declared in this scope
135 | inline void epBank1ResetReady(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSCLR.bit.BK1RDY = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetStallReq(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:137:46: error: 'usb' was not declared in this scope
137 | inline void epBank0SetStallReq(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSSET.bit.STALLRQ0 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetStallReq(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:138:46: error: 'usb' was not declared in this scope
138 | inline void epBank1SetStallReq(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSSET.bit.STALLRQ1 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0ResetStallReq(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:139:46: error: 'usb' was not declared in this scope
139 | inline void epBank0ResetStallReq(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSCLR.bit.STALLRQ0 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1ResetStallReq(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:140:46: error: 'usb' was not declared in this scope
140 | inline void epBank1ResetStallReq(ep_t ep) { usb.DeviceEndpoint[ep].EPSTATUSCLR.bit.STALLRQ1 = 1; }
| ^~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'uint16_t USBDevice_SAMD21G18x::epBank0ByteCount(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:143:53: error: 'EP' was not declared in this scope; did you mean 'EP0'?
143 | inline uint16_t epBank0ByteCount(ep_t ep) { return EP[ep].DeviceDescBank[0].PCKSIZE.bit.BYTE_COUNT; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'uint16_t USBDevice_SAMD21G18x::epBank1ByteCount(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:144:53: error: 'EP' was not declared in this scope; did you mean 'EP0'?
144 | inline uint16_t epBank1ByteCount(ep_t ep) { return EP[ep].DeviceDescBank[1].PCKSIZE.bit.BYTE_COUNT; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetByteCount(ep_t, uint16_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:145:58: error: 'EP' was not declared in this scope; did you mean 'EP0'?
145 | inline void epBank0SetByteCount(ep_t ep, uint16_t bc) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.BYTE_COUNT = bc; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetByteCount(ep_t, uint16_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:146:58: error: 'EP' was not declared in this scope; did you mean 'EP0'?
146 | inline void epBank1SetByteCount(ep_t ep, uint16_t bc) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.BYTE_COUNT = bc; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetMultiPacketSize(ep_t, uint16_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:147:63: error: 'EP' was not declared in this scope; did you mean 'EP0'?
147 | inline void epBank0SetMultiPacketSize(ep_t ep, uint16_t s) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.MULTI_PACKET_SIZE = s; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetMultiPacketSize(ep_t, uint16_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:148:63: error: 'EP' was not declared in this scope; did you mean 'EP0'?
148 | inline void epBank1SetMultiPacketSize(ep_t ep, uint16_t s) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.MULTI_PACKET_SIZE = s; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetAddress(ep_t, void*)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:150:55: error: 'EP' was not declared in this scope; did you mean 'EP0'?
150 | inline void epBank0SetAddress(ep_t ep, void *addr) { EP[ep].DeviceDescBank[0].ADDR.reg = (uint32_t)addr; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetAddress(ep_t, void*)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:151:55: error: 'EP' was not declared in this scope; did you mean 'EP0'?
151 | inline void epBank1SetAddress(ep_t ep, void *addr) { EP[ep].DeviceDescBank[1].ADDR.reg = (uint32_t)addr; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0SetSize(ep_t, uint16_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:152:55: error: 'EP' was not declared in this scope; did you mean 'EP0'?
152 | inline void epBank0SetSize(ep_t ep, uint16_t size) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.SIZE = EP_PCKSIZE_SIZE(size); }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1SetSize(ep_t, uint16_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:153:55: error: 'EP' was not declared in this scope; did you mean 'EP0'?
153 | inline void epBank1SetSize(ep_t ep, uint16_t size) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.SIZE = EP_PCKSIZE_SIZE(size); }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0DisableAutoZLP(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:168:47: error: 'EP' was not declared in this scope; did you mean 'EP0'?
168 | inline void epBank0DisableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.AUTO_ZLP = 0; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1DisableAutoZLP(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:169:47: error: 'EP' was not declared in this scope; did you mean 'EP0'?
169 | inline void epBank1DisableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.AUTO_ZLP = 0; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank0EnableAutoZLP(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:170:47: error: 'EP' was not declared in this scope; did you mean 'EP0'?
170 | inline void epBank0EnableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[0].PCKSIZE.bit.AUTO_ZLP = 1; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In member function 'void USBDevice_SAMD21G18x::epBank1EnableAutoZLP(ep_t)':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:171:47: error: 'EP' was not declared in this scope; did you mean 'EP0'?
171 | inline void epBank1EnableAutoZLP(ep_t ep) { EP[ep].DeviceDescBank[1].PCKSIZE.bit.AUTO_ZLP = 1; }
| ^~
| EP0
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In constructor '__Guard::__Guard()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:188:22: error: '__get_PRIMASK' was not declared in this scope
188 | __Guard() : primask(__get_PRIMASK()), loops(1) {
| ^~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:189:3: error: '__disable_irq' was not declared in this scope
189 | __disable_irq();
| ^~~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h: In destructor '__Guard::~__Guard()':
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:193:4: error: '__enable_irq' was not declared in this scope
193 | __enable_irq();
| ^~~~~~~~~~~~
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/SAMD21_USBDevice.h:195:4: error: '__ISB' was not declared in this scope
195 | __ISB();
| ^~~~~
In file included from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/USB_host.h:23,
from /home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/Arduino.h:159,
from /tmp/arduino_build_918341/sketch/Blink.ino.cpp:1:
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/samd21_host.h: At global scope:
/home/jepler/Arduino/hardware/adafruit/ArduinoCore-samd/cores/arduino/USB/samd21_host.h:26:49: error: 'UsbHostDescriptor' does not name a type
26 | extern __attribute__((__aligned__(4))) volatile UsbHostDescriptor usb_pipe_table[USB_EPT_NUM];
| ^~~~~~~~~~~~~~~~~
exit status 1
Error compiling for board Adafruit Feather M4 CAN (SAMD51).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment