Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

been removed. As such, 16-bit applications using interrupt mode must now define the USB interrupt handler function in the
application space and call the USBDeviceTasks() function:
#if defined(USB_INTERRUPT)
void __attribute__((interrupt,auto_psv)) _USB1Interrupt()
{
USBDeviceTasks();
}
#endif
All 16-bit host applications:
Previous versions of the stack redefined the USB interrupt vector function, _USB1Interrupt(), in the host stack in order to
handle USB interrupts. The side effect, however, is that since the host stack took control over the USB interrupt vector, dual
role or OTG solutions could not use interrupt mode for their peripheral/device operation. In this release of the stack this
behavior has been changed so that the host stack doesn't take control over the USB interrupt vector. As such, 16-bit
applications must now define the USB interrupt handler function in the application space and call the
USB_HostInterruptHandler() function:
void __attribute__((interrupt,auto_psv)) _USB1Interrupt()
{
USB_HostInterruptHandler();
}
Include paths
Since the overall folder structure of the MLA has changed, if porting between two versions of the USB Library, a user will
need to modify the include paths so that the application points to the new library folder and to the application space. To point
to the library, the include path should have a link to the "<MLA install directory>\framework" folder. To include a USB header
file you would designate the "usb\" folder before specifying the header file required.
Example - #include "usb\usb.h"
1.3.9.2 From v2.9i to v2.9j
No changes required.
However, if using the new HID bootloader features for PIC18 devices, you must rebuild both the bootloader firmware, and
the application firmware project (using the updated vector remapping section from the main.c file of the application project).
You must also use the updated HID bootloader firmware + application firmware with the updated HID bootloader cross
platform software.
1.3.9.3 From v2.9h to v2.9i
No changes required.
1.3.9.4 From v2.9g to v2.9h
No changes required.
1.3.9.5 From v2.9f to v2.9g
No changes required.
1.3 Release Notes MLA - USB Library Help Library Migration
32

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh