Example source code for MAXREFDES101.

Dependencies:   max32630fthr Adafruit_FeatherOLED USBDevice

Committer:
phonemacro
Date:
Sat Sep 28 04:17:46 2019 +0000
Revision:
4:fd2b2de65af2
Parent:
1:f60eafbf009a
Move initialization of variables to constructor of DSInterface.cpp instead of DSInterface.h; Set the MAXIM_PLATFORM_NAME to Pegasus

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gmehmet 1:f60eafbf009a 1 diff -r c5e178adb138 USBDevice/USBHAL_Maxim.cpp
gmehmet 1:f60eafbf009a 2 --- a/USBDevice/USBHAL_Maxim.cpp Fri Nov 11 17:59:00 2016 +0000
gmehmet 1:f60eafbf009a 3 +++ b/USBDevice/USBHAL_Maxim.cpp Thu Mar 30 11:14:58 2017 +0300
gmehmet 1:f60eafbf009a 4 @@ -141,8 +141,13 @@
gmehmet 1:f60eafbf009a 5
gmehmet 1:f60eafbf009a 6 // attach IRQ handler and enable interrupts
gmehmet 1:f60eafbf009a 7 instance = this;
gmehmet 1:f60eafbf009a 8 +#if defined(TARGET_MAX32630)
gmehmet 1:f60eafbf009a 9 NVIC_SetVector(USB_IRQn, &_usbisr);
gmehmet 1:f60eafbf009a 10 +#else
gmehmet 1:f60eafbf009a 11 + NVIC_SetVector(USB_IRQn, (uint32_t)&_usbisr);
gmehmet 1:f60eafbf009a 12 +#endif
gmehmet 1:f60eafbf009a 13 NVIC_EnableIRQ(USB_IRQn);
gmehmet 1:f60eafbf009a 14 +
gmehmet 1:f60eafbf009a 15 }
gmehmet 1:f60eafbf009a 16
gmehmet 1:f60eafbf009a 17 USBHAL::~USBHAL(void)