USB configuration file.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "compiler.h"
#include "sysclk_auto.h"
#include "udi_dfu_atmel_conf.h"
#include "main.h"
#include "conf_isp.h"
Macros | |
#define | sysclk_disable_usb sysclk_auto_disable_usb |
#define | sysclk_enable_usb sysclk_auto_enable_usb |
To reduce the code size, the interrupt register management from IAR is not used. More... | |
#define | USB_DEVICE_VENDOR_ID USB_VID_ATMEL |
USB Device Configuration. More... | |
#define | USB_DEVICE_MAJOR_VERSION (BOOTLOADER_VERSION>>4) |
#define | USB_DEVICE_MINOR_VERSION (BOOTLOADER_VERSION&0x0F) |
#define | USB_DEVICE_POWER 100 |
#define | USB_DEVICE_MANUFACTURE_NAME "ATMEL" |
#define | USB_DEVICE_ATTR USB_CONFIG_ATTR_SELF_POWERED |
#define | UDC_VBUS_EVENT(b_vbus_high) |
Device speeds support Only Full speed is authorized on DFU ATMEL Because FLIP supports only full speed Also: More... | |
#define | UDI_DFU_ENABLE_EXT() true |
USB Interface Configuration. More... | |
#define | UDI_DFU_DISABLE_EXT() |
#define | FLIP_PROTOCOL_VERSION FLIP_PROTOCOL_VERSION_2 |
FLIP protocol version to use. More... | |
#define | UDI_DFU_ATMEL_PROTOCOL_2_SPLIT_ERASE_CHIP |
#define | UDD_NO_SLEEP_MGR |
USB Device Driver Configuration. More... | |
#define FLIP_PROTOCOL_VERSION FLIP_PROTOCOL_VERSION_2 |
FLIP protocol version to use.
#define sysclk_disable_usb sysclk_auto_disable_usb |
Referenced by udd_disable().
#define sysclk_enable_usb sysclk_auto_enable_usb |
To reduce the code size, the interrupt register management from IAR is not used.
To link service clock routines used by usb driver to specific clock management
Referenced by udd_enable().
#define UDC_VBUS_EVENT | ( | b_vbus_high | ) |
Device speeds support Only Full speed is authorized on DFU ATMEL Because FLIP supports only full speed Also:
#define UDD_NO_SLEEP_MGR |
USB Device Driver Configuration.
#define UDI_DFU_ATMEL_PROTOCOL_2_SPLIT_ERASE_CHIP |
#define UDI_DFU_DISABLE_EXT | ( | ) |
Referenced by udi_dfu_atmel_disable().
#define UDI_DFU_ENABLE_EXT | ( | ) | true |
USB Interface Configuration.
Configuration of DFU interfaceInterface callback definition
Referenced by udi_dfu_atmel_enable().
#define USB_DEVICE_ATTR USB_CONFIG_ATTR_SELF_POWERED |
#define USB_DEVICE_MAJOR_VERSION (BOOTLOADER_VERSION>>4) |
#define USB_DEVICE_MANUFACTURE_NAME "ATMEL" |
#define USB_DEVICE_MINOR_VERSION (BOOTLOADER_VERSION&0x0F) |
#define USB_DEVICE_POWER 100 |
#define USB_DEVICE_VENDOR_ID USB_VID_ATMEL |
USB Device Configuration.
Device definition (mandatory)