This file contains the possible external configuration of the USB.
Definition in file conf_usb.h.
#include "compiler.h"
#include "board.h"
#include "print_funcs.h"
#include "usb_ids.h"
Go to the source code of this file.
Defines | |
| #define | CLASS_SUBCLASS_PROTOCOL |
| CLASS/SUBCLASS/PROTOCOL supported table list. | |
| #define | DEVICE_ADDRESS 0x05 |
| The address that will be assigned to the connected device. | |
| #define | HOST_AUTO_CFG_ENDPOINT ENABLE |
| Try to configure the host pipe according to the device descriptors received. | |
| #define | HOST_CONTINUOUS_SOF_INTERRUPT ENABLE |
| Host Start-of-Frame interrupt always enabled. | |
| #define | Host_device_class_not_supported_action() |
| #define | Host_device_connection_action() |
| #define | Host_device_disconnection_action() (cdc_new_device_connected = FALSE, cdc_connected = FALSE) |
| #define | Host_device_error_action() |
| #define | Host_device_not_supported_action() |
| #define | Host_device_supported_action() |
| #define | HOST_ERROR_RESTART ENABLE |
| When host error state detected, go to detached state. | |
| #define | Host_hwup_action() |
| #define | Host_new_device_connection_action() (cdc_new_device_connected = TRUE) |
| #define | Host_sof_action() host_sof_action() |
| #define | HOST_STRICT_VID_PID_TABLE DISABLE |
| The host controller will be limited to the strict VID/PID list. | |
| #define | Host_suspend_action() |
| #define | Host_user_check_class_action(x) |
| During the verification of the device class by the host (after device enumeration), this call-back function allows to look more deeply into the configuration descriptor. | |
| #define | ID_PIN_CHANGE_GENERATE_RESET ENABLE |
| Force CPU reset upon ID pin change. | |
| #define | INT_EP 0x03 |
| #define | LOG_STR(str) |
| Debug trace macro. | |
| #define | MAX_EP_PER_INTERFACE 3 |
| The maximal number of endpoints per interface supported. | |
| #define | MAX_INTERFACE_SUPPORTED 0x03 |
| The maximal number of interfaces that can be supported (composite device). | |
| #define | NAK_RECEIVE_TIMEOUT 0x0FFF |
| Number of NAK handshakes before time-out for receive functions (up to 0xFFFF). | |
| #define | NAK_SEND_TIMEOUT 0x0FFF |
| Number of NAK handshakes before time-out for transmit functions (up to 0xFFFF). | |
| #define | NAK_TIMEOUT_ENABLE DISABLE |
| Enable cpt NAK time-out for host transfer. | |
| #define | NB_ENDPOINTS 4 |
| #define | RX_EP 0x02 |
| #define | SIZEOF_DATA_STAGE 250 |
| The size of RAM buffer reserved for descriptor handling. | |
| #define | TIMEOUT_DELAY 10 |
| Delay 1/4 s (250 ms) before time-out value. | |
| #define | TIMEOUT_DELAY_ENABLE ENABLE |
| Enable time-out delay for host transfer. | |
| #define | TX_EP 0x01 |
| #define | USB_DEVICE_FEATURE ENABLED |
| ENABLE to activate the device software framework support. | |
| #define | USB_HOST_FEATURE ENABLED |
| ENABLE to activate the host software framework support. | |
| #define | USB_HOST_PIPE_INTERRUPT_TRANSFER DISABLE |
| USB host pipes transfers use USB communication interrupt (allows to use non-blocking functions). | |
| #define | Usb_id_transition_action() |
| #define | USB_INT_LEVEL AVR32_INTC_INT0 |
| USB interrupt priority level. | |
| #define | Usb_reset_action() |
| #define | Usb_resume_action() |
| #define | Usb_set_configuration_action() Usb_enable_sof_interrupt() |
| #define | Usb_sof_action() usb_sof_action() |
| #define | Usb_suspend_action() |
| #define | Usb_vbus_off_action() |
| #define | Usb_vbus_on_action() |
| #define | Usb_wake_up_action() |
| #define | User_configure_endpoint() |
| If no auto configuration of EP, map here user function. | |
| #define | VID_PID_TABLE {ATMEL_VID, 1, CDC_EXAMPLE_PID} |
| VID/PID supported table list. | |
Functions | |
| void | host_sof_action (void) |
| host_sof_action | |
| void | host_suspend_action (void) |
| void | usb_sof_action (void) |
| usb_sof_action | |
| void | usb_suspend_action (void) |
Variables | |
| volatile Bool | cdc_connected |
| volatile Bool | cdc_new_device_connected |
1.5.5