Merge pull request #4689 from dhalbert/dynamic-usb-descriptors
Dynamic USB descriptors
This commit is contained in:
commit
ebf9dcb47a
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -245,7 +245,6 @@ jobs:
|
|||||||
- "feather_mimxrt1011"
|
- "feather_mimxrt1011"
|
||||||
- "feather_mimxrt1062"
|
- "feather_mimxrt1062"
|
||||||
- "feather_nrf52840_express"
|
- "feather_nrf52840_express"
|
||||||
- "feather_radiofruit_zigbee"
|
|
||||||
- "feather_stm32f405_express"
|
- "feather_stm32f405_express"
|
||||||
- "fluff_m0"
|
- "fluff_m0"
|
||||||
- "gemma_m0"
|
- "gemma_m0"
|
||||||
|
@ -62,33 +62,4 @@ The tinyusb examples already include a "WebUSB serial" example.
|
|||||||
Basically, this feature was ported into CircuitPython by pulling code snippets out of the
|
Basically, this feature was ported into CircuitPython by pulling code snippets out of the
|
||||||
tinyusb example, and putting them where they best belonged in the CircuitPython codebase.
|
tinyusb example, and putting them where they best belonged in the CircuitPython codebase.
|
||||||
|
|
||||||
There was one complication:
|
### TODO: This needs to be reworked for dynamic USB descriptors.
|
||||||
|
|
||||||
tinyusb uses C preprocessor macros to define things like USB descriptors.
|
|
||||||
|
|
||||||
CircuitPython uses a Python program (tools/gen_usb_descriptor.py) to create USB descriptors (etc.)
|
|
||||||
using "helper objects" from another repo (adafruit_usb_descriptor). This means some of the example
|
|
||||||
code had to be adapted to the new programing model, and gen_usb_descriptor gained new command-line
|
|
||||||
options to control the generated code.
|
|
||||||
|
|
||||||
The generated files go into the "build" directory, look for autogen_usb_descriptor.c and
|
|
||||||
genhdr/autogen_usb_descriptor.h.
|
|
||||||
|
|
||||||
|
|
||||||
Also worth pointing out - the re-use of the CDC connect/disconnect mechanism is not actually part
|
|
||||||
of the WebUSB standard, it's more of "common idiom". We make use of it here because we need to know
|
|
||||||
when we should be paying attention to the WebUSB serial interface, and when we should ignore it..
|
|
||||||
|
|
||||||
## Possible future work areas
|
|
||||||
|
|
||||||
The current code uses the existing Python infrastructure to create the Interface descriptor, but
|
|
||||||
simply outputs the code snippets from the original tinyusb demo code to create the WEBUSB_URL,
|
|
||||||
BOS, and MS_OS_20 descriptors. I suppose additional work could be done to add these to the
|
|
||||||
adafruit_usb_descriptor project, and then gen_usb_descriptor.py could be modified to make use
|
|
||||||
of them.
|
|
||||||
|
|
||||||
Program gen_usb_descriptor.py creates objects for most interface types, regardless of whether or
|
|
||||||
not they are actually enabled. This increases the size of a generated string table. I made the
|
|
||||||
new vendor-interface-related code not do this (because some of the ARM platforms would no longer
|
|
||||||
build), but I did not go back and do this for the other interface types (CDC, MIDI, HID, etc.)
|
|
||||||
Some FLASH savings are probably possible if this is done.
|
|
||||||
|
@ -155,7 +155,8 @@ def get_settings_from_makefile(port_dir, board_name):
|
|||||||
|
|
||||||
settings = {}
|
settings = {}
|
||||||
for line in contents.stdout.split('\n'):
|
for line in contents.stdout.split('\n'):
|
||||||
m = re.match(r'^([A-Z][A-Z0-9_]*) = (.*)$', line)
|
# Handle both = and := definitions.
|
||||||
|
m = re.match(r'^([A-Z][A-Z0-9_]*) :?= (.*)$', line)
|
||||||
if m:
|
if m:
|
||||||
settings[m.group(1)] = m.group(2)
|
settings[m.group(1)] = m.group(2)
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 829ba0f0a2d8a63f7d0215c6c9fc821e14e52a93
|
Subproject commit de68b7d4575151c1648c734559e59c2932965939
|
@ -1 +1 @@
|
|||||||
Subproject commit cdf99447307473080b2f2e95e7c3667247095ac0
|
Subproject commit 5f382650e62e05cc72a67dbedce13d706d699621
|
@ -87,6 +87,10 @@ msgstr ""
|
|||||||
msgid "%q list must be a list"
|
msgid "%q list must be a list"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/usb_hid/Device.c
|
||||||
|
msgid "%q must be 1-255"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/memorymonitor/AllocationAlarm.c
|
#: shared-bindings/memorymonitor/AllocationAlarm.c
|
||||||
msgid "%q must be >= 0"
|
msgid "%q must be >= 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -99,6 +103,10 @@ msgstr ""
|
|||||||
msgid "%q must be >= 1"
|
msgid "%q must be >= 1"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/usb_hid/Device.c
|
||||||
|
msgid "%q must be None or 1-255"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/vectorio/Polygon.c
|
#: shared-module/vectorio/Polygon.c
|
||||||
msgid "%q must be a tuple of length 2"
|
msgid "%q must be a tuple of length 2"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -604,6 +612,11 @@ msgstr ""
|
|||||||
msgid "Can't set CCCD on local Characteristic"
|
msgid "Can't set CCCD on local Characteristic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/storage/__init__.c shared-bindings/usb_cdc/__init__.c
|
||||||
|
#: shared-bindings/usb_hid/__init__.c shared-bindings/usb_midi/__init__.c
|
||||||
|
msgid "Cannot change USB devices now"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Adapter.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Cannot create a new Adapter; use _bleio.adapter;"
|
msgid "Cannot create a new Adapter; use _bleio.adapter;"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -646,7 +659,7 @@ msgid "Cannot record to a file"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/storage/__init__.c
|
#: shared-module/storage/__init__.c
|
||||||
msgid "Cannot remount '/' when USB is active."
|
msgid "Cannot remount '/' when visible via USB."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/microcontroller/__init__.c
|
#: ports/atmel-samd/common-hal/microcontroller/__init__.c
|
||||||
@ -1576,6 +1589,11 @@ msgstr ""
|
|||||||
msgid "No long integer support"
|
msgid "No long integer support"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/usb_hid/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "No more than %d HID devices allowed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/wifi/Radio.c
|
#: shared-bindings/wifi/Radio.c
|
||||||
msgid "No network with that ssid"
|
msgid "No network with that ssid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2184,6 +2202,14 @@ msgstr ""
|
|||||||
msgid "USB Error"
|
msgid "USB Error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: supervisor/shared/safe_mode.c
|
||||||
|
msgid "USB devices need more endpoints than are available."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: supervisor/shared/safe_mode.c
|
||||||
|
msgid "USB devices specify too many interface names."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/UUID.c
|
#: shared-bindings/_bleio/UUID.c
|
||||||
msgid "UUID integer value must be 0-0xffff"
|
msgid "UUID integer value must be 0-0xffff"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -3497,6 +3523,10 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/usb_hid/__init__.c
|
||||||
|
msgid "non-Device in %q"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Connection.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
52
main.c
52
main.c
@ -95,8 +95,8 @@
|
|||||||
#include "shared-module/network/__init__.h"
|
#include "shared-module/network/__init__.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CIRCUITPY_USB_CDC
|
#if CIRCUITPY_USB_HID
|
||||||
#include "shared-module/usb_cdc/__init__.h"
|
#include "shared-module/usb_hid/__init__.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CIRCUITPY_WIFI
|
#if CIRCUITPY_WIFI
|
||||||
@ -299,6 +299,10 @@ STATIC bool run_code_py(safe_mode_t safe_mode) {
|
|||||||
supervisor_allocation* heap = allocate_remaining_memory();
|
supervisor_allocation* heap = allocate_remaining_memory();
|
||||||
start_mp(heap);
|
start_mp(heap);
|
||||||
|
|
||||||
|
#if CIRCUITPY_USB
|
||||||
|
usb_setup_with_vm();
|
||||||
|
#endif
|
||||||
|
|
||||||
found_main = maybe_run_list(supported_filenames, &result);
|
found_main = maybe_run_list(supported_filenames, &result);
|
||||||
#if CIRCUITPY_FULL_BUILD
|
#if CIRCUITPY_FULL_BUILD
|
||||||
if (!found_main){
|
if (!found_main){
|
||||||
@ -500,11 +504,15 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO(tannewt): Allocate temporary space to hold custom usb descriptors.
|
|
||||||
filesystem_flush();
|
filesystem_flush();
|
||||||
supervisor_allocation* heap = allocate_remaining_memory();
|
supervisor_allocation* heap = allocate_remaining_memory();
|
||||||
start_mp(heap);
|
start_mp(heap);
|
||||||
|
|
||||||
|
#if CIRCUITPY_USB
|
||||||
|
// Set up default USB values after boot.py VM starts but before running boot.py.
|
||||||
|
usb_set_defaults();
|
||||||
|
#endif
|
||||||
|
|
||||||
// TODO(tannewt): Re-add support for flashing boot error output.
|
// TODO(tannewt): Re-add support for flashing boot error output.
|
||||||
bool found_boot = maybe_run_list(boot_py_filenames, NULL);
|
bool found_boot = maybe_run_list(boot_py_filenames, NULL);
|
||||||
(void) found_boot;
|
(void) found_boot;
|
||||||
@ -517,7 +525,27 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
|
|||||||
boot_output_file = NULL;
|
boot_output_file = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if CIRCUITPY_USB
|
||||||
|
|
||||||
|
// Some data needs to be carried over from the USB settings in boot.py
|
||||||
|
// to the next VM, while the heap is still available.
|
||||||
|
// Its size can vary, so save it temporarily on the stack,
|
||||||
|
// and then when the heap goes away, copy it in into a
|
||||||
|
// storage_allocation.
|
||||||
|
|
||||||
|
size_t size = usb_boot_py_data_size();
|
||||||
|
uint8_t usb_boot_py_data[size];
|
||||||
|
usb_get_boot_py_data(usb_boot_py_data, size);
|
||||||
|
#endif
|
||||||
|
|
||||||
cleanup_after_vm(heap);
|
cleanup_after_vm(heap);
|
||||||
|
|
||||||
|
#if CIRCUITPY_USB
|
||||||
|
// Now give back the data we saved from the heap going away.
|
||||||
|
usb_return_boot_py_data(usb_boot_py_data, size);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -527,6 +555,11 @@ STATIC int run_repl(void) {
|
|||||||
filesystem_flush();
|
filesystem_flush();
|
||||||
supervisor_allocation* heap = allocate_remaining_memory();
|
supervisor_allocation* heap = allocate_remaining_memory();
|
||||||
start_mp(heap);
|
start_mp(heap);
|
||||||
|
|
||||||
|
#if CIRCUITPY_USB
|
||||||
|
usb_setup_with_vm();
|
||||||
|
#endif
|
||||||
|
|
||||||
autoreload_suspend();
|
autoreload_suspend();
|
||||||
new_status_color(REPL_RUNNING);
|
new_status_color(REPL_RUNNING);
|
||||||
if (pyexec_mode_kind == PYEXEC_MODE_RAW_REPL) {
|
if (pyexec_mode_kind == PYEXEC_MODE_RAW_REPL) {
|
||||||
@ -586,7 +619,14 @@ int __attribute__((used)) main(void) {
|
|||||||
|
|
||||||
run_boot_py(safe_mode);
|
run_boot_py(safe_mode);
|
||||||
|
|
||||||
// Start serial and HID after giving boot.py a chance to tweak behavior.
|
// Start USB after giving boot.py a chance to tweak behavior.
|
||||||
|
#if CIRCUITPY_USB
|
||||||
|
// Setup USB connection after heap is available.
|
||||||
|
// It needs the heap to build descriptors.
|
||||||
|
usb_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Set up any other serial connection.
|
||||||
serial_init();
|
serial_init();
|
||||||
|
|
||||||
#if CIRCUITPY_BLEIO
|
#if CIRCUITPY_BLEIO
|
||||||
@ -640,6 +680,10 @@ void gc_collect(void) {
|
|||||||
common_hal_bleio_gc_collect();
|
common_hal_bleio_gc_collect();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CIRCUITPY_USB_HID
|
||||||
|
usb_hid_gc_collect();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CIRCUITPY_WIFI
|
#if CIRCUITPY_WIFI
|
||||||
common_hal_wifi_gc_collect();
|
common_hal_wifi_gc_collect();
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,413 +0,0 @@
|
|||||||
/* Auto-generated config file hpl_usb_config.h */
|
|
||||||
#ifndef HPL_USB_CONFIG_H
|
|
||||||
#define HPL_USB_CONFIG_H
|
|
||||||
|
|
||||||
// CIRCUITPY:
|
|
||||||
|
|
||||||
// Use 64-byte USB buffers for endpoint directions that are in use. They're set to 0 below otherwise.
|
|
||||||
|
|
||||||
#include "genhdr/autogen_usb_descriptor.h"
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_1_OUT_USED) && USB_ENDPOINT_1_OUT_USED
|
|
||||||
#define CONF_USB_EP1_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_1_IN_USED) && USB_ENDPOINT_1_IN_USED
|
|
||||||
#define CONF_USB_EP1_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_2_OUT_USED) && USB_ENDPOINT_2_OUT_USED
|
|
||||||
#define CONF_USB_EP2_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_2_IN_USED) && USB_ENDPOINT_2_IN_USED
|
|
||||||
#define CONF_USB_EP2_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_3_OUT_USED) && USB_ENDPOINT_3_OUT_USED
|
|
||||||
#define CONF_USB_EP3_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_3_IN_USED) && USB_ENDPOINT_3_IN_USED
|
|
||||||
#define CONF_USB_EP3_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_4_OUT_USED) && USB_ENDPOINT_4_OUT_USED
|
|
||||||
#define CONF_USB_EP4_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_4_IN_USED) && USB_ENDPOINT_4_IN_USED
|
|
||||||
#define CONF_USB_EP4_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_5_OUT_USED) && USB_ENDPOINT_5_OUT_USED
|
|
||||||
#define CONF_USB_EP5_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_5_IN_USED) && USB_ENDPOINT_5_IN_USED
|
|
||||||
#define CONF_USB_EP5_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_6_OUT_USED) && USB_ENDPOINT_6_OUT_USED
|
|
||||||
#define CONF_USB_EP6_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_6_IN_USED) && USB_ENDPOINT_6_IN_USED
|
|
||||||
#define CONF_USB_EP6_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_7_OUT_USED) && USB_ENDPOINT_7_OUT_USED
|
|
||||||
#define CONF_USB_EP7_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_7_IN_USED) && USB_ENDPOINT_7_IN_USED
|
|
||||||
#define CONF_USB_EP7_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
|
||||||
|
|
||||||
#define CONF_USB_N_0 0
|
|
||||||
#define CONF_USB_N_1 1
|
|
||||||
#define CONF_USB_N_2 2
|
|
||||||
#define CONF_USB_N_3 3
|
|
||||||
#define CONF_USB_N_4 4
|
|
||||||
#define CONF_USB_N_5 5
|
|
||||||
#define CONF_USB_N_6 6
|
|
||||||
#define CONF_USB_N_7 7
|
|
||||||
#define CONF_USB_N_8 8
|
|
||||||
#define CONF_USB_N_9 9
|
|
||||||
#define CONF_USB_N_10 10
|
|
||||||
#define CONF_USB_N_11 11
|
|
||||||
#define CONF_USB_N_12 12
|
|
||||||
#define CONF_USB_N_13 13
|
|
||||||
#define CONF_USB_N_14 14
|
|
||||||
#define CONF_USB_N_15 15
|
|
||||||
|
|
||||||
#define CONF_USB_D_EP_N_MAX (USB_EPT_NUM - 1)
|
|
||||||
#define CONF_USB_D_N_EP_MAX (CONF_USB_D_EP_N_MAX * 2 - 1)
|
|
||||||
|
|
||||||
// <h> USB Device HAL Configuration
|
|
||||||
|
|
||||||
// <y> Max number of endpoints supported
|
|
||||||
// <i> Limits the number of endpoints (described by EP address) can be used in app.
|
|
||||||
// NOTE(tannewt): This not only limits the number of endpoints but also the
|
|
||||||
// addresses. In other words, even if you use endpoint 6 you need to set this to 11.
|
|
||||||
// <CONF_USB_N_1"> 1 (EP0 only)
|
|
||||||
// <CONF_USB_N_2"> 2 (EP0 + 1 endpoint)
|
|
||||||
// <CONF_USB_N_3"> 3 (EP0 + 2 endpoints)
|
|
||||||
// <CONF_USB_N_4"> 4 (EP0 + 3 endpoints)
|
|
||||||
// <CONF_USB_N_5"> 5 (EP0 + 4 endpoints)
|
|
||||||
// <CONF_USB_N_6"> 6 (EP0 + 5 endpoints)
|
|
||||||
// <CONF_USB_N_7"> 7 (EP0 + 6 endpoints)
|
|
||||||
// <CONF_USB_N_8"> 8 (EP0 + 7 endpoints)
|
|
||||||
// <CONF_USB_D_N_EP_MAX"> Max possible (by "Max Endpoint Number" config)
|
|
||||||
// <id> usbd_num_ep_sp
|
|
||||||
#ifndef CONF_USB_D_NUM_EP_SP
|
|
||||||
#define CONF_USB_D_NUM_EP_SP CONF_USB_D_N_EP_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <y> Max Endpoint Number supported
|
|
||||||
// <i> Limits the max endpoint number.
|
|
||||||
// <i> USB endpoint address is constructed by direction and endpoint number. Bit 8 of address set indicates the direction is IN. E.g., EP0x81 and EP0x01 have the same endpoint number, 1.
|
|
||||||
// <i> Reduce the value according to specific device design, to cut-off memory usage.
|
|
||||||
// <CONF_USB_N_0"> 0 (only EP0)
|
|
||||||
// <CONF_USB_N_1"> 1 (EP 0x81 or 0x01)
|
|
||||||
// <CONF_USB_N_2"> 2 (EP 0x82 or 0x02)
|
|
||||||
// <CONF_USB_N_3"> 3 (EP 0x83 or 0x03)
|
|
||||||
// <CONF_USB_N_4"> 4 (EP 0x84 or 0x04)
|
|
||||||
// <CONF_USB_N_5"> 5 (EP 0x85 or 0x05)
|
|
||||||
// <CONF_USB_N_6"> 6 (EP 0x86 or 0x06)
|
|
||||||
// <CONF_USB_N_7"> 7 (EP 0x87 or 0x07)
|
|
||||||
// <CONF_USB_EP_N_MAX"> Max possible (by HW)
|
|
||||||
// <i> The number of physical endpoints - 1
|
|
||||||
// <id> usbd_arch_max_ep_n
|
|
||||||
#ifndef CONF_USB_D_MAX_EP_N
|
|
||||||
#define CONF_USB_D_MAX_EP_N CONF_USB_D_EP_N_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <y> USB Speed Limit
|
|
||||||
// <i> Limits the working speed of the device.
|
|
||||||
// <USB_SPEED_FS"> Full speed
|
|
||||||
// <USB_SPEED_LS"> Low Speed
|
|
||||||
// <id> usbd_arch_speed
|
|
||||||
#ifndef CONF_USB_D_SPEED
|
|
||||||
#define CONF_USB_D_SPEED USB_SPEED_FS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP0
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> EP0 is default control endpoint, so cache must be used to be able to receive SETUP packet at any time.
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <id> usb_arch_ep0_cache
|
|
||||||
#ifndef CONF_USB_EP0_CACHE
|
|
||||||
#define CONF_USB_EP0_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <h> Cache configuration EP1
|
|
||||||
// <o> Cache buffer size for EP1 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep1_cache
|
|
||||||
#ifndef CONF_USB_EP1_CACHE
|
|
||||||
#define CONF_USB_EP1_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP1 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep1_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP1_I_CACHE
|
|
||||||
#define CONF_USB_EP1_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP2
|
|
||||||
// <o> Cache buffer size for EP2 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep2_cache
|
|
||||||
#ifndef CONF_USB_EP2_CACHE
|
|
||||||
#define CONF_USB_EP2_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP2 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep2_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP2_I_CACHE
|
|
||||||
#define CONF_USB_EP2_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP3
|
|
||||||
// <o> Cache buffer size for EP3 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep3_cache
|
|
||||||
#ifndef CONF_USB_EP3_CACHE
|
|
||||||
#define CONF_USB_EP3_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP3 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep3_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP3_I_CACHE
|
|
||||||
#define CONF_USB_EP3_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP4
|
|
||||||
// <o> Cache buffer size for EP4 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep4_cache
|
|
||||||
#ifndef CONF_USB_EP4_CACHE
|
|
||||||
#define CONF_USB_EP4_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP4 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep4_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP4_I_CACHE
|
|
||||||
#define CONF_USB_EP4_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP5
|
|
||||||
// <o> Cache buffer size for EP5 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep5_cache
|
|
||||||
#ifndef CONF_USB_EP5_CACHE
|
|
||||||
#define CONF_USB_EP5_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP5 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep5_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP5_I_CACHE
|
|
||||||
#define CONF_USB_EP5_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP6
|
|
||||||
// <o> Cache buffer size for EP6 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep6_cache
|
|
||||||
#ifndef CONF_USB_EP6_CACHE
|
|
||||||
#define CONF_USB_EP6_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP6 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep6_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP6_I_CACHE
|
|
||||||
#define CONF_USB_EP6_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP7
|
|
||||||
// <o> Cache buffer size for EP7 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep7_cache
|
|
||||||
#ifndef CONF_USB_EP7_CACHE
|
|
||||||
#define CONF_USB_EP7_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP7 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep7_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP7_I_CACHE
|
|
||||||
#define CONF_USB_EP7_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <<< end of configuration section >>>
|
|
||||||
|
|
||||||
#endif // HPL_USB_CONFIG_H
|
|
@ -1,850 +0,0 @@
|
|||||||
/* Auto-generated config file usbd_config.h */
|
|
||||||
#ifndef USBD_CONFIG_H
|
|
||||||
#define USBD_CONFIG_H
|
|
||||||
|
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
|
||||||
|
|
||||||
// ---- USB Device Stack Core Options ----
|
|
||||||
|
|
||||||
// <q> High Speed Support
|
|
||||||
// <i> Enable high speed specific descriptors support, e.g., DeviceQualifierDescriptor and OtherSpeedConfiguration Descriptor.
|
|
||||||
// <i> High speed support require descriptors description array on start, for LS/FS and HS support in first and second place.
|
|
||||||
// <id> usbd_hs_sp
|
|
||||||
#ifndef CONF_USBD_HS_SP
|
|
||||||
#define CONF_USBD_HS_SP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ---- USB Device Stack Composite Options ----
|
|
||||||
|
|
||||||
// <e> Enable String Descriptors
|
|
||||||
// <id> usb_composite_str_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_STR_EN
|
|
||||||
#define CONF_USB_COMPOSITE_STR_EN 0
|
|
||||||
#endif
|
|
||||||
// <s> Language IDs
|
|
||||||
// <i> Language IDs in c format, split by comma (E.g., 0x0409 ...)
|
|
||||||
// <id> usb_composite_langid
|
|
||||||
#ifndef CONF_USB_COMPOSITE_LANGID
|
|
||||||
#define CONF_USB_COMPOSITE_LANGID "0x0409"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_LANGID_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_LANGID_DESC
|
|
||||||
#endif
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <h> Composite Device Descriptor
|
|
||||||
|
|
||||||
// <o> bcdUSB
|
|
||||||
// <0x0200=> USB 2.0 version
|
|
||||||
// <0x0210=> USB 2.1 version
|
|
||||||
// <id> usb_composite_bcdusb
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCDUSB
|
|
||||||
#define CONF_USB_COMPOSITE_BCDUSB 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bMaxPackeSize0
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <id> usb_composite_bmaxpksz0
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMAXPKSZ0
|
|
||||||
#define CONF_USB_COMPOSITE_BMAXPKSZ0 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> idVender <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_idvender
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IDVENDER
|
|
||||||
#define CONF_USB_COMPOSITE_IDVENDER 0x3eb
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> idProduct <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_idproduct
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IDPRODUCT
|
|
||||||
#define CONF_USB_COMPOSITE_IDPRODUCT 0x2421
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bcdDevice <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_bcddevice
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCDDEVICE
|
|
||||||
#define CONF_USB_COMPOSITE_BCDDEVICE 0x100
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iManufact
|
|
||||||
// <id> usb_composite_imanufact_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_EN
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT (CONF_USB_COMPOSITE_IMANUFACT_EN * (CONF_USB_COMPOSITE_IMANUFACT_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iManufact
|
|
||||||
// <id> usb_composite_imanufact_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_STR
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_STR "Atmel"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iProduct
|
|
||||||
// <id> usb_composite_iproduct_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_EN
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT \
|
|
||||||
(CONF_USB_COMPOSITE_IPRODUCT_EN * (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iProduct
|
|
||||||
// <id> usb_composite_iproduct_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_STR
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_STR "Composite Demo"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iSerialNum
|
|
||||||
// <id> usb_composite_iserialnum_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_EN
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM \
|
|
||||||
(CONF_USB_COMPOSITE_ISERIALNUM_EN \
|
|
||||||
* (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN + CONF_USB_COMPOSITE_ISERIALNUM_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iSerialNum
|
|
||||||
// <id> usb_composite_iserialnum_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_STR
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_STR "123456789ABCDEF"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <o> bNumConfigurations <0x01-0xFF>
|
|
||||||
// <id> usb_composite_bnumconfig
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BNUMCONFIG
|
|
||||||
#define CONF_USB_COMPOSITE_BNUMCONFIG 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Composite Configuration Descriptor
|
|
||||||
// <o> bConfigurationValue <0x01-0xFF>
|
|
||||||
// <id> usb_composite_bconfigval
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCONFIGVAL
|
|
||||||
#define CONF_USB_COMPOSITE_BCONFIGVAL 0x1
|
|
||||||
#endif
|
|
||||||
// <e> Enable string descriptor of iConfig
|
|
||||||
// <id> usb_composite_iconfig_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_EN
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG \
|
|
||||||
(CONF_USB_COMPOSITE_ICONFIG_EN \
|
|
||||||
* (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN + CONF_USB_COMPOSITE_ISERIALNUM_EN \
|
|
||||||
+ CONF_USB_COMPOSITE_ICONFIG_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iConfig
|
|
||||||
// <id> usb_composite_iconfig_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_STR
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_STR ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <o> bmAttributes
|
|
||||||
// <0x80=> Bus power supply, not support for remote wakeup
|
|
||||||
// <0xA0=> Bus power supply, support for remote wakeup
|
|
||||||
// <0xC0=> Self powered, not support for remote wakeup
|
|
||||||
// <0xE0=> Self powered, support for remote wakeup
|
|
||||||
// <id> usb_composite_bmattri
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMATTRI
|
|
||||||
#define CONF_USB_COMPOSITE_BMATTRI 0x80
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bMaxPower <0x00-0xFF>
|
|
||||||
// <id> usb_composite_bmaxpower
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMAXPOWER
|
|
||||||
#define CONF_USB_COMPOSITE_BMAXPOWER 0x32
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <e> CDC ACM Support
|
|
||||||
// <id> usb_composite_cdc_acm_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_EN
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_EN 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Comm Interrupt IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_EPADDR 0x82
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Comm Interrupt IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_comm_int_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_bulkin_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_EPADDR 0x81
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_builin_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_builin_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ_HS 0x0200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_bulkout_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_EPADDR 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_buckout_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_buckout_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ_HS 0x0200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> CDC ACM Echo Demo generation
|
|
||||||
// <id> conf_usb_composite_cdc_echo_demo
|
|
||||||
// <i> Invoke cdcdf_acm_demo_init(buf[wMaxPacketSize]) to enable the echo demo.
|
|
||||||
// <i> Buf is packet buffer for data receive and echo back.
|
|
||||||
// <i> The buffer is 4 byte aligned to support DMA.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ECHO_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ECHO_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Mouse Support
|
|
||||||
// <id> usb_composite_hid_mouse_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Mouse INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_mouse_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_INTIN_EPADDR 0x83
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Mouse INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_mouse_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_INTIN_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> HID Mouse Move Demo generation
|
|
||||||
// <id> conf_usb_composite_hid_mouse_demo
|
|
||||||
// <i> Invoke hiddf_demo_init(button1, button2, button3) to enabled the move demo.
|
|
||||||
// <i> Button1 and button3 are the pins used for mouse moving left and right.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Keyboard Support
|
|
||||||
// <id> usb_composite_hid_keyboard_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_EPADDR 0x84
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intout_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_EPADDR 0x2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intout_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> HID Keyboard Caps Lock Demo generation
|
|
||||||
// <id> conf_usb_composite_hid_keyboard_demo
|
|
||||||
// <i> Invoke hiddf_demo_init(button1, button2, button3) to enabled the move demo.
|
|
||||||
// <i> Buffon2 is the pin used for keyboard CAPS LOCK simulation.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Generic Support
|
|
||||||
// <id> usb_composite_hid_generic_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_REPORT_LEN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_REPORT_LEN 53
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_REPORT
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_REPORT \
|
|
||||||
0x06, 0xFF, 0xFF, 0x09, 0x01, 0xA1, 0x01, 0x09, 0x02, 0x09, 0x03, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, \
|
|
||||||
0x40, 0x81, 0x02, 0x09, 0x04, 0x09, 0x05, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x40, 0x91, 0x02, \
|
|
||||||
0x09, 0x06, 0x09, 0x07, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x04, 0xB1, 0x02, 0xC0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTIN_EPADDR 0x85
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTIN_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intout_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_EPADDR 0x3
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <id> usb_composite_hid_generic_intout_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> MSC Support
|
|
||||||
// <id> usb_composite_msc_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_EN
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK Endpoints wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulk_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ 0x0040
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK Endpoints wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulk_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ_HS 0x0200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulkin_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULKIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULKIN_EPADDR 0x86
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulkout_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULKOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULKOUT_EPADDR 0x04
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable Demo code for Disk LUN handling
|
|
||||||
// <id> usb_composite_msc_demo_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_LUN_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_LUN_DEMO 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk access cache/buffer of sectors if non-RAM disk (e.g., SD/MMC) enabled <1-64>
|
|
||||||
// <id> conf_usb_msc_lun_buf_sectors
|
|
||||||
#ifndef CONF_USB_MSC_LUN_BUF_SECTORS
|
|
||||||
#define CONF_USB_MSC_LUN_BUF_SECTORS 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable Demo for RAM Disk
|
|
||||||
// <id> conf_usb_msc_lun0_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN0_ENABLE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN0_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun0_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_RMB
|
|
||||||
#define CONF_USB_MSC_LUN0_RMB 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ISO
|
|
||||||
#define CONF_USB_MSC_LUN0_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN0_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN0_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_REPO
|
|
||||||
#define CONF_USB_MSC_LUN0_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN0_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN0_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN0_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <i> Windows will not show disk less than 20K, so 22K is used to reserve more RAM for APP
|
|
||||||
// <id> conf_usb_msc_lun0_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN0_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN0_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN0_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN0_CAPACITY * 1024 / CONF_USB_MSC_LUN0_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for SD/MMC Disk
|
|
||||||
// <i> SD/MMC stack must be added before enable SD/MMC demo
|
|
||||||
// <i> SD/MMC insert/eject not supported by this simple demo
|
|
||||||
// <id> conf_usb_msc_lun1_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN1_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN1_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <i> SD/MMC stack must be added before enable SD/MMC demo
|
|
||||||
// <i> SD/MMC insert/eject not supported by this simple demo
|
|
||||||
// <id> conf_usb_msc_lun1_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_RMB
|
|
||||||
#define CONF_USB_MSC_LUN1_RMB 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ISO
|
|
||||||
#define CONF_USB_MSC_LUN1_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN1_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN1_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_REPO
|
|
||||||
#define CONF_USB_MSC_LUN1_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN1_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN1_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN1_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN1_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN1_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN1_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN1_CAPACITY * 1024 / CONF_USB_MSC_LUN1_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for LUN 2
|
|
||||||
// <id> conf_usb_msc_lun2_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN2_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN2_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun2_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_RMB
|
|
||||||
#define CONF_USB_MSC_LUN2_RMB 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ISO
|
|
||||||
#define CONF_USB_MSC_LUN2_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN2_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN2_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_REPO
|
|
||||||
#define CONF_USB_MSC_LUN2_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN2_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN2_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN2_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <id> conf_usb_msc_lun2_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN2_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN2_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN2_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN2_CAPACITY * 1024 / CONF_USB_MSC_LUN2_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for LUN 3
|
|
||||||
// <id> conf_usb_msc_lun3_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN3_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN3_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun3_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_RMB
|
|
||||||
#define CONF_USB_MSC_LUN3_RMB 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ISO
|
|
||||||
#define CONF_USB_MSC_LUN3_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN3_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN3_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_REPO
|
|
||||||
#define CONF_USB_MSC_LUN3_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN3_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN3_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN3_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <id> conf_usb_msc_lun3_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN3_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN3_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN3_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN3_CAPACITY * 1024 / CONF_USB_MSC_LUN3_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <<< end of configuration section >>>
|
|
||||||
|
|
||||||
#endif // USBD_CONFIG_H
|
|
@ -1,413 +0,0 @@
|
|||||||
/* Auto-generated config file hpl_usb_config.h */
|
|
||||||
#ifndef HPL_USB_CONFIG_H
|
|
||||||
#define HPL_USB_CONFIG_H
|
|
||||||
|
|
||||||
// CIRCUITPY:
|
|
||||||
|
|
||||||
// Use 64-byte USB buffers for endpoint directions that are in use. They're set to 0 below otherwise.
|
|
||||||
|
|
||||||
#include "genhdr/autogen_usb_descriptor.h"
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_1_OUT_USED) && USB_ENDPOINT_1_OUT_USED
|
|
||||||
#define CONF_USB_EP1_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_1_IN_USED) && USB_ENDPOINT_1_IN_USED
|
|
||||||
#define CONF_USB_EP1_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_2_OUT_USED) && USB_ENDPOINT_2_OUT_USED
|
|
||||||
#define CONF_USB_EP2_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_2_IN_USED) && USB_ENDPOINT_2_IN_USED
|
|
||||||
#define CONF_USB_EP2_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_3_OUT_USED) && USB_ENDPOINT_3_OUT_USED
|
|
||||||
#define CONF_USB_EP3_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_3_IN_USED) && USB_ENDPOINT_3_IN_USED
|
|
||||||
#define CONF_USB_EP3_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_4_OUT_USED) && USB_ENDPOINT_4_OUT_USED
|
|
||||||
#define CONF_USB_EP4_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_4_IN_USED) && USB_ENDPOINT_4_IN_USED
|
|
||||||
#define CONF_USB_EP4_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_5_OUT_USED) && USB_ENDPOINT_5_OUT_USED
|
|
||||||
#define CONF_USB_EP5_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_5_IN_USED) && USB_ENDPOINT_5_IN_USED
|
|
||||||
#define CONF_USB_EP5_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_6_OUT_USED) && USB_ENDPOINT_6_OUT_USED
|
|
||||||
#define CONF_USB_EP6_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_6_IN_USED) && USB_ENDPOINT_6_IN_USED
|
|
||||||
#define CONF_USB_EP6_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_7_OUT_USED) && USB_ENDPOINT_7_OUT_USED
|
|
||||||
#define CONF_USB_EP7_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_7_IN_USED) && USB_ENDPOINT_7_IN_USED
|
|
||||||
#define CONF_USB_EP7_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
|
||||||
|
|
||||||
#define CONF_USB_N_0 0
|
|
||||||
#define CONF_USB_N_1 1
|
|
||||||
#define CONF_USB_N_2 2
|
|
||||||
#define CONF_USB_N_3 3
|
|
||||||
#define CONF_USB_N_4 4
|
|
||||||
#define CONF_USB_N_5 5
|
|
||||||
#define CONF_USB_N_6 6
|
|
||||||
#define CONF_USB_N_7 7
|
|
||||||
#define CONF_USB_N_8 8
|
|
||||||
#define CONF_USB_N_9 9
|
|
||||||
#define CONF_USB_N_10 10
|
|
||||||
#define CONF_USB_N_11 11
|
|
||||||
#define CONF_USB_N_12 12
|
|
||||||
#define CONF_USB_N_13 13
|
|
||||||
#define CONF_USB_N_14 14
|
|
||||||
#define CONF_USB_N_15 15
|
|
||||||
|
|
||||||
#define CONF_USB_D_EP_N_MAX (USB_EPT_NUM - 1)
|
|
||||||
#define CONF_USB_D_N_EP_MAX (CONF_USB_D_EP_N_MAX * 2 - 1)
|
|
||||||
|
|
||||||
// <h> USB Device HAL Configuration
|
|
||||||
|
|
||||||
// <y> Max number of endpoints supported
|
|
||||||
// <i> Limits the number of endpoints (described by EP address) can be used in app.
|
|
||||||
// NOTE(tannewt): This not only limits the number of endpoints but also the
|
|
||||||
// addresses. In other words, even if you use endpoint 6 you need to set this to 11.
|
|
||||||
// <CONF_USB_N_1"> 1 (EP0 only)
|
|
||||||
// <CONF_USB_N_2"> 2 (EP0 + 1 endpoint)
|
|
||||||
// <CONF_USB_N_3"> 3 (EP0 + 2 endpoints)
|
|
||||||
// <CONF_USB_N_4"> 4 (EP0 + 3 endpoints)
|
|
||||||
// <CONF_USB_N_5"> 5 (EP0 + 4 endpoints)
|
|
||||||
// <CONF_USB_N_6"> 6 (EP0 + 5 endpoints)
|
|
||||||
// <CONF_USB_N_7"> 7 (EP0 + 6 endpoints)
|
|
||||||
// <CONF_USB_N_8"> 8 (EP0 + 7 endpoints)
|
|
||||||
// <CONF_USB_D_N_EP_MAX"> Max possible (by "Max Endpoint Number" config)
|
|
||||||
// <id> usbd_num_ep_sp
|
|
||||||
#ifndef CONF_USB_D_NUM_EP_SP
|
|
||||||
#define CONF_USB_D_NUM_EP_SP CONF_USB_D_N_EP_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <y> Max Endpoint Number supported
|
|
||||||
// <i> Limits the max endpoint number.
|
|
||||||
// <i> USB endpoint address is constructed by direction and endpoint number. Bit 8 of address set indicates the direction is IN. E.g., EP0x81 and EP0x01 have the same endpoint number, 1.
|
|
||||||
// <i> Reduce the value according to specific device design, to cut-off memory usage.
|
|
||||||
// <CONF_USB_N_0"> 0 (only EP0)
|
|
||||||
// <CONF_USB_N_1"> 1 (EP 0x81 or 0x01)
|
|
||||||
// <CONF_USB_N_2"> 2 (EP 0x82 or 0x02)
|
|
||||||
// <CONF_USB_N_3"> 3 (EP 0x83 or 0x03)
|
|
||||||
// <CONF_USB_N_4"> 4 (EP 0x84 or 0x04)
|
|
||||||
// <CONF_USB_N_5"> 5 (EP 0x85 or 0x05)
|
|
||||||
// <CONF_USB_N_6"> 6 (EP 0x86 or 0x06)
|
|
||||||
// <CONF_USB_N_7"> 7 (EP 0x87 or 0x07)
|
|
||||||
// <CONF_USB_EP_N_MAX"> Max possible (by HW)
|
|
||||||
// <i> The number of physical endpoints - 1
|
|
||||||
// <id> usbd_arch_max_ep_n
|
|
||||||
#ifndef CONF_USB_D_MAX_EP_N
|
|
||||||
#define CONF_USB_D_MAX_EP_N CONF_USB_D_EP_N_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <y> USB Speed Limit
|
|
||||||
// <i> Limits the working speed of the device.
|
|
||||||
// <USB_SPEED_FS"> Full speed
|
|
||||||
// <USB_SPEED_LS"> Low Speed
|
|
||||||
// <id> usbd_arch_speed
|
|
||||||
#ifndef CONF_USB_D_SPEED
|
|
||||||
#define CONF_USB_D_SPEED USB_SPEED_FS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP0
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> EP0 is default control endpoint, so cache must be used to be able to receive SETUP packet at any time.
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <id> usb_arch_ep0_cache
|
|
||||||
#ifndef CONF_USB_EP0_CACHE
|
|
||||||
#define CONF_USB_EP0_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <h> Cache configuration EP1
|
|
||||||
// <o> Cache buffer size for EP1 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep1_cache
|
|
||||||
#ifndef CONF_USB_EP1_CACHE
|
|
||||||
#define CONF_USB_EP1_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP1 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep1_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP1_I_CACHE
|
|
||||||
#define CONF_USB_EP1_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP2
|
|
||||||
// <o> Cache buffer size for EP2 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep2_cache
|
|
||||||
#ifndef CONF_USB_EP2_CACHE
|
|
||||||
#define CONF_USB_EP2_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP2 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep2_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP2_I_CACHE
|
|
||||||
#define CONF_USB_EP2_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP3
|
|
||||||
// <o> Cache buffer size for EP3 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep3_cache
|
|
||||||
#ifndef CONF_USB_EP3_CACHE
|
|
||||||
#define CONF_USB_EP3_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP3 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep3_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP3_I_CACHE
|
|
||||||
#define CONF_USB_EP3_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP4
|
|
||||||
// <o> Cache buffer size for EP4 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep4_cache
|
|
||||||
#ifndef CONF_USB_EP4_CACHE
|
|
||||||
#define CONF_USB_EP4_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP4 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep4_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP4_I_CACHE
|
|
||||||
#define CONF_USB_EP4_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP5
|
|
||||||
// <o> Cache buffer size for EP5 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep5_cache
|
|
||||||
#ifndef CONF_USB_EP5_CACHE
|
|
||||||
#define CONF_USB_EP5_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP5 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep5_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP5_I_CACHE
|
|
||||||
#define CONF_USB_EP5_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP6
|
|
||||||
// <o> Cache buffer size for EP6 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep6_cache
|
|
||||||
#ifndef CONF_USB_EP6_CACHE
|
|
||||||
#define CONF_USB_EP6_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP6 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep6_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP6_I_CACHE
|
|
||||||
#define CONF_USB_EP6_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP7
|
|
||||||
// <o> Cache buffer size for EP7 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep7_cache
|
|
||||||
#ifndef CONF_USB_EP7_CACHE
|
|
||||||
#define CONF_USB_EP7_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP7 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep7_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP7_I_CACHE
|
|
||||||
#define CONF_USB_EP7_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <<< end of configuration section >>>
|
|
||||||
|
|
||||||
#endif // HPL_USB_CONFIG_H
|
|
@ -1,850 +0,0 @@
|
|||||||
/* Auto-generated config file usbd_config.h */
|
|
||||||
#ifndef USBD_CONFIG_H
|
|
||||||
#define USBD_CONFIG_H
|
|
||||||
|
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
|
||||||
|
|
||||||
// ---- USB Device Stack Core Options ----
|
|
||||||
|
|
||||||
// <q> High Speed Support
|
|
||||||
// <i> Enable high speed specific descriptors support, e.g., DeviceQualifierDescriptor and OtherSpeedConfiguration Descriptor.
|
|
||||||
// <i> High speed support require descriptors description array on start, for LS/FS and HS support in first and second place.
|
|
||||||
// <id> usbd_hs_sp
|
|
||||||
#ifndef CONF_USBD_HS_SP
|
|
||||||
#define CONF_USBD_HS_SP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ---- USB Device Stack Composite Options ----
|
|
||||||
|
|
||||||
// <e> Enable String Descriptors
|
|
||||||
// <id> usb_composite_str_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_STR_EN
|
|
||||||
#define CONF_USB_COMPOSITE_STR_EN 0
|
|
||||||
#endif
|
|
||||||
// <s> Language IDs
|
|
||||||
// <i> Language IDs in c format, split by comma (E.g., 0x0409 ...)
|
|
||||||
// <id> usb_composite_langid
|
|
||||||
#ifndef CONF_USB_COMPOSITE_LANGID
|
|
||||||
#define CONF_USB_COMPOSITE_LANGID "0x0409"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_LANGID_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_LANGID_DESC
|
|
||||||
#endif
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <h> Composite Device Descriptor
|
|
||||||
|
|
||||||
// <o> bcdUSB
|
|
||||||
// <0x0200=> USB 2.0 version
|
|
||||||
// <0x0210=> USB 2.1 version
|
|
||||||
// <id> usb_composite_bcdusb
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCDUSB
|
|
||||||
#define CONF_USB_COMPOSITE_BCDUSB 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bMaxPackeSize0
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <id> usb_composite_bmaxpksz0
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMAXPKSZ0
|
|
||||||
#define CONF_USB_COMPOSITE_BMAXPKSZ0 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> idVender <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_idvender
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IDVENDER
|
|
||||||
#define CONF_USB_COMPOSITE_IDVENDER 0x3eb
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> idProduct <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_idproduct
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IDPRODUCT
|
|
||||||
#define CONF_USB_COMPOSITE_IDPRODUCT 0x2421
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bcdDevice <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_bcddevice
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCDDEVICE
|
|
||||||
#define CONF_USB_COMPOSITE_BCDDEVICE 0x100
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iManufact
|
|
||||||
// <id> usb_composite_imanufact_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_EN
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT (CONF_USB_COMPOSITE_IMANUFACT_EN * (CONF_USB_COMPOSITE_IMANUFACT_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iManufact
|
|
||||||
// <id> usb_composite_imanufact_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_STR
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_STR "Atmel"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iProduct
|
|
||||||
// <id> usb_composite_iproduct_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_EN
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT \
|
|
||||||
(CONF_USB_COMPOSITE_IPRODUCT_EN * (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iProduct
|
|
||||||
// <id> usb_composite_iproduct_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_STR
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_STR "Composite Demo"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iSerialNum
|
|
||||||
// <id> usb_composite_iserialnum_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_EN
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM \
|
|
||||||
(CONF_USB_COMPOSITE_ISERIALNUM_EN \
|
|
||||||
* (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN + CONF_USB_COMPOSITE_ISERIALNUM_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iSerialNum
|
|
||||||
// <id> usb_composite_iserialnum_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_STR
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_STR "123456789ABCDEF"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <o> bNumConfigurations <0x01-0xFF>
|
|
||||||
// <id> usb_composite_bnumconfig
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BNUMCONFIG
|
|
||||||
#define CONF_USB_COMPOSITE_BNUMCONFIG 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Composite Configuration Descriptor
|
|
||||||
// <o> bConfigurationValue <0x01-0xFF>
|
|
||||||
// <id> usb_composite_bconfigval
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCONFIGVAL
|
|
||||||
#define CONF_USB_COMPOSITE_BCONFIGVAL 0x1
|
|
||||||
#endif
|
|
||||||
// <e> Enable string descriptor of iConfig
|
|
||||||
// <id> usb_composite_iconfig_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_EN
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG \
|
|
||||||
(CONF_USB_COMPOSITE_ICONFIG_EN \
|
|
||||||
* (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN + CONF_USB_COMPOSITE_ISERIALNUM_EN \
|
|
||||||
+ CONF_USB_COMPOSITE_ICONFIG_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iConfig
|
|
||||||
// <id> usb_composite_iconfig_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_STR
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_STR ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <o> bmAttributes
|
|
||||||
// <0x80=> Bus power supply, not support for remote wakeup
|
|
||||||
// <0xA0=> Bus power supply, support for remote wakeup
|
|
||||||
// <0xC0=> Self powered, not support for remote wakeup
|
|
||||||
// <0xE0=> Self powered, support for remote wakeup
|
|
||||||
// <id> usb_composite_bmattri
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMATTRI
|
|
||||||
#define CONF_USB_COMPOSITE_BMATTRI 0x80
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bMaxPower <0x00-0xFF>
|
|
||||||
// <id> usb_composite_bmaxpower
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMAXPOWER
|
|
||||||
#define CONF_USB_COMPOSITE_BMAXPOWER 0x32
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <e> CDC ACM Support
|
|
||||||
// <id> usb_composite_cdc_acm_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_EN
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Comm Interrupt IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_EPADDR 0x82
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Comm Interrupt IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_comm_int_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_bulkin_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_EPADDR 0x81
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_builin_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_builin_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_bulkout_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_EPADDR 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_buckout_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_buckout_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> CDC ACM Echo Demo generation
|
|
||||||
// <id> conf_usb_composite_cdc_echo_demo
|
|
||||||
// <i> Invoke cdcdf_acm_demo_init(buf[wMaxPacketSize]) to enable the echo demo.
|
|
||||||
// <i> Buf is packet buffer for data receive and echo back.
|
|
||||||
// <i> The buffer is 4 byte aligned to support DMA.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ECHO_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ECHO_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Mouse Support
|
|
||||||
// <id> usb_composite_hid_mouse_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Mouse INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_mouse_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_INTIN_EPADDR 0x83
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Mouse INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_mouse_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_INTIN_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> HID Mouse Move Demo generation
|
|
||||||
// <id> conf_usb_composite_hid_mouse_demo
|
|
||||||
// <i> Invoke hiddf_demo_init(button1, button2, button3) to enabled the move demo.
|
|
||||||
// <i> Button1 and button3 are the pins used for mouse moving left and right.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Keyboard Support
|
|
||||||
// <id> usb_composite_hid_keyboard_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_EPADDR 0x84
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intout_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_EPADDR 0x2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intout_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> HID Keyboard Caps Lock Demo generation
|
|
||||||
// <id> conf_usb_composite_hid_keyboard_demo
|
|
||||||
// <i> Invoke hiddf_demo_init(button1, button2, button3) to enabled the move demo.
|
|
||||||
// <i> Buffon2 is the pin used for keyboard CAPS LOCK simulation.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Generic Support
|
|
||||||
// <id> usb_composite_hid_generic_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_REPORT_LEN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_REPORT_LEN 53
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_REPORT
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_REPORT \
|
|
||||||
0x06, 0xFF, 0xFF, 0x09, 0x01, 0xA1, 0x01, 0x09, 0x02, 0x09, 0x03, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, \
|
|
||||||
0x40, 0x81, 0x02, 0x09, 0x04, 0x09, 0x05, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x40, 0x91, 0x02, \
|
|
||||||
0x09, 0x06, 0x09, 0x07, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x04, 0xB1, 0x02, 0xC0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTIN_EPADDR 0x85
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTIN_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intout_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_EPADDR 0x3
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <id> usb_composite_hid_generic_intout_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> MSC Support
|
|
||||||
// <id> usb_composite_msc_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_EN
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK Endpoints wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulk_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK Endpoints wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulk_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulkin_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULKIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULKIN_EPADDR 0x86
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulkout_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULKOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULKOUT_EPADDR 0x4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable Demo code for Disk LUN handling
|
|
||||||
// <id> usb_composite_msc_demo_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_LUN_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_LUN_DEMO 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk access cache/buffer of sectors if non-RAM disk (e.g., SD/MMC) enabled <1-64>
|
|
||||||
// <id> conf_usb_msc_lun_buf_sectors
|
|
||||||
#ifndef CONF_USB_MSC_LUN_BUF_SECTORS
|
|
||||||
#define CONF_USB_MSC_LUN_BUF_SECTORS 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable Demo for RAM Disk
|
|
||||||
// <id> conf_usb_msc_lun0_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN0_ENABLE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN0_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun0_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_RMB
|
|
||||||
#define CONF_USB_MSC_LUN0_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ISO
|
|
||||||
#define CONF_USB_MSC_LUN0_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN0_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN0_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_REPO
|
|
||||||
#define CONF_USB_MSC_LUN0_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN0_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN0_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN0_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <i> Windows will not show disk less than 20K, so 22K is used to reserve more RAM for APP
|
|
||||||
// <id> conf_usb_msc_lun0_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN0_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN0_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN0_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN0_CAPACITY * 1024 / CONF_USB_MSC_LUN0_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for SD/MMC Disk
|
|
||||||
// <i> SD/MMC stack must be added before enable SD/MMC demo
|
|
||||||
// <i> SD/MMC insert/eject not supported by this simple demo
|
|
||||||
// <id> conf_usb_msc_lun1_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN1_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN1_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <i> SD/MMC stack must be added before enable SD/MMC demo
|
|
||||||
// <i> SD/MMC insert/eject not supported by this simple demo
|
|
||||||
// <id> conf_usb_msc_lun1_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_RMB
|
|
||||||
#define CONF_USB_MSC_LUN1_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ISO
|
|
||||||
#define CONF_USB_MSC_LUN1_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN1_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN1_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_REPO
|
|
||||||
#define CONF_USB_MSC_LUN1_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN1_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN1_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN1_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN1_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN1_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN1_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN1_CAPACITY * 1024 / CONF_USB_MSC_LUN1_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for LUN 2
|
|
||||||
// <id> conf_usb_msc_lun2_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN2_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN2_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun2_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_RMB
|
|
||||||
#define CONF_USB_MSC_LUN2_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ISO
|
|
||||||
#define CONF_USB_MSC_LUN2_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN2_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN2_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_REPO
|
|
||||||
#define CONF_USB_MSC_LUN2_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN2_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN2_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN2_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <id> conf_usb_msc_lun2_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN2_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN2_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN2_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN2_CAPACITY * 1024 / CONF_USB_MSC_LUN2_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for LUN 3
|
|
||||||
// <id> conf_usb_msc_lun3_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN3_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN3_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun3_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_RMB
|
|
||||||
#define CONF_USB_MSC_LUN3_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ISO
|
|
||||||
#define CONF_USB_MSC_LUN3_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN3_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN3_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_REPO
|
|
||||||
#define CONF_USB_MSC_LUN3_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN3_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN3_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN3_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <id> conf_usb_msc_lun3_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN3_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN3_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN3_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN3_CAPACITY * 1024 / CONF_USB_MSC_LUN3_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <<< end of configuration section >>>
|
|
||||||
|
|
||||||
#endif // USBD_CONFIG_H
|
|
@ -1,413 +0,0 @@
|
|||||||
/* Auto-generated config file hpl_usb_config.h */
|
|
||||||
#ifndef HPL_USB_CONFIG_H
|
|
||||||
#define HPL_USB_CONFIG_H
|
|
||||||
|
|
||||||
// CIRCUITPY:
|
|
||||||
|
|
||||||
// Use 64-byte USB buffers for endpoint directions that are in use. They're set to 0 below otherwise.
|
|
||||||
|
|
||||||
#include "genhdr/autogen_usb_descriptor.h"
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_1_OUT_USED) && USB_ENDPOINT_1_OUT_USED
|
|
||||||
#define CONF_USB_EP1_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_1_IN_USED) && USB_ENDPOINT_1_IN_USED
|
|
||||||
#define CONF_USB_EP1_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_2_OUT_USED) && USB_ENDPOINT_2_OUT_USED
|
|
||||||
#define CONF_USB_EP2_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_2_IN_USED) && USB_ENDPOINT_2_IN_USED
|
|
||||||
#define CONF_USB_EP2_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_3_OUT_USED) && USB_ENDPOINT_3_OUT_USED
|
|
||||||
#define CONF_USB_EP3_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_3_IN_USED) && USB_ENDPOINT_3_IN_USED
|
|
||||||
#define CONF_USB_EP3_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_4_OUT_USED) && USB_ENDPOINT_4_OUT_USED
|
|
||||||
#define CONF_USB_EP4_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_4_IN_USED) && USB_ENDPOINT_4_IN_USED
|
|
||||||
#define CONF_USB_EP4_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_5_OUT_USED) && USB_ENDPOINT_5_OUT_USED
|
|
||||||
#define CONF_USB_EP5_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_5_IN_USED) && USB_ENDPOINT_5_IN_USED
|
|
||||||
#define CONF_USB_EP5_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_6_OUT_USED) && USB_ENDPOINT_6_OUT_USED
|
|
||||||
#define CONF_USB_EP6_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_6_IN_USED) && USB_ENDPOINT_6_IN_USED
|
|
||||||
#define CONF_USB_EP6_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_7_OUT_USED) && USB_ENDPOINT_7_OUT_USED
|
|
||||||
#define CONF_USB_EP7_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_7_IN_USED) && USB_ENDPOINT_7_IN_USED
|
|
||||||
#define CONF_USB_EP7_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
|
||||||
|
|
||||||
#define CONF_USB_N_0 0
|
|
||||||
#define CONF_USB_N_1 1
|
|
||||||
#define CONF_USB_N_2 2
|
|
||||||
#define CONF_USB_N_3 3
|
|
||||||
#define CONF_USB_N_4 4
|
|
||||||
#define CONF_USB_N_5 5
|
|
||||||
#define CONF_USB_N_6 6
|
|
||||||
#define CONF_USB_N_7 7
|
|
||||||
#define CONF_USB_N_8 8
|
|
||||||
#define CONF_USB_N_9 9
|
|
||||||
#define CONF_USB_N_10 10
|
|
||||||
#define CONF_USB_N_11 11
|
|
||||||
#define CONF_USB_N_12 12
|
|
||||||
#define CONF_USB_N_13 13
|
|
||||||
#define CONF_USB_N_14 14
|
|
||||||
#define CONF_USB_N_15 15
|
|
||||||
|
|
||||||
#define CONF_USB_D_EP_N_MAX (USB_EPT_NUM - 1)
|
|
||||||
#define CONF_USB_D_N_EP_MAX (CONF_USB_D_EP_N_MAX * 2 - 1)
|
|
||||||
|
|
||||||
// <h> USB Device HAL Configuration
|
|
||||||
|
|
||||||
// <y> Max number of endpoints supported
|
|
||||||
// <i> Limits the number of endpoints (described by EP address) can be used in app.
|
|
||||||
// NOTE(tannewt): This not only limits the number of endpoints but also the
|
|
||||||
// addresses. In other words, even if you use endpoint 6 you need to set this to 11.
|
|
||||||
// <CONF_USB_N_1"> 1 (EP0 only)
|
|
||||||
// <CONF_USB_N_2"> 2 (EP0 + 1 endpoint)
|
|
||||||
// <CONF_USB_N_3"> 3 (EP0 + 2 endpoints)
|
|
||||||
// <CONF_USB_N_4"> 4 (EP0 + 3 endpoints)
|
|
||||||
// <CONF_USB_N_5"> 5 (EP0 + 4 endpoints)
|
|
||||||
// <CONF_USB_N_6"> 6 (EP0 + 5 endpoints)
|
|
||||||
// <CONF_USB_N_7"> 7 (EP0 + 6 endpoints)
|
|
||||||
// <CONF_USB_N_8"> 8 (EP0 + 7 endpoints)
|
|
||||||
// <CONF_USB_D_N_EP_MAX"> Max possible (by "Max Endpoint Number" config)
|
|
||||||
// <id> usbd_num_ep_sp
|
|
||||||
#ifndef CONF_USB_D_NUM_EP_SP
|
|
||||||
#define CONF_USB_D_NUM_EP_SP CONF_USB_D_N_EP_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <y> Max Endpoint Number supported
|
|
||||||
// <i> Limits the max endpoint number.
|
|
||||||
// <i> USB endpoint address is constructed by direction and endpoint number. Bit 8 of address set indicates the direction is IN. E.g., EP0x81 and EP0x01 have the same endpoint number, 1.
|
|
||||||
// <i> Reduce the value according to specific device design, to cut-off memory usage.
|
|
||||||
// <CONF_USB_N_0"> 0 (only EP0)
|
|
||||||
// <CONF_USB_N_1"> 1 (EP 0x81 or 0x01)
|
|
||||||
// <CONF_USB_N_2"> 2 (EP 0x82 or 0x02)
|
|
||||||
// <CONF_USB_N_3"> 3 (EP 0x83 or 0x03)
|
|
||||||
// <CONF_USB_N_4"> 4 (EP 0x84 or 0x04)
|
|
||||||
// <CONF_USB_N_5"> 5 (EP 0x85 or 0x05)
|
|
||||||
// <CONF_USB_N_6"> 6 (EP 0x86 or 0x06)
|
|
||||||
// <CONF_USB_N_7"> 7 (EP 0x87 or 0x07)
|
|
||||||
// <CONF_USB_EP_N_MAX"> Max possible (by HW)
|
|
||||||
// <i> The number of physical endpoints - 1
|
|
||||||
// <id> usbd_arch_max_ep_n
|
|
||||||
#ifndef CONF_USB_D_MAX_EP_N
|
|
||||||
#define CONF_USB_D_MAX_EP_N CONF_USB_D_EP_N_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <y> USB Speed Limit
|
|
||||||
// <i> Limits the working speed of the device.
|
|
||||||
// <USB_SPEED_FS"> Full speed
|
|
||||||
// <USB_SPEED_LS"> Low Speed
|
|
||||||
// <id> usbd_arch_speed
|
|
||||||
#ifndef CONF_USB_D_SPEED
|
|
||||||
#define CONF_USB_D_SPEED USB_SPEED_FS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP0
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> EP0 is default control endpoint, so cache must be used to be able to receive SETUP packet at any time.
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <id> usb_arch_ep0_cache
|
|
||||||
#ifndef CONF_USB_EP0_CACHE
|
|
||||||
#define CONF_USB_EP0_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <h> Cache configuration EP1
|
|
||||||
// <o> Cache buffer size for EP1 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep1_cache
|
|
||||||
#ifndef CONF_USB_EP1_CACHE
|
|
||||||
#define CONF_USB_EP1_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP1 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep1_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP1_I_CACHE
|
|
||||||
#define CONF_USB_EP1_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP2
|
|
||||||
// <o> Cache buffer size for EP2 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep2_cache
|
|
||||||
#ifndef CONF_USB_EP2_CACHE
|
|
||||||
#define CONF_USB_EP2_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP2 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep2_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP2_I_CACHE
|
|
||||||
#define CONF_USB_EP2_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP3
|
|
||||||
// <o> Cache buffer size for EP3 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep3_cache
|
|
||||||
#ifndef CONF_USB_EP3_CACHE
|
|
||||||
#define CONF_USB_EP3_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP3 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep3_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP3_I_CACHE
|
|
||||||
#define CONF_USB_EP3_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP4
|
|
||||||
// <o> Cache buffer size for EP4 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep4_cache
|
|
||||||
#ifndef CONF_USB_EP4_CACHE
|
|
||||||
#define CONF_USB_EP4_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP4 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep4_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP4_I_CACHE
|
|
||||||
#define CONF_USB_EP4_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP5
|
|
||||||
// <o> Cache buffer size for EP5 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep5_cache
|
|
||||||
#ifndef CONF_USB_EP5_CACHE
|
|
||||||
#define CONF_USB_EP5_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP5 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep5_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP5_I_CACHE
|
|
||||||
#define CONF_USB_EP5_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP6
|
|
||||||
// <o> Cache buffer size for EP6 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep6_cache
|
|
||||||
#ifndef CONF_USB_EP6_CACHE
|
|
||||||
#define CONF_USB_EP6_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP6 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep6_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP6_I_CACHE
|
|
||||||
#define CONF_USB_EP6_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP7
|
|
||||||
// <o> Cache buffer size for EP7 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep7_cache
|
|
||||||
#ifndef CONF_USB_EP7_CACHE
|
|
||||||
#define CONF_USB_EP7_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP7 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep7_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP7_I_CACHE
|
|
||||||
#define CONF_USB_EP7_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <<< end of configuration section >>>
|
|
||||||
|
|
||||||
#endif // HPL_USB_CONFIG_H
|
|
@ -1,850 +0,0 @@
|
|||||||
/* Auto-generated config file usbd_config.h */
|
|
||||||
#ifndef USBD_CONFIG_H
|
|
||||||
#define USBD_CONFIG_H
|
|
||||||
|
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
|
||||||
|
|
||||||
// ---- USB Device Stack Core Options ----
|
|
||||||
|
|
||||||
// <q> High Speed Support
|
|
||||||
// <i> Enable high speed specific descriptors support, e.g., DeviceQualifierDescriptor and OtherSpeedConfiguration Descriptor.
|
|
||||||
// <i> High speed support require descriptors description array on start, for LS/FS and HS support in first and second place.
|
|
||||||
// <id> usbd_hs_sp
|
|
||||||
#ifndef CONF_USBD_HS_SP
|
|
||||||
#define CONF_USBD_HS_SP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ---- USB Device Stack Composite Options ----
|
|
||||||
|
|
||||||
// <e> Enable String Descriptors
|
|
||||||
// <id> usb_composite_str_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_STR_EN
|
|
||||||
#define CONF_USB_COMPOSITE_STR_EN 0
|
|
||||||
#endif
|
|
||||||
// <s> Language IDs
|
|
||||||
// <i> Language IDs in c format, split by comma (E.g., 0x0409 ...)
|
|
||||||
// <id> usb_composite_langid
|
|
||||||
#ifndef CONF_USB_COMPOSITE_LANGID
|
|
||||||
#define CONF_USB_COMPOSITE_LANGID "0x0409"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_LANGID_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_LANGID_DESC
|
|
||||||
#endif
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <h> Composite Device Descriptor
|
|
||||||
|
|
||||||
// <o> bcdUSB
|
|
||||||
// <0x0200=> USB 2.0 version
|
|
||||||
// <0x0210=> USB 2.1 version
|
|
||||||
// <id> usb_composite_bcdusb
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCDUSB
|
|
||||||
#define CONF_USB_COMPOSITE_BCDUSB 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bMaxPackeSize0
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <id> usb_composite_bmaxpksz0
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMAXPKSZ0
|
|
||||||
#define CONF_USB_COMPOSITE_BMAXPKSZ0 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> idVender <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_idvender
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IDVENDER
|
|
||||||
#define CONF_USB_COMPOSITE_IDVENDER 0x3eb
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> idProduct <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_idproduct
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IDPRODUCT
|
|
||||||
#define CONF_USB_COMPOSITE_IDPRODUCT 0x2421
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bcdDevice <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_bcddevice
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCDDEVICE
|
|
||||||
#define CONF_USB_COMPOSITE_BCDDEVICE 0x100
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iManufact
|
|
||||||
// <id> usb_composite_imanufact_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_EN
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT (CONF_USB_COMPOSITE_IMANUFACT_EN * (CONF_USB_COMPOSITE_IMANUFACT_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iManufact
|
|
||||||
// <id> usb_composite_imanufact_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_STR
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_STR "Atmel"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iProduct
|
|
||||||
// <id> usb_composite_iproduct_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_EN
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT \
|
|
||||||
(CONF_USB_COMPOSITE_IPRODUCT_EN * (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iProduct
|
|
||||||
// <id> usb_composite_iproduct_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_STR
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_STR "Composite Demo"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iSerialNum
|
|
||||||
// <id> usb_composite_iserialnum_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_EN
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM \
|
|
||||||
(CONF_USB_COMPOSITE_ISERIALNUM_EN \
|
|
||||||
* (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN + CONF_USB_COMPOSITE_ISERIALNUM_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iSerialNum
|
|
||||||
// <id> usb_composite_iserialnum_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_STR
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_STR "123456789ABCDEF"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <o> bNumConfigurations <0x01-0xFF>
|
|
||||||
// <id> usb_composite_bnumconfig
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BNUMCONFIG
|
|
||||||
#define CONF_USB_COMPOSITE_BNUMCONFIG 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Composite Configuration Descriptor
|
|
||||||
// <o> bConfigurationValue <0x01-0xFF>
|
|
||||||
// <id> usb_composite_bconfigval
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCONFIGVAL
|
|
||||||
#define CONF_USB_COMPOSITE_BCONFIGVAL 0x1
|
|
||||||
#endif
|
|
||||||
// <e> Enable string descriptor of iConfig
|
|
||||||
// <id> usb_composite_iconfig_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_EN
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG \
|
|
||||||
(CONF_USB_COMPOSITE_ICONFIG_EN \
|
|
||||||
* (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN + CONF_USB_COMPOSITE_ISERIALNUM_EN \
|
|
||||||
+ CONF_USB_COMPOSITE_ICONFIG_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iConfig
|
|
||||||
// <id> usb_composite_iconfig_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_STR
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_STR ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <o> bmAttributes
|
|
||||||
// <0x80=> Bus power supply, not support for remote wakeup
|
|
||||||
// <0xA0=> Bus power supply, support for remote wakeup
|
|
||||||
// <0xC0=> Self powered, not support for remote wakeup
|
|
||||||
// <0xE0=> Self powered, support for remote wakeup
|
|
||||||
// <id> usb_composite_bmattri
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMATTRI
|
|
||||||
#define CONF_USB_COMPOSITE_BMATTRI 0x80
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bMaxPower <0x00-0xFF>
|
|
||||||
// <id> usb_composite_bmaxpower
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMAXPOWER
|
|
||||||
#define CONF_USB_COMPOSITE_BMAXPOWER 0x32
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <e> CDC ACM Support
|
|
||||||
// <id> usb_composite_cdc_acm_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_EN
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Comm Interrupt IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_EPADDR 0x82
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Comm Interrupt IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_comm_int_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_bulkin_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_EPADDR 0x81
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_builin_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_builin_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_bulkout_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_EPADDR 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_buckout_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_buckout_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> CDC ACM Echo Demo generation
|
|
||||||
// <id> conf_usb_composite_cdc_echo_demo
|
|
||||||
// <i> Invoke cdcdf_acm_demo_init(buf[wMaxPacketSize]) to enable the echo demo.
|
|
||||||
// <i> Buf is packet buffer for data receive and echo back.
|
|
||||||
// <i> The buffer is 4 byte aligned to support DMA.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ECHO_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ECHO_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Mouse Support
|
|
||||||
// <id> usb_composite_hid_mouse_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Mouse INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_mouse_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_INTIN_EPADDR 0x83
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Mouse INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_mouse_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_INTIN_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> HID Mouse Move Demo generation
|
|
||||||
// <id> conf_usb_composite_hid_mouse_demo
|
|
||||||
// <i> Invoke hiddf_demo_init(button1, button2, button3) to enabled the move demo.
|
|
||||||
// <i> Button1 and button3 are the pins used for mouse moving left and right.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Keyboard Support
|
|
||||||
// <id> usb_composite_hid_keyboard_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_EPADDR 0x84
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intout_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_EPADDR 0x2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intout_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> HID Keyboard Caps Lock Demo generation
|
|
||||||
// <id> conf_usb_composite_hid_keyboard_demo
|
|
||||||
// <i> Invoke hiddf_demo_init(button1, button2, button3) to enabled the move demo.
|
|
||||||
// <i> Buffon2 is the pin used for keyboard CAPS LOCK simulation.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Generic Support
|
|
||||||
// <id> usb_composite_hid_generic_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_REPORT_LEN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_REPORT_LEN 53
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_REPORT
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_REPORT \
|
|
||||||
0x06, 0xFF, 0xFF, 0x09, 0x01, 0xA1, 0x01, 0x09, 0x02, 0x09, 0x03, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, \
|
|
||||||
0x40, 0x81, 0x02, 0x09, 0x04, 0x09, 0x05, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x40, 0x91, 0x02, \
|
|
||||||
0x09, 0x06, 0x09, 0x07, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x04, 0xB1, 0x02, 0xC0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTIN_EPADDR 0x85
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTIN_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intout_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_EPADDR 0x3
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <id> usb_composite_hid_generic_intout_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> MSC Support
|
|
||||||
// <id> usb_composite_msc_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_EN
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK Endpoints wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulk_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK Endpoints wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulk_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulkin_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULKIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULKIN_EPADDR 0x86
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulkout_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULKOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULKOUT_EPADDR 0x4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable Demo code for Disk LUN handling
|
|
||||||
// <id> usb_composite_msc_demo_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_LUN_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_LUN_DEMO 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk access cache/buffer of sectors if non-RAM disk (e.g., SD/MMC) enabled <1-64>
|
|
||||||
// <id> conf_usb_msc_lun_buf_sectors
|
|
||||||
#ifndef CONF_USB_MSC_LUN_BUF_SECTORS
|
|
||||||
#define CONF_USB_MSC_LUN_BUF_SECTORS 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable Demo for RAM Disk
|
|
||||||
// <id> conf_usb_msc_lun0_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN0_ENABLE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN0_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun0_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_RMB
|
|
||||||
#define CONF_USB_MSC_LUN0_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ISO
|
|
||||||
#define CONF_USB_MSC_LUN0_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN0_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN0_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_REPO
|
|
||||||
#define CONF_USB_MSC_LUN0_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN0_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN0_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN0_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <i> Windows will not show disk less than 20K, so 22K is used to reserve more RAM for APP
|
|
||||||
// <id> conf_usb_msc_lun0_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN0_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN0_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN0_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN0_CAPACITY * 1024 / CONF_USB_MSC_LUN0_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for SD/MMC Disk
|
|
||||||
// <i> SD/MMC stack must be added before enable SD/MMC demo
|
|
||||||
// <i> SD/MMC insert/eject not supported by this simple demo
|
|
||||||
// <id> conf_usb_msc_lun1_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN1_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN1_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <i> SD/MMC stack must be added before enable SD/MMC demo
|
|
||||||
// <i> SD/MMC insert/eject not supported by this simple demo
|
|
||||||
// <id> conf_usb_msc_lun1_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_RMB
|
|
||||||
#define CONF_USB_MSC_LUN1_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ISO
|
|
||||||
#define CONF_USB_MSC_LUN1_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN1_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN1_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_REPO
|
|
||||||
#define CONF_USB_MSC_LUN1_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN1_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN1_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN1_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN1_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN1_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN1_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN1_CAPACITY * 1024 / CONF_USB_MSC_LUN1_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for LUN 2
|
|
||||||
// <id> conf_usb_msc_lun2_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN2_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN2_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun2_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_RMB
|
|
||||||
#define CONF_USB_MSC_LUN2_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ISO
|
|
||||||
#define CONF_USB_MSC_LUN2_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN2_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN2_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_REPO
|
|
||||||
#define CONF_USB_MSC_LUN2_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN2_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN2_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN2_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <id> conf_usb_msc_lun2_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN2_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN2_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN2_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN2_CAPACITY * 1024 / CONF_USB_MSC_LUN2_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for LUN 3
|
|
||||||
// <id> conf_usb_msc_lun3_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN3_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN3_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun3_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_RMB
|
|
||||||
#define CONF_USB_MSC_LUN3_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ISO
|
|
||||||
#define CONF_USB_MSC_LUN3_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN3_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN3_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_REPO
|
|
||||||
#define CONF_USB_MSC_LUN3_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN3_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN3_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN3_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <id> conf_usb_msc_lun3_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN3_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN3_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN3_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN3_CAPACITY * 1024 / CONF_USB_MSC_LUN3_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <<< end of configuration section >>>
|
|
||||||
|
|
||||||
#endif // USBD_CONFIG_H
|
|
@ -1,413 +0,0 @@
|
|||||||
/* Auto-generated config file hpl_usb_config.h */
|
|
||||||
#ifndef HPL_USB_CONFIG_H
|
|
||||||
#define HPL_USB_CONFIG_H
|
|
||||||
|
|
||||||
// CIRCUITPY:
|
|
||||||
|
|
||||||
// Use 64-byte USB buffers for endpoint directions that are in use. They're set to 0 below otherwise.
|
|
||||||
|
|
||||||
#include "genhdr/autogen_usb_descriptor.h"
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_1_OUT_USED) && USB_ENDPOINT_1_OUT_USED
|
|
||||||
#define CONF_USB_EP1_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_1_IN_USED) && USB_ENDPOINT_1_IN_USED
|
|
||||||
#define CONF_USB_EP1_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_2_OUT_USED) && USB_ENDPOINT_2_OUT_USED
|
|
||||||
#define CONF_USB_EP2_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_2_IN_USED) && USB_ENDPOINT_2_IN_USED
|
|
||||||
#define CONF_USB_EP2_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_3_OUT_USED) && USB_ENDPOINT_3_OUT_USED
|
|
||||||
#define CONF_USB_EP3_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_3_IN_USED) && USB_ENDPOINT_3_IN_USED
|
|
||||||
#define CONF_USB_EP3_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_4_OUT_USED) && USB_ENDPOINT_4_OUT_USED
|
|
||||||
#define CONF_USB_EP4_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_4_IN_USED) && USB_ENDPOINT_4_IN_USED
|
|
||||||
#define CONF_USB_EP4_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_5_OUT_USED) && USB_ENDPOINT_5_OUT_USED
|
|
||||||
#define CONF_USB_EP5_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_5_IN_USED) && USB_ENDPOINT_5_IN_USED
|
|
||||||
#define CONF_USB_EP5_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_6_OUT_USED) && USB_ENDPOINT_6_OUT_USED
|
|
||||||
#define CONF_USB_EP6_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_6_IN_USED) && USB_ENDPOINT_6_IN_USED
|
|
||||||
#define CONF_USB_EP6_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USB_ENDPOINT_7_OUT_USED) && USB_ENDPOINT_7_OUT_USED
|
|
||||||
#define CONF_USB_EP7_CACHE 64
|
|
||||||
#endif
|
|
||||||
#if defined(USB_ENDPOINT_7_IN_USED) && USB_ENDPOINT_7_IN_USED
|
|
||||||
#define CONF_USB_EP7_I_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
|
||||||
|
|
||||||
#define CONF_USB_N_0 0
|
|
||||||
#define CONF_USB_N_1 1
|
|
||||||
#define CONF_USB_N_2 2
|
|
||||||
#define CONF_USB_N_3 3
|
|
||||||
#define CONF_USB_N_4 4
|
|
||||||
#define CONF_USB_N_5 5
|
|
||||||
#define CONF_USB_N_6 6
|
|
||||||
#define CONF_USB_N_7 7
|
|
||||||
#define CONF_USB_N_8 8
|
|
||||||
#define CONF_USB_N_9 9
|
|
||||||
#define CONF_USB_N_10 10
|
|
||||||
#define CONF_USB_N_11 11
|
|
||||||
#define CONF_USB_N_12 12
|
|
||||||
#define CONF_USB_N_13 13
|
|
||||||
#define CONF_USB_N_14 14
|
|
||||||
#define CONF_USB_N_15 15
|
|
||||||
|
|
||||||
#define CONF_USB_D_EP_N_MAX (USB_EPT_NUM - 1)
|
|
||||||
#define CONF_USB_D_N_EP_MAX (CONF_USB_D_EP_N_MAX * 2 - 1)
|
|
||||||
|
|
||||||
// <h> USB Device HAL Configuration
|
|
||||||
|
|
||||||
// <y> Max number of endpoints supported
|
|
||||||
// <i> Limits the number of endpoints (described by EP address) can be used in app.
|
|
||||||
// NOTE(tannewt): This not only limits the number of endpoints but also the
|
|
||||||
// addresses. In other words, even if you use endpoint 6 you need to set this to 11.
|
|
||||||
// <CONF_USB_N_1"> 1 (EP0 only)
|
|
||||||
// <CONF_USB_N_2"> 2 (EP0 + 1 endpoint)
|
|
||||||
// <CONF_USB_N_3"> 3 (EP0 + 2 endpoints)
|
|
||||||
// <CONF_USB_N_4"> 4 (EP0 + 3 endpoints)
|
|
||||||
// <CONF_USB_N_5"> 5 (EP0 + 4 endpoints)
|
|
||||||
// <CONF_USB_N_6"> 6 (EP0 + 5 endpoints)
|
|
||||||
// <CONF_USB_N_7"> 7 (EP0 + 6 endpoints)
|
|
||||||
// <CONF_USB_N_8"> 8 (EP0 + 7 endpoints)
|
|
||||||
// <CONF_USB_D_N_EP_MAX"> Max possible (by "Max Endpoint Number" config)
|
|
||||||
// <id> usbd_num_ep_sp
|
|
||||||
#ifndef CONF_USB_D_NUM_EP_SP
|
|
||||||
#define CONF_USB_D_NUM_EP_SP CONF_USB_D_N_EP_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <y> Max Endpoint Number supported
|
|
||||||
// <i> Limits the max endpoint number.
|
|
||||||
// <i> USB endpoint address is constructed by direction and endpoint number. Bit 8 of address set indicates the direction is IN. E.g., EP0x81 and EP0x01 have the same endpoint number, 1.
|
|
||||||
// <i> Reduce the value according to specific device design, to cut-off memory usage.
|
|
||||||
// <CONF_USB_N_0"> 0 (only EP0)
|
|
||||||
// <CONF_USB_N_1"> 1 (EP 0x81 or 0x01)
|
|
||||||
// <CONF_USB_N_2"> 2 (EP 0x82 or 0x02)
|
|
||||||
// <CONF_USB_N_3"> 3 (EP 0x83 or 0x03)
|
|
||||||
// <CONF_USB_N_4"> 4 (EP 0x84 or 0x04)
|
|
||||||
// <CONF_USB_N_5"> 5 (EP 0x85 or 0x05)
|
|
||||||
// <CONF_USB_N_6"> 6 (EP 0x86 or 0x06)
|
|
||||||
// <CONF_USB_N_7"> 7 (EP 0x87 or 0x07)
|
|
||||||
// <CONF_USB_EP_N_MAX"> Max possible (by HW)
|
|
||||||
// <i> The number of physical endpoints - 1
|
|
||||||
// <id> usbd_arch_max_ep_n
|
|
||||||
#ifndef CONF_USB_D_MAX_EP_N
|
|
||||||
#define CONF_USB_D_MAX_EP_N CONF_USB_D_EP_N_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <y> USB Speed Limit
|
|
||||||
// <i> Limits the working speed of the device.
|
|
||||||
// <USB_SPEED_FS"> Full speed
|
|
||||||
// <USB_SPEED_LS"> Low Speed
|
|
||||||
// <id> usbd_arch_speed
|
|
||||||
#ifndef CONF_USB_D_SPEED
|
|
||||||
#define CONF_USB_D_SPEED USB_SPEED_FS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP0
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> EP0 is default control endpoint, so cache must be used to be able to receive SETUP packet at any time.
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <id> usb_arch_ep0_cache
|
|
||||||
#ifndef CONF_USB_EP0_CACHE
|
|
||||||
#define CONF_USB_EP0_CACHE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <h> Cache configuration EP1
|
|
||||||
// <o> Cache buffer size for EP1 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep1_cache
|
|
||||||
#ifndef CONF_USB_EP1_CACHE
|
|
||||||
#define CONF_USB_EP1_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP1 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep1_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP1_I_CACHE
|
|
||||||
#define CONF_USB_EP1_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP2
|
|
||||||
// <o> Cache buffer size for EP2 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep2_cache
|
|
||||||
#ifndef CONF_USB_EP2_CACHE
|
|
||||||
#define CONF_USB_EP2_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP2 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep2_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP2_I_CACHE
|
|
||||||
#define CONF_USB_EP2_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP3
|
|
||||||
// <o> Cache buffer size for EP3 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep3_cache
|
|
||||||
#ifndef CONF_USB_EP3_CACHE
|
|
||||||
#define CONF_USB_EP3_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP3 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep3_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP3_I_CACHE
|
|
||||||
#define CONF_USB_EP3_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP4
|
|
||||||
// <o> Cache buffer size for EP4 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep4_cache
|
|
||||||
#ifndef CONF_USB_EP4_CACHE
|
|
||||||
#define CONF_USB_EP4_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP4 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep4_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP4_I_CACHE
|
|
||||||
#define CONF_USB_EP4_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP5
|
|
||||||
// <o> Cache buffer size for EP5 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep5_cache
|
|
||||||
#ifndef CONF_USB_EP5_CACHE
|
|
||||||
#define CONF_USB_EP5_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP5 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep5_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP5_I_CACHE
|
|
||||||
#define CONF_USB_EP5_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP6
|
|
||||||
// <o> Cache buffer size for EP6 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep6_cache
|
|
||||||
#ifndef CONF_USB_EP6_CACHE
|
|
||||||
#define CONF_USB_EP6_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP6 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep6_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP6_I_CACHE
|
|
||||||
#define CONF_USB_EP6_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Cache configuration EP7
|
|
||||||
// <o> Cache buffer size for EP7 OUT
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_arch_ep7_cache
|
|
||||||
#ifndef CONF_USB_EP7_CACHE
|
|
||||||
#define CONF_USB_EP7_CACHE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Cache buffer size for EP7 IN
|
|
||||||
// <i> Cache is used because the USB hardware always uses DMA which requires specific memory feature.
|
|
||||||
// <i> This cache must not be allocated if you plan to use the endpoint as control endpoint.
|
|
||||||
// <i> No cache means IN transaction not support data buffer outside of RAM, OUT transaction not support unaligned buffer and buffer size less than endpoint max packet size
|
|
||||||
// <0=> No cache
|
|
||||||
// <8=> Cached by 8 bytes buffer
|
|
||||||
// <16=> Cached by 16 bytes buffer
|
|
||||||
// <32=> Cached by 32 bytes buffer
|
|
||||||
// <64=> Cached by 64 bytes buffer
|
|
||||||
// <128=> Cached by 128 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <256=> Cached by 256 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <512=> Cached by 512 bytes buffer (HS Bulk or interrupt or isochronous EP)
|
|
||||||
// <1024=> Cached by 1024 bytes buffer (interrupt or isochronous EP)
|
|
||||||
// <id> usb_ep7_I_CACHE
|
|
||||||
#ifndef CONF_USB_EP7_I_CACHE
|
|
||||||
#define CONF_USB_EP7_I_CACHE 0
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <<< end of configuration section >>>
|
|
||||||
|
|
||||||
#endif // HPL_USB_CONFIG_H
|
|
@ -1,850 +0,0 @@
|
|||||||
/* Auto-generated config file usbd_config.h */
|
|
||||||
#ifndef USBD_CONFIG_H
|
|
||||||
#define USBD_CONFIG_H
|
|
||||||
|
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
|
||||||
|
|
||||||
// ---- USB Device Stack Core Options ----
|
|
||||||
|
|
||||||
// <q> High Speed Support
|
|
||||||
// <i> Enable high speed specific descriptors support, e.g., DeviceQualifierDescriptor and OtherSpeedConfiguration Descriptor.
|
|
||||||
// <i> High speed support require descriptors description array on start, for LS/FS and HS support in first and second place.
|
|
||||||
// <id> usbd_hs_sp
|
|
||||||
#ifndef CONF_USBD_HS_SP
|
|
||||||
#define CONF_USBD_HS_SP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ---- USB Device Stack Composite Options ----
|
|
||||||
|
|
||||||
// <e> Enable String Descriptors
|
|
||||||
// <id> usb_composite_str_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_STR_EN
|
|
||||||
#define CONF_USB_COMPOSITE_STR_EN 0
|
|
||||||
#endif
|
|
||||||
// <s> Language IDs
|
|
||||||
// <i> Language IDs in c format, split by comma (E.g., 0x0409 ...)
|
|
||||||
// <id> usb_composite_langid
|
|
||||||
#ifndef CONF_USB_COMPOSITE_LANGID
|
|
||||||
#define CONF_USB_COMPOSITE_LANGID "0x0409"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_LANGID_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_LANGID_DESC
|
|
||||||
#endif
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <h> Composite Device Descriptor
|
|
||||||
|
|
||||||
// <o> bcdUSB
|
|
||||||
// <0x0200=> USB 2.0 version
|
|
||||||
// <0x0210=> USB 2.1 version
|
|
||||||
// <id> usb_composite_bcdusb
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCDUSB
|
|
||||||
#define CONF_USB_COMPOSITE_BCDUSB 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bMaxPackeSize0
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <id> usb_composite_bmaxpksz0
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMAXPKSZ0
|
|
||||||
#define CONF_USB_COMPOSITE_BMAXPKSZ0 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> idVender <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_idvender
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IDVENDER
|
|
||||||
#define CONF_USB_COMPOSITE_IDVENDER 0x3eb
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> idProduct <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_idproduct
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IDPRODUCT
|
|
||||||
#define CONF_USB_COMPOSITE_IDPRODUCT 0x2421
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bcdDevice <0x0000-0xFFFF>
|
|
||||||
// <id> usb_composite_bcddevice
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCDDEVICE
|
|
||||||
#define CONF_USB_COMPOSITE_BCDDEVICE 0x100
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iManufact
|
|
||||||
// <id> usb_composite_imanufact_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_EN
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT (CONF_USB_COMPOSITE_IMANUFACT_EN * (CONF_USB_COMPOSITE_IMANUFACT_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iManufact
|
|
||||||
// <id> usb_composite_imanufact_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_STR
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_STR "Atmel"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IMANUFACT_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_IMANUFACT_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iProduct
|
|
||||||
// <id> usb_composite_iproduct_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_EN
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT \
|
|
||||||
(CONF_USB_COMPOSITE_IPRODUCT_EN * (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iProduct
|
|
||||||
// <id> usb_composite_iproduct_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_STR
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_STR "Composite Demo"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_IPRODUCT_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_IPRODUCT_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable string descriptor of iSerialNum
|
|
||||||
// <id> usb_composite_iserialnum_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_EN
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM \
|
|
||||||
(CONF_USB_COMPOSITE_ISERIALNUM_EN \
|
|
||||||
* (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN + CONF_USB_COMPOSITE_ISERIALNUM_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iSerialNum
|
|
||||||
// <id> usb_composite_iserialnum_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_STR
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_STR "123456789ABCDEF"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ISERIALNUM_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_ISERIALNUM_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <o> bNumConfigurations <0x01-0xFF>
|
|
||||||
// <id> usb_composite_bnumconfig
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BNUMCONFIG
|
|
||||||
#define CONF_USB_COMPOSITE_BNUMCONFIG 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <h> Composite Configuration Descriptor
|
|
||||||
// <o> bConfigurationValue <0x01-0xFF>
|
|
||||||
// <id> usb_composite_bconfigval
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BCONFIGVAL
|
|
||||||
#define CONF_USB_COMPOSITE_BCONFIGVAL 0x1
|
|
||||||
#endif
|
|
||||||
// <e> Enable string descriptor of iConfig
|
|
||||||
// <id> usb_composite_iconfig_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_EN
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG \
|
|
||||||
(CONF_USB_COMPOSITE_ICONFIG_EN \
|
|
||||||
* (CONF_USB_COMPOSITE_IMANUFACT_EN + CONF_USB_COMPOSITE_IPRODUCT_EN + CONF_USB_COMPOSITE_ISERIALNUM_EN \
|
|
||||||
+ CONF_USB_COMPOSITE_ICONFIG_EN))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <s> Unicode string of iConfig
|
|
||||||
// <id> usb_composite_iconfig_str
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_STR
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_STR ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_ICONFIG_STR_DESC
|
|
||||||
#define CONF_USB_COMPOSITE_ICONFIG_STR_DESC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <o> bmAttributes
|
|
||||||
// <0x80=> Bus power supply, not support for remote wakeup
|
|
||||||
// <0xA0=> Bus power supply, support for remote wakeup
|
|
||||||
// <0xC0=> Self powered, not support for remote wakeup
|
|
||||||
// <0xE0=> Self powered, support for remote wakeup
|
|
||||||
// <id> usb_composite_bmattri
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMATTRI
|
|
||||||
#define CONF_USB_COMPOSITE_BMATTRI 0x80
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> bMaxPower <0x00-0xFF>
|
|
||||||
// <id> usb_composite_bmaxpower
|
|
||||||
#ifndef CONF_USB_COMPOSITE_BMAXPOWER
|
|
||||||
#define CONF_USB_COMPOSITE_BMAXPOWER 0x32
|
|
||||||
#endif
|
|
||||||
// </h>
|
|
||||||
|
|
||||||
// <e> CDC ACM Support
|
|
||||||
// <id> usb_composite_cdc_acm_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_EN
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Comm Interrupt IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_EPADDR 0x82
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Comm Interrupt IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_comm_int_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_COMM_INT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_bulkin_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_EPADDR 0x81
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_builin_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK IN Endpoint wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_builin_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKIN_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_bulkout_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_EPADDR 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_buckout_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> CDC ACM Data BULK OUT Endpoint wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_cdc_acm_data_buckout_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ACM_DATA_BULKOUT_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> CDC ACM Echo Demo generation
|
|
||||||
// <id> conf_usb_composite_cdc_echo_demo
|
|
||||||
// <i> Invoke cdcdf_acm_demo_init(buf[wMaxPacketSize]) to enable the echo demo.
|
|
||||||
// <i> Buf is packet buffer for data receive and echo back.
|
|
||||||
// <i> The buffer is 4 byte aligned to support DMA.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_CDC_ECHO_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_CDC_ECHO_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Mouse Support
|
|
||||||
// <id> usb_composite_hid_mouse_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Mouse INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_mouse_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_INTIN_EPADDR 0x83
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Mouse INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_mouse_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_INTIN_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> HID Mouse Move Demo generation
|
|
||||||
// <id> conf_usb_composite_hid_mouse_demo
|
|
||||||
// <i> Invoke hiddf_demo_init(button1, button2, button3) to enabled the move demo.
|
|
||||||
// <i> Button1 and button3 are the pins used for mouse moving left and right.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_MOUSE_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_HID_MOUSE_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Keyboard Support
|
|
||||||
// <id> usb_composite_hid_keyboard_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_EPADDR 0x84
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTIN_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intout_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_EPADDR 0x2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Keyboard INTERRUPT OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_keyboard_intout_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_INTOUT_MAXPKSZ 0x8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> HID Keyboard Caps Lock Demo generation
|
|
||||||
// <id> conf_usb_composite_hid_keyboard_demo
|
|
||||||
// <i> Invoke hiddf_demo_init(button1, button2, button3) to enabled the move demo.
|
|
||||||
// <i> Buffon2 is the pin used for keyboard CAPS LOCK simulation.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_KEYBOARD_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_HID_KEYBOARD_DEMO 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> HID Generic Support
|
|
||||||
// <id> usb_composite_hid_generic_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_EN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_REPORT_LEN
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_REPORT_LEN 53
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_REPORT
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_REPORT \
|
|
||||||
0x06, 0xFF, 0xFF, 0x09, 0x01, 0xA1, 0x01, 0x09, 0x02, 0x09, 0x03, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, \
|
|
||||||
0x40, 0x81, 0x02, 0x09, 0x04, 0x09, 0x05, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x40, 0x91, 0x02, \
|
|
||||||
0x09, 0x06, 0x09, 0x07, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x04, 0xB1, 0x02, 0xC0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intin_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTIN_EPADDR 0x85
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT IN Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intin_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTIN_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTIN_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_hid_generic_intout_epaddr
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_EPADDR 0x3
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> HID Generic INTERRUPT OUT Endpoint wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <id> usb_composite_hid_generic_intout_maxpksz
|
|
||||||
// <i> Please make sure that the setting here is coincide with the endpoint setting in USB device driver.
|
|
||||||
#ifndef CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_HID_GENERIC_INTOUT_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> MSC Support
|
|
||||||
// <id> usb_composite_msc_support
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_EN
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_EN 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK Endpoints wMaxPacketSize
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulk_maxpksz
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ 0x40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK Endpoints wMaxPacketSize for High Speed
|
|
||||||
// <0x0008=> 8 bytes
|
|
||||||
// <0x0010=> 16 bytes
|
|
||||||
// <0x0020=> 32 bytes
|
|
||||||
// <0x0040=> 64 bytes
|
|
||||||
// <0x0080=> 128 bytes
|
|
||||||
// <0x0100=> 256 bytes
|
|
||||||
// <0x0200=> 512 bytes
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulk_maxpksz_hs
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ_HS
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULK_MAXPKSZ_HS 0x200
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK IN Endpoint Address
|
|
||||||
// <0x81=> EndpointAddress = 0x81
|
|
||||||
// <0x82=> EndpointAddress = 0x82
|
|
||||||
// <0x83=> EndpointAddress = 0x83
|
|
||||||
// <0x84=> EndpointAddress = 0x84
|
|
||||||
// <0x85=> EndpointAddress = 0x85
|
|
||||||
// <0x86=> EndpointAddress = 0x86
|
|
||||||
// <0x87=> EndpointAddress = 0x87
|
|
||||||
// <0x88=> EndpointAddress = 0x88
|
|
||||||
// <0x89=> EndpointAddress = 0x89
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulkin_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULKIN_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULKIN_EPADDR 0x86
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> MSC BULK OUT Endpoint Address
|
|
||||||
// <0x01=> EndpointAddress = 0x01
|
|
||||||
// <0x02=> EndpointAddress = 0x02
|
|
||||||
// <0x03=> EndpointAddress = 0x03
|
|
||||||
// <0x04=> EndpointAddress = 0x04
|
|
||||||
// <0x05=> EndpointAddress = 0x05
|
|
||||||
// <0x06=> EndpointAddress = 0x06
|
|
||||||
// <0x07=> EndpointAddress = 0x07
|
|
||||||
// <0x08=> EndpointAddress = 0x08
|
|
||||||
// <0x09=> EndpointAddress = 0x09
|
|
||||||
|
|
||||||
// <id> usb_composite_msc_bulkout_epaddr
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_BULKOUT_EPADDR
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_BULKOUT_EPADDR 0x4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable Demo code for Disk LUN handling
|
|
||||||
// <id> usb_composite_msc_demo_en
|
|
||||||
#ifndef CONF_USB_COMPOSITE_MSC_LUN_DEMO
|
|
||||||
#define CONF_USB_COMPOSITE_MSC_LUN_DEMO 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk access cache/buffer of sectors if non-RAM disk (e.g., SD/MMC) enabled <1-64>
|
|
||||||
// <id> conf_usb_msc_lun_buf_sectors
|
|
||||||
#ifndef CONF_USB_MSC_LUN_BUF_SECTORS
|
|
||||||
#define CONF_USB_MSC_LUN_BUF_SECTORS 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <e> Enable Demo for RAM Disk
|
|
||||||
// <id> conf_usb_msc_lun0_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN0_ENABLE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN0_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun0_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_RMB
|
|
||||||
#define CONF_USB_MSC_LUN0_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ISO
|
|
||||||
#define CONF_USB_MSC_LUN0_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN0_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN0_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_REPO
|
|
||||||
#define CONF_USB_MSC_LUN0_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN0_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN0_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN0_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <i> Windows will not show disk less than 20K, so 22K is used to reserve more RAM for APP
|
|
||||||
// <id> conf_usb_msc_lun0_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN0_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN0_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN0_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN0_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN0_CAPACITY * 1024 / CONF_USB_MSC_LUN0_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for SD/MMC Disk
|
|
||||||
// <i> SD/MMC stack must be added before enable SD/MMC demo
|
|
||||||
// <i> SD/MMC insert/eject not supported by this simple demo
|
|
||||||
// <id> conf_usb_msc_lun1_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN1_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN1_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <i> SD/MMC stack must be added before enable SD/MMC demo
|
|
||||||
// <i> SD/MMC insert/eject not supported by this simple demo
|
|
||||||
// <id> conf_usb_msc_lun1_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_RMB
|
|
||||||
#define CONF_USB_MSC_LUN1_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ISO
|
|
||||||
#define CONF_USB_MSC_LUN1_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN1_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN1_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_REPO
|
|
||||||
#define CONF_USB_MSC_LUN1_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN1_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN1_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN1_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN1_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN1_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN1_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN1_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN1_CAPACITY * 1024 / CONF_USB_MSC_LUN1_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for LUN 2
|
|
||||||
// <id> conf_usb_msc_lun2_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN2_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN2_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun2_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_RMB
|
|
||||||
#define CONF_USB_MSC_LUN2_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ISO
|
|
||||||
#define CONF_USB_MSC_LUN2_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN2_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN2_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_REPO
|
|
||||||
#define CONF_USB_MSC_LUN2_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN2_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN2_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN2_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <id> conf_usb_msc_lun2_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN2_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN2_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN2_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN2_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN2_CAPACITY * 1024 / CONF_USB_MSC_LUN2_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <e> Enable Demo for LUN 3
|
|
||||||
// <id> conf_usb_msc_lun3_enable
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ENABLE
|
|
||||||
#define CONF_USB_MSC_LUN3_ENABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_TYPE
|
|
||||||
#define CONF_USB_MSC_LUN3_TYPE 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <q> The disk is removable
|
|
||||||
// <id> conf_usb_msc_lun3_rmb
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_RMB
|
|
||||||
#define CONF_USB_MSC_LUN3_RMB 0x1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ISO
|
|
||||||
#define CONF_USB_MSC_LUN3_ISO 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ECMA
|
|
||||||
#define CONF_USB_MSC_LUN3_ECMA 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_ANSI
|
|
||||||
#define CONF_USB_MSC_LUN3_ANSI 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_REPO
|
|
||||||
#define CONF_USB_MSC_LUN3_REPO 0x01
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_FACTORY
|
|
||||||
#define CONF_USB_MSC_LUN3_FACTORY 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_PRODUCT
|
|
||||||
#define CONF_USB_MSC_LUN3_PRODUCT 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_PRODUCT_VERSION
|
|
||||||
#define CONF_USB_MSC_LUN3_PRODUCT_VERSION 0x00, 0x00, 0x00, 0x00
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// <o> Disk Size (in KB) <0x1-0xFFFFFFFF>
|
|
||||||
// <id> conf_usb_msc_lun3_capacity
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_CAPACITY
|
|
||||||
#define CONF_USB_MSC_LUN3_CAPACITY 22
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_BLOCK_SIZE
|
|
||||||
#define CONF_USB_MSC_LUN3_BLOCK_SIZE 512
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONF_USB_MSC_LUN3_LAST_BLOCK_ADDR
|
|
||||||
#define CONF_USB_MSC_LUN3_LAST_BLOCK_ADDR \
|
|
||||||
((uint32_t)CONF_USB_MSC_LUN3_CAPACITY * 1024 / CONF_USB_MSC_LUN3_BLOCK_SIZE - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// </e>
|
|
||||||
// </e>
|
|
||||||
|
|
||||||
// <<< end of configuration section >>>
|
|
||||||
|
|
||||||
#endif // USBD_CONFIG_H
|
|
@ -11,10 +11,6 @@ EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"
|
|||||||
|
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
CIRCUITPY_USB_MIDI = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
CIRCUITPY_GAMEPAD = 1
|
CIRCUITPY_GAMEPAD = 1
|
||||||
CIRCUITPY_BUSDEVICE = 1
|
CIRCUITPY_BUSDEVICE = 1
|
||||||
|
@ -8,26 +8,15 @@ CHIP_FAMILY = samd21
|
|||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
CIRCUITPY_ANALOGIO = 0
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_PS2IO = 0
|
|
||||||
CIRCUITPY_PULSEIO = 0
|
|
||||||
CIRCUITPY_PWMIO = 0
|
|
||||||
CIRCUITPY_AUDIOCORE = 0
|
|
||||||
CIRCUITPY_BUSIO = 0
|
|
||||||
CIRCUITPY_STORAGE = 1
|
|
||||||
|
|
||||||
CIRCUITPY_MATH = 1
|
|
||||||
CIRCUITPY_PIXELBUF = 1
|
|
||||||
CIRCUITPY_USB_MIDI = 1
|
|
||||||
CIRCUITPY_TOUCHIO = 1
|
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
CIRCUITPY_ANALOGIO = 0
|
||||||
SUPEROPT_VM = 0
|
CIRCUITPY_AUDIOCORE = 0
|
||||||
|
CIRCUITPY_BUSIO = 0
|
||||||
|
CIRCUITPY_PULSEIO = 0
|
||||||
|
CIRCUITPY_PWMIO = 0
|
||||||
|
CIRCUITPY_ROTARYIO = 0
|
||||||
|
CIRCUITPY_RTC = 0
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
||||||
|
@ -8,26 +8,17 @@ CHIP_FAMILY = samd21
|
|||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
CIRCUITPY_ANALOGIO = 0
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_PS2IO = 0
|
|
||||||
CIRCUITPY_PULSEIO = 0
|
|
||||||
CIRCUITPY_PWMIO = 0
|
|
||||||
CIRCUITPY_AUDIOCORE = 0
|
|
||||||
CIRCUITPY_BUSIO = 1
|
|
||||||
CIRCUITPY_STORAGE = 1
|
|
||||||
|
|
||||||
CIRCUITPY_MATH = 1
|
|
||||||
CIRCUITPY_PIXELBUF = 0
|
|
||||||
CIRCUITPY_USB_MIDI = 1
|
|
||||||
CIRCUITPY_TOUCHIO = 1
|
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
CIRCUITPY_ANALOGIO = 0
|
||||||
SUPEROPT_VM = 0
|
CIRCUITPY_AUDIOCORE = 0
|
||||||
|
CIRCUITPY_ROTARYIO = 0
|
||||||
|
CIRCUITPY_RTC = 0
|
||||||
|
CIRCUITPY_PULSEIO = 0
|
||||||
|
CIRCUITPY_PWMIO = 0
|
||||||
|
|
||||||
|
CIRCUITPY_PIXELBUF = 0
|
||||||
|
CIRCUITPY_TOUCHIO = 1
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID
|
||||||
|
@ -8,26 +8,15 @@ CHIP_FAMILY = samd21
|
|||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
CIRCUITPY_ANALOGIO = 0
|
CIRCUITPY_ANALOGIO = 0
|
||||||
CIRCUITPY_ROTARYIO = 1
|
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_PS2IO = 0
|
|
||||||
CIRCUITPY_PULSEIO = 0
|
CIRCUITPY_PULSEIO = 0
|
||||||
CIRCUITPY_PWMIO = 0
|
CIRCUITPY_PWMIO = 0
|
||||||
CIRCUITPY_AUDIOCORE = 0
|
CIRCUITPY_AUDIOCORE = 0
|
||||||
CIRCUITPY_BUSIO = 0
|
CIRCUITPY_BUSIO = 0
|
||||||
CIRCUITPY_STORAGE = 1
|
|
||||||
|
|
||||||
CIRCUITPY_MATH = 0
|
|
||||||
CIRCUITPY_PIXELBUF = 1
|
|
||||||
CIRCUITPY_USB_MIDI = 1
|
|
||||||
CIRCUITPY_TOUCHIO = 0
|
CIRCUITPY_TOUCHIO = 0
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
||||||
|
@ -9,25 +9,14 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
CIRCUITPY_ANALOGIO = 1
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_PS2IO = 0
|
|
||||||
CIRCUITPY_PULSEIO = 0
|
CIRCUITPY_PULSEIO = 0
|
||||||
CIRCUITPY_PWMIO = 0
|
CIRCUITPY_PWMIO = 0
|
||||||
CIRCUITPY_AUDIOCORE = 0
|
CIRCUITPY_AUDIOCORE = 0
|
||||||
CIRCUITPY_BUSIO = 0
|
CIRCUITPY_BUSIO = 0
|
||||||
CIRCUITPY_STORAGE = 1
|
|
||||||
|
|
||||||
CIRCUITPY_MATH = 1
|
|
||||||
CIRCUITPY_PIXELBUF = 1
|
|
||||||
CIRCUITPY_USB_MIDI = 1
|
|
||||||
CIRCUITPY_TOUCHIO = 1
|
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_SimpleMath
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_SimpleMath
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,16 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "MX25L51245G","GD25S512MD"
|
EXTERNAL_FLASH_DEVICES = "MX25L51245G","GD25S512MD"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 60
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
|
@ -14,11 +14,8 @@ CIRCUITPY_AUDIOIO = 1
|
|||||||
CIRCUITPY_AUDIOBUSIO = 1
|
CIRCUITPY_AUDIOBUSIO = 1
|
||||||
# Pins for I2SOut are not available.
|
# Pins for I2SOut are not available.
|
||||||
CIRCUITPY_AUDIOBUSIO_I2SOUT = 0
|
CIRCUITPY_AUDIOBUSIO_I2SOUT = 0
|
||||||
CIRCUITPY_PULSEIO = 0
|
CIRCUITPY_PWMIO = 0
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_USB_HID = 1
|
CIRCUITPY_USB_HID = 1
|
||||||
CIRCUITPY_USB_MIDI = 0
|
CIRCUITPY_USB_MIDI = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
@ -9,7 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
@ -9,29 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
|
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
MICROPY_PY_ASYNC_AWAIT = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
ifeq ($(TRANSLATION), ja)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), zh_Latn_pinyin)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), de_DE)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
endif
|
|
||||||
|
@ -10,16 +10,13 @@ SPI_FLASH_FILESYSTEM = 1
|
|||||||
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
# Make room for frozen libs.
|
# Turn off displayio to make room for frozen libs.
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_DISPLAYIO = 0
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
MICROPY_PY_ASYNC_AWAIT = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
# Now we actually have a lot of room. Put back some useful modules.
|
||||||
CFLAGS_INLINE_LIMIT = 55
|
CIRCUITPY_BITBANGIO = 1
|
||||||
|
CIRCUITPY_COUNTIO = 1
|
||||||
|
CIRCUITPY_BUSDEVICE = 1
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_CircuitPlayground
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_CircuitPlayground
|
||||||
|
@ -11,19 +11,9 @@ EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
|||||||
|
|
||||||
# Turn off features and optimizations for Crickit build to make room for additional frozen libs.
|
# Turn off features and optimizations for Crickit build to make room for additional frozen libs.
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
CIRCUITPY_BUSDEVICE = 1
|
||||||
CIRCUITPY_DISPLAYIO = 0
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_PIXELBUF = 1
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_CircuitPlayground
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_CircuitPlayground
|
||||||
|
@ -9,23 +9,16 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
||||||
|
|
||||||
# Turn off features and optimizations for Crickit build to make room for additional frozen libs.
|
# Turn off features and optimizations for displayio build to make room for additional frozen libs.
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_PIXELBUF = 0
|
CIRCUITPY_PIXELBUF = 0
|
||||||
CIRCUITPY_RE = 0
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
|
CIRCUITPY_USB_MIDI = 0
|
||||||
|
|
||||||
# So not all of displayio, sorry!
|
# So not all of displayio, sorry!
|
||||||
CIRCUITPY_VECTORIO = 0
|
CIRCUITPY_VECTORIO = 0
|
||||||
|
CIRCUITPY_BITMAPTOOLS = 0
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_CircuitPlayground
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_CircuitPlayground
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -13,21 +13,3 @@ EXTERNAL_FLASH_DEVICES = AT25DF081A
|
|||||||
|
|
||||||
CIRCUITPY_AUDIOIO = 0
|
CIRCUITPY_AUDIOIO = 0
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
CIRCUITPY_AUDIOBUSIO = 0
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
ifeq ($(TRANSLATION), zh_Latn_pinyin)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), de_DE)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
endif
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -10,28 +10,10 @@ SPI_FLASH_FILESYSTEM = 1
|
|||||||
EXTERNAL_FLASH_DEVICES = GD25Q32C
|
EXTERNAL_FLASH_DEVICES = GD25Q32C
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_GAMEPAD = 0
|
|
||||||
CIRCUITPY_DISPLAYIO = 0
|
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
|
CIRCUITPY_SDCARDIO = 1
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
ifeq ($(TRANSLATION), zh_Latn_pinyin)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), ja)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), de_DE)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
endif
|
|
||||||
|
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_RFM9x
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_RFM9x
|
||||||
|
@ -14,15 +14,6 @@ LONGINT_IMPL = MPZ
|
|||||||
CIRCUITPY_FULLBUILD = 0
|
CIRCUITPY_FULLBUILD = 0
|
||||||
CIRCUITPY_BITBANGIO = 0
|
CIRCUITPY_BITBANGIO = 0
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
CIRCUITPY_BITMAPTOOLS = 0
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 1
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
CIRCUITPY_BUSDEVICE = 0
|
||||||
CIRCUITPY_DISPLAYIO = 0
|
|
||||||
CIRCUITPY_TOUCHIO = 0
|
CIRCUITPY_TOUCHIO = 0
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 60
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
@ -10,6 +10,3 @@ CHIP_FAMILY = samd51
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "GD25Q32C"
|
EXTERNAL_FLASH_DEVICES = "GD25Q32C"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 60
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
@ -9,7 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,15 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -11,14 +11,7 @@ EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
|||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
# Make space for frozen libs
|
# Make space for frozen libs
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_DISPLAYIO = 0
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_GAMEPAD = 0
|
|
||||||
CFLAGS_INLINE_LIMIT = 50
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Crickit
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Crickit
|
||||||
|
@ -13,20 +13,12 @@ CIRCUITPY_FULL_BUILD = 0
|
|||||||
# A number of modules are removed for RFM69 to make room for frozen libraries.
|
# A number of modules are removed for RFM69 to make room for frozen libraries.
|
||||||
# Many I/O functions are not available.
|
# Many I/O functions are not available.
|
||||||
CIRCUITPY_ANALOGIO = 1
|
CIRCUITPY_ANALOGIO = 1
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_PULSEIO = 0
|
|
||||||
CIRCUITPY_NEOPIXEL_WRITE = 1
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_USB_MIDI = 0
|
CIRCUITPY_USB_MIDI = 0
|
||||||
CIRCUITPY_USB_HID = 0
|
CIRCUITPY_USB_HID = 0
|
||||||
CIRCUITPY_TOUCHIO = 0
|
CIRCUITPY_TOUCHIO = 0
|
||||||
CIRCUITPY_BUSDEVICE = 1
|
CIRCUITPY_BUSDEVICE = 1
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
|
|
||||||
# Make more room.
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_RFM69
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_RFM69
|
||||||
|
@ -14,20 +14,12 @@ CIRCUITPY_FULL_BUILD = 0
|
|||||||
# A number of modules are removed for RFM9x to make room for frozen libraries.
|
# A number of modules are removed for RFM9x to make room for frozen libraries.
|
||||||
# Many I/O functions are not available.
|
# Many I/O functions are not available.
|
||||||
CIRCUITPY_ANALOGIO = 1
|
CIRCUITPY_ANALOGIO = 1
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_PULSEIO = 0
|
|
||||||
CIRCUITPY_NEOPIXEL_WRITE = 1
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_USB_MIDI = 0
|
CIRCUITPY_USB_MIDI = 0
|
||||||
CIRCUITPY_USB_HID = 0
|
CIRCUITPY_USB_HID = 0
|
||||||
CIRCUITPY_TOUCHIO = 0
|
CIRCUITPY_TOUCHIO = 0
|
||||||
CIRCUITPY_BUSDEVICE = 1
|
CIRCUITPY_BUSDEVICE = 1
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
# Make more room.
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_RFM9x
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_RFM9x
|
||||||
|
@ -9,19 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "S25FL064L"
|
EXTERNAL_FLASH_DEVICES = "S25FL064L"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
# supersized, not ultra-supersized
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
|
@ -10,5 +10,4 @@ QSPI_FLASH_FILESYSTEM = 1
|
|||||||
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_VECTORIO = 1
|
|
||||||
CIRCUITPY_CANIO = 1
|
CIRCUITPY_CANIO = 1
|
||||||
|
@ -10,5 +10,4 @@ QSPI_FLASH_FILESYSTEM = 1
|
|||||||
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_VECTORIO = 1
|
|
||||||
CIRCUITPY__EVE = 1
|
CIRCUITPY__EVE = 1
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
#define MICROPY_HW_BOARD_NAME "Adafruit Feather RadioFruit Zigbee"
|
|
||||||
#define MICROPY_HW_MCU_NAME "samr21g18"
|
|
||||||
|
|
||||||
#define MICROPY_HW_LED_STATUS (&pin_PA27)
|
|
||||||
#define MICROPY_HW_NEOPIXEL (&pin_PA22)
|
|
||||||
|
|
||||||
#define SPI_FLASH_MOSI_PIN &pin_PA31
|
|
||||||
#define SPI_FLASH_MISO_PIN &pin_PA30
|
|
||||||
#define SPI_FLASH_SCK_PIN &pin_PA17
|
|
||||||
#define SPI_FLASH_CS_PIN &pin_PA28
|
|
||||||
|
|
||||||
// These are pins not to reset.
|
|
||||||
#define MICROPY_PORT_A (PORT_PA22)
|
|
||||||
#define MICROPY_PORT_B (0)
|
|
||||||
#define MICROPY_PORT_C (0)
|
|
||||||
|
|
||||||
#define BOARD_HAS_CRYSTAL 1
|
|
||||||
|
|
||||||
#define DEFAULT_I2C_BUS_SCL (&pin_PA13)
|
|
||||||
#define DEFAULT_I2C_BUS_SDA (&pin_PA12)
|
|
||||||
|
|
||||||
#define DEFAULT_SPI_BUS_SCK (&pin_PB23)
|
|
||||||
#define DEFAULT_SPI_BUS_MOSI (&pin_PB22)
|
|
||||||
#define DEFAULT_SPI_BUS_MISO (&pin_PA23)
|
|
||||||
|
|
||||||
#define DEFAULT_UART_BUS_RX (&pin_PA09)
|
|
||||||
#define DEFAULT_UART_BUS_TX (&pin_PA08)
|
|
||||||
|
|
||||||
// USB is always used internally so skip the pin objects for it.
|
|
||||||
#define IGNORE_PIN_PA24 1
|
|
||||||
#define IGNORE_PIN_PA25 1
|
|
@ -1,39 +0,0 @@
|
|||||||
USB_VID = 0x239A
|
|
||||||
USB_PID = 0x80D0
|
|
||||||
USB_PRODUCT = "Feather RadioFruit Zigbee"
|
|
||||||
USB_MANUFACTURER = "Adafruit Industries LLC"
|
|
||||||
|
|
||||||
CHIP_VARIANT = SAMR21G18A
|
|
||||||
CHIP_FAMILY = samd21
|
|
||||||
|
|
||||||
SPI_FLASH_FILESYSTEM = 1
|
|
||||||
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
|
||||||
LONGINT_IMPL = MPZ
|
|
||||||
|
|
||||||
# No I2S on SAMR21G
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
# No DAC on SAMR21G
|
|
||||||
CIRCUITPY_AUDIOIO = 0
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
ifeq ($(TRANSLATION), zh_Latn_pinyin)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), ja)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), de_DE)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
endif
|
|
@ -1,45 +0,0 @@
|
|||||||
#include "shared-bindings/board/__init__.h"
|
|
||||||
|
|
||||||
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PB02) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_PB03) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_A2), MP_ROM_PTR(&pin_PA04) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_A3), MP_ROM_PTR(&pin_PA05) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_A4), MP_ROM_PTR(&pin_PA06) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_A5), MP_ROM_PTR(&pin_PA07) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PB23) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_PB22) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_PA23) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_PA09) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_PA09) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_PA08) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_PA08) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_PA12) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_PA13) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D5), MP_ROM_PTR(&pin_PA14) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D6), MP_ROM_PTR(&pin_PA15) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D9), MP_ROM_PTR(&pin_PA16) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_PA18) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_PA19) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_PA22) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PA22) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA27) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
|
|
||||||
|
|
||||||
// Internally connected within the package
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_DIG3), MP_ROM_PTR(&pin_PA10) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_DIG4), MP_ROM_PTR(&pin_PA11) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_SLP_TR), MP_ROM_PTR(&pin_PA20) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_IRQ), MP_ROM_PTR(&pin_PB00) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_DIG1), MP_ROM_PTR(&pin_PA16) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_DIG2), MP_ROM_PTR(&pin_PA17) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_RF_MOSI), MP_ROM_PTR(&pin_PB30) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_SEL), MP_ROM_PTR(&pin_PB31) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_CLKM), MP_ROM_PTR(&pin_PC16) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_RF_SCK), MP_ROM_PTR(&pin_PC18) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_RF_MISO), MP_ROM_PTR(&pin_PC19) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_RESETN), MP_ROM_PTR(&pin_PB15) },
|
|
||||||
};
|
|
||||||
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -12,20 +12,7 @@ LONGINT_IMPL = NONE
|
|||||||
|
|
||||||
# To keep the build small
|
# To keep the build small
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
CIRCUITPY_AUDIOBUSIO = 0
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_GAMEPAD = 0
|
CIRCUITPY_GAMEPAD = 0
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 55
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_LIS3DH
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_LIS3DH
|
||||||
|
@ -6,20 +6,6 @@ USB_MANUFACTURER = "Electronic Cats"
|
|||||||
CHIP_VARIANT = SAMD21E18A
|
CHIP_VARIANT = SAMD21E18A
|
||||||
CHIP_FAMILY = samd21
|
CHIP_FAMILY = samd21
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 0
|
|
||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
|
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_NEOPIXEL_WRITE = 0
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
CIRCUITPY_USB_MIDI = 1
|
|
||||||
CIRCUITPY_TOUCHIO = 0
|
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -12,32 +12,4 @@ LONGINT_IMPL = MPZ
|
|||||||
|
|
||||||
CIRCUITPY_BITBANG_APA102 = 1
|
CIRCUITPY_BITBANG_APA102 = 1
|
||||||
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
CIRCUITPY_PULSEIO = 0
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_GAMEPAD = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
# too itsy bitsy for all of displayio
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 60
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
ifeq ($(TRANSLATION), ja)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), zh_Latn_pinyin)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), de_DE)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
endif
|
|
||||||
|
@ -12,12 +12,15 @@ LONGINT_IMPL = MPZ
|
|||||||
# Not needed.
|
# Not needed.
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
CIRCUITPY_AUDIOBUSIO = 0
|
||||||
CIRCUITPY_AUDIOMP3 = 0
|
CIRCUITPY_AUDIOMP3 = 0
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_BLEIO_HCI = 0
|
CIRCUITPY_BLEIO_HCI = 0
|
||||||
CIRCUITPY_DISPLAYIO = 0
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||||
|
CIRCUITPY_MSGPACK = 0
|
||||||
CIRCUITPY_PS2IO = 0
|
CIRCUITPY_PS2IO = 0
|
||||||
CIRCUITPY_RGBMATRIX = 0
|
CIRCUITPY_RGBMATRIX = 0
|
||||||
|
CIRCUITPY_ROTARYIO = 0
|
||||||
|
CIRCUITPY_TOUCHIO = 0
|
||||||
|
|
||||||
CIRCUITPY_ULAB = 0
|
CIRCUITPY_ULAB = 0
|
||||||
|
|
||||||
# Override optimization to keep binary small
|
# Override optimization to keep binary small
|
||||||
|
@ -9,9 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
CIRCUITPY_ROTARYIO = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,15 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
MICROPY_PY_ASYNC_AWAIT = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -10,6 +10,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -10,6 +10,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,25 +9,19 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
CIRCUITPY_ANALOGIO = 0
|
CIRCUITPY_ANALOGIO = 0
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_PS2IO = 0
|
|
||||||
CIRCUITPY_PULSEIO = 0
|
CIRCUITPY_PULSEIO = 0
|
||||||
CIRCUITPY_PWMIO = 0
|
CIRCUITPY_PWMIO = 0
|
||||||
CIRCUITPY_AUDIOCORE = 0
|
CIRCUITPY_AUDIOCORE = 0
|
||||||
CIRCUITPY_BUSIO = 0
|
CIRCUITPY_BUSIO = 0
|
||||||
CIRCUITPY_STORAGE = 1
|
|
||||||
|
|
||||||
CIRCUITPY_MATH = 1
|
|
||||||
CIRCUITPY_PIXELBUF = 1
|
CIRCUITPY_PIXELBUF = 1
|
||||||
CIRCUITPY_USB_MIDI = 1
|
CIRCUITPY_USB_MIDI = 1
|
||||||
CIRCUITPY_TOUCHIO = 1
|
CIRCUITPY_TOUCHIO = 1
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
||||||
|
@ -11,15 +11,8 @@ LONGINT_IMPL = NONE
|
|||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
CIRCUITPY_PEW = 1
|
CIRCUITPY_PEW = 1
|
||||||
CIRCUITPY_ANALOGIO = 1
|
|
||||||
CIRCUITPY_MATH = 1
|
|
||||||
CIRCUITPY_NEOPIXEL_WRITE = 1
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_USB_MIDI = 0
|
CIRCUITPY_USB_MIDI = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/pew-pewpew-standalone-10.x
|
FROZEN_MPY_DIRS += $(TOP)/frozen/pew-pewpew-standalone-10.x
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -8,6 +8,7 @@ CHIP_FAMILY = samd21
|
|||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
# A number of modules are removed for pIRKey to make room for frozen libraries.
|
# A number of modules are removed for pIRKey to make room for frozen libraries.
|
||||||
# Many I/O functions are not available.
|
# Many I/O functions are not available.
|
||||||
@ -15,16 +16,10 @@ LONGINT_IMPL = NONE
|
|||||||
CIRCUITPY_ANALOGIO = 0
|
CIRCUITPY_ANALOGIO = 0
|
||||||
CIRCUITPY_MATH = 0
|
CIRCUITPY_MATH = 0
|
||||||
CIRCUITPY_NEOPIXEL_WRITE = 0
|
CIRCUITPY_NEOPIXEL_WRITE = 0
|
||||||
CIRCUITPY_PULSEIO = 1
|
|
||||||
CIRCUITPY_ROTARYIO = 0
|
CIRCUITPY_ROTARYIO = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
CIRCUITPY_SAMD = 0
|
|
||||||
CIRCUITPY_USB_MIDI = 1
|
CIRCUITPY_USB_MIDI = 1
|
||||||
CIRCUITPY_TOUCHIO = 0
|
CIRCUITPY_TOUCHIO = 0
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
# FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DotStar
|
# FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DotStar
|
||||||
|
@ -9,8 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -6,19 +6,6 @@ USB_MANUFACTURER = "Adafruit Industries LLC"
|
|||||||
CHIP_VARIANT = SAMD21E18A
|
CHIP_VARIANT = SAMD21E18A
|
||||||
CHIP_FAMILY = samd21
|
CHIP_FAMILY = samd21
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 0
|
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
||||||
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,8 +9,4 @@ CHIP_FAMILY = samd51
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
# No I2S on SAMD51
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
CIRCUITPY_USTACK = 1
|
|
||||||
|
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
|
||||||
|
@ -9,5 +9,3 @@ CHIP_FAMILY = samd51
|
|||||||
QSPI_FLASH_FILESYSTEM = 1
|
QSPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
|
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_VECTORIO = 1
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,13 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = GD25Q32C
|
EXTERNAL_FLASH_DEVICES = GD25Q32C
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_GAMEPAD = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,8 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
CIRCUITPY_I2CPERIPHERAL = 1
|
|
||||||
CIRCUITPY_TOUCHIO = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,5 +9,3 @@ CHIP_FAMILY = samd51
|
|||||||
QSPI_FLASH_FILESYSTEM = 1
|
QSPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_VECTORIO = 1
|
|
||||||
|
@ -9,30 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
|
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_GAMEPAD = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 60
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
ifeq ($(TRANSLATION), zh_Latn_pinyin)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), ja)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), de_DE)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
endif
|
|
||||||
|
@ -12,11 +12,5 @@ LONGINT_IMPL = MPZ
|
|||||||
|
|
||||||
CIRCUITPY_AUDIOIO = 0
|
CIRCUITPY_AUDIOIO = 0
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
CIRCUITPY_AUDIOBUSIO = 0
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
|
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DotStar
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DotStar
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
@ -10,6 +10,3 @@ INTERNAL_FLASH_FILESYSTEM = 1
|
|||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -11,4 +11,3 @@ EXTERNAL_FLASH_DEVICES = "W25Q32FV"
|
|||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
@ -9,30 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "W25Q32FV"
|
EXTERNAL_FLASH_DEVICES = "W25Q32FV"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_GAMEPAD = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 60
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
ifeq ($(TRANSLATION), ja)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), zh_Latn_pinyin)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), de_DE)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
endif
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -9,17 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = "W25Q64JVxQ"
|
EXTERNAL_FLASH_DEVICES = "W25Q64JVxQ"
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_MSGPACK = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
CIRCUITPY_BUSDEVICE = 0
|
|
||||||
MICROPY_PY_ASYNC_AWAIT = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -12,29 +12,3 @@ EXTERNAL_FLASH_DEVICES = AT25SF161
|
|||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_BITBANG_APA102 = 1
|
CIRCUITPY_BITBANG_APA102 = 1
|
||||||
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_GAMEPAD = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
CIRCUITPY_VECTORIO = 0
|
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 60
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
ifeq ($(TRANSLATION), zh_Latn_pinyin)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), ja)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
endif
|
|
||||||
ifeq ($(TRANSLATION), de_DE)
|
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
endif
|
|
||||||
|
@ -9,9 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# On this particular board, these save about 180 bytes. On other boards, they may -increase- space used.
|
|
||||||
CFLAGS_BOARD = -fweb -frename-registers
|
|
||||||
|
@ -9,19 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICES = W25Q32BV
|
EXTERNAL_FLASH_DEVICES = W25Q32BV
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
|
||||||
CIRCUITPY_BITBANGIO = 0
|
|
||||||
CIRCUITPY_BITMAPTOOLS = 0
|
|
||||||
CIRCUITPY_COUNTIO = 0
|
|
||||||
CIRCUITPY_RTC = 0
|
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_I2CPERIPHERAL = 0
|
|
||||||
MICROPY_PY_ASYNC_AWAIT = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
CFLAGS_INLINE_LIMIT = 35
|
|
||||||
|
|
||||||
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
|
||||||
|
@ -9,6 +9,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
@ -34,5 +34,3 @@ CIRCUITPY_BUSDEVICE = 0
|
|||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage/ugame10
|
FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage/ugame10
|
||||||
|
|
||||||
CIRCUITPY_DISPLAY_FONT = $(TOP)/ports/atmel-samd/boards/ugame10/brutalist-6.bdf
|
CIRCUITPY_DISPLAY_FONT = $(TOP)/ports/atmel-samd/boards/ugame10/brutalist-6.bdf
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
|
@ -8,11 +8,9 @@ CHIP_VARIANT = SAMD21G18A
|
|||||||
CHIP_FAMILY = samd21
|
CHIP_FAMILY = samd21
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# Make room for frozen libs.
|
# Make room for frozen libs.
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
CIRCUITPY_FREQUENCYIO = 0
|
||||||
|
@ -8,24 +8,20 @@ CHIP_VARIANT = SAMD21G18A
|
|||||||
CHIP_FAMILY = samd21
|
CHIP_FAMILY = samd21
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
CIRCUITPY_FULL_BUILD = 0
|
CIRCUITPY_FULL_BUILD = 0
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
|
||||||
SUPEROPT_VM = 0
|
|
||||||
|
|
||||||
# Make room for frozen libs.
|
# Make room for frozen libs.
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
|
||||||
CIRCUITPY_ANALOGIO=0
|
CIRCUITPY_ANALOGIO=0
|
||||||
|
CIRCUITPY_BUSDEVICE=1
|
||||||
CIRCUITPY_NEOPIXEL_WRITE=0
|
CIRCUITPY_NEOPIXEL_WRITE=0
|
||||||
CIRCUITPY_PULSEIO=0
|
CIRCUITPY_PULSEIO=0
|
||||||
CIRCUITPY_ROTARYIO=0
|
CIRCUITPY_ROTARYIO=0
|
||||||
CIRCUITPY_TOUCHIO_USE_NATIVE=0
|
|
||||||
CIRCUITPY_TOUCHIO=0
|
CIRCUITPY_TOUCHIO=0
|
||||||
CIRCUITPY_USB_MIDI=0
|
CIRCUITPY_USB_MIDI=0
|
||||||
CIRCUITPY_RTC=0
|
CIRCUITPY_RTC=0
|
||||||
CIRCUITPY_COUNTIO=0
|
CIRCUITPY_SDCARDIO=1
|
||||||
CIRCUITPY_BUSDEVICE=1
|
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_SD
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_SD
|
||||||
|
@ -20,8 +20,6 @@ endif
|
|||||||
|
|
||||||
INTERNAL_LIBM = 1
|
INTERNAL_LIBM = 1
|
||||||
|
|
||||||
USB_SERIAL_NUMBER_LENGTH = 32
|
|
||||||
|
|
||||||
# Number of USB endpoint pairs.
|
# Number of USB endpoint pairs.
|
||||||
USB_NUM_EP = 8
|
USB_NUM_EP = 8
|
||||||
|
|
||||||
@ -34,28 +32,33 @@ ifeq ($(CHIP_FAMILY),samd21)
|
|||||||
|
|
||||||
# The ?='s allow overriding in mpconfigboard.mk.
|
# The ?='s allow overriding in mpconfigboard.mk.
|
||||||
|
|
||||||
|
# Some of these are on by default with CIRCUITPY_FULL_BUILD, but don't
|
||||||
|
# fit in 256kB of flash
|
||||||
|
|
||||||
CIRCUITPY_AUDIOMIXER ?= 0
|
CIRCUITPY_AUDIOMIXER ?= 0
|
||||||
CIRCUITPY_BINASCII ?= 0
|
CIRCUITPY_BINASCII ?= 0
|
||||||
|
CIRCUITPY_BITBANGIO ?= 0
|
||||||
|
CIRCUITPY_BITMAPTOOLS ?= 0
|
||||||
|
CIRCUITPY_BUSDEVICE ?= 0
|
||||||
CIRCUITPY_AUDIOMP3 ?= 0
|
CIRCUITPY_AUDIOMP3 ?= 0
|
||||||
|
CIRCUITPY_BLEIO_HCI = 0
|
||||||
CIRCUITPY_BUILTINS_POW3 ?= 0
|
CIRCUITPY_BUILTINS_POW3 ?= 0
|
||||||
CIRCUITPY_COMPUTED_GOTO_SAVE_SPACE ?= 1
|
CIRCUITPY_COMPUTED_GOTO_SAVE_SPACE ?= 1
|
||||||
CIRCUITPY_FREQUENCYIO ?= 0
|
CIRCUITPY_COUNTIO ?= 0
|
||||||
CIRCUITPY_JSON ?= 0
|
|
||||||
CIRCUITPY_SYNTHIO ?= 0
|
|
||||||
CIRCUITPY_TOUCHIO_USE_NATIVE ?= 1
|
|
||||||
|
|
||||||
# No room for HCI _bleio on SAMD21.
|
|
||||||
CIRCUITPY_BLEIO_HCI = 0
|
|
||||||
|
|
||||||
CIRCUITPY_SDCARDIO ?= 0
|
|
||||||
|
|
||||||
# Not enough RAM for framebuffers
|
# Not enough RAM for framebuffers
|
||||||
CIRCUITPY_FRAMEBUFFERIO ?= 0
|
CIRCUITPY_FRAMEBUFFERIO ?= 0
|
||||||
|
CIRCUITPY_FREQUENCYIO ?= 0
|
||||||
# Not enough room in 192kB or 256kB builds for secondary CDC.
|
CIRCUITPY_I2CPERIPHERAL ?= 0
|
||||||
CIRCUITPY_USB_CDC ?= 0
|
CIRCUITPY_JSON ?= 0
|
||||||
|
CIRCUITPY_MSGPACK ?= 0
|
||||||
|
CIRCUITPY_RE ?= 0
|
||||||
|
CIRCUITPY_SDCARDIO ?= 0
|
||||||
|
CIRCUITPY_SYNTHIO ?= 0
|
||||||
|
CIRCUITPY_TOUCHIO_USE_NATIVE ?= 1
|
||||||
CIRCUITPY_ULAB = 0
|
CIRCUITPY_ULAB = 0
|
||||||
|
CIRCUITPY_VECTORIO = 0
|
||||||
|
|
||||||
|
MICROPY_PY_ASYNC_AWAIT = 0
|
||||||
|
|
||||||
ifeq ($(TRANSLATION), ja)
|
ifeq ($(TRANSLATION), ja)
|
||||||
RELEASE_NEEDS_CLEAN_BUILD = 1
|
RELEASE_NEEDS_CLEAN_BUILD = 1
|
||||||
@ -67,6 +70,14 @@ RELEASE_NEEDS_CLEAN_BUILD = 1
|
|||||||
CIRCUITPY_TERMINALIO = 0
|
CIRCUITPY_TERMINALIO = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
SUPEROPT_GC = 0
|
||||||
|
SUPEROPT_VM = 0
|
||||||
|
|
||||||
|
ifeq ($(CIRCUITPY_FULL_BUILD),0)
|
||||||
|
# On the smallest boards, this saves about 180 bytes. On other boards, it may -increase- space used.
|
||||||
|
CFLAGS_BOARD = -fweb -frename-registers
|
||||||
|
endif
|
||||||
|
|
||||||
endif # samd21
|
endif # samd21
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -32,6 +32,15 @@
|
|||||||
// 64kiB stack
|
// 64kiB stack
|
||||||
#define CIRCUITPY_DEFAULT_STACK_SIZE (0x10000)
|
#define CIRCUITPY_DEFAULT_STACK_SIZE (0x10000)
|
||||||
|
|
||||||
|
// CXD56 architecture uses fixed endpoint numbers.
|
||||||
|
// Override default definitions in circuitpy_mpconfig.h,
|
||||||
|
// so define these before #include'ing that file.
|
||||||
|
#define USB_CDC_EP_NUM_NOTIFICATION (3)
|
||||||
|
#define USB_CDC_EP_NUM_DATA_OUT (2)
|
||||||
|
#define USB_CDC_EP_NUM_DATA_IN (2)
|
||||||
|
#define USB_MSC_EP_NUM_OUT (5)
|
||||||
|
#define USB_MSC_EP_NUM_IN (4)
|
||||||
|
|
||||||
#include "py/circuitpy_mpconfig.h"
|
#include "py/circuitpy_mpconfig.h"
|
||||||
|
|
||||||
#define MICROPY_BYTES_PER_GC_BLOCK (32)
|
#define MICROPY_BYTES_PER_GC_BLOCK (32)
|
||||||
|
@ -1,11 +1,4 @@
|
|||||||
USB_SERIAL_NUMBER_LENGTH = 10
|
|
||||||
USB_HIGHSPEED = 1
|
USB_HIGHSPEED = 1
|
||||||
USB_RENUMBER_ENDPOINTS = 0
|
|
||||||
USB_CDC_EP_NUM_NOTIFICATION = 3
|
|
||||||
USB_CDC_EP_NUM_DATA_OUT = 2
|
|
||||||
USB_CDC_EP_NUM_DATA_IN = 1
|
|
||||||
USB_MSC_EP_NUM_OUT = 5
|
|
||||||
USB_MSC_EP_NUM_IN = 4
|
|
||||||
|
|
||||||
# Number of USB endpoint pairs.
|
# Number of USB endpoint pairs.
|
||||||
USB_NUM_EP = 6
|
USB_NUM_EP = 6
|
||||||
|
@ -6,9 +6,6 @@ MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
|
|||||||
# Internal math library is substantially smaller than toolchain one
|
# Internal math library is substantially smaller than toolchain one
|
||||||
INTERNAL_LIBM = 1
|
INTERNAL_LIBM = 1
|
||||||
|
|
||||||
# Chip supplied serial number, in bytes
|
|
||||||
USB_SERIAL_NUMBER_LENGTH = 12
|
|
||||||
|
|
||||||
# Longints can be implemented as mpz, as longlong, or not
|
# Longints can be implemented as mpz, as longlong, or not
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
|
@ -9,9 +9,6 @@ INTERNAL_LIBM = 1
|
|||||||
# Number of USB endpoint pairs.
|
# Number of USB endpoint pairs.
|
||||||
USB_NUM_EP = 16
|
USB_NUM_EP = 16
|
||||||
|
|
||||||
# Chip supplied serial number, in bytes
|
|
||||||
USB_SERIAL_NUMBER_LENGTH = 30
|
|
||||||
|
|
||||||
# Longints can be implemented as mpz, as longlong, or not
|
# Longints can be implemented as mpz, as longlong, or not
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user