Skip to content

Merge in commits from 2.x branch. #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 85 commits into from
Feb 28, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
cfd1809
Suppress A0 (PA02) as a TouchIn-capable pin on CPX.
dhalbert Oct 15, 2017
8f3be0a
Reinit ADC completely on each call to AnalogIn.value.
dhalbert Oct 15, 2017
dbd3f15
1. Use lib/libm for small (non-Express builds) to gain back a lot of …
dhalbert Oct 15, 2017
274fff4
Use internal libm for all atmel-samd boards.
dhalbert Oct 16, 2017
1709fbb
Turn on pulseio now that there's room.
dhalbert Oct 15, 2017
5f6df7f
More io capability on non-Express boards, so call *_reset() routines
dhalbert Oct 16, 2017
6c7d35c
esp8266: Correct SPI functionality when write_value is provided.
tannewt Oct 16, 2017
c216c28
esp8266: Actually disable pins when reset on reload.
tannewt Oct 16, 2017
2148211
Merge pull request #337 from tannewt/fix_pin_reset
dhalbert Oct 16, 2017
e2ce87e
Merge pull request #336 from tannewt/2.x
dhalbert Oct 16, 2017
c6a15f7
esp8266: add neopixel_write - remove neopixel.py (#339)
jerryneedell Oct 17, 2017
4f4ddf0
Set DRVSTR on output pins to strong (more current capability).
dhalbert Oct 16, 2017
a1409d1
redo time.monotonic() to avoid double precision
dhalbert Oct 17, 2017
9bcc105
Gracefully reset the gamepad module (#356)
deshipu Oct 22, 2017
e08241d
Supersized Feather M0 Express for 2.x (replace the 2Mbyte SPI flash w…
dastels Oct 23, 2017
bd7abcd
shared-bindings: Check that I2C and SPI reads and writes are given a …
tannewt Oct 25, 2017
f738996
Allow writing buffer of length zero to I2C device; it can be used to …
dhalbert Oct 30, 2017
c066e4d
Add board definition for the uGame handheld console
deshipu Nov 1, 2017
78f6c22
Allow empty reads and writes for busio.SPI
deshipu Nov 3, 2017
4869599
Merge pull request #404 from pewpew-game/fix-spi-empty-read-write
dhalbert Nov 3, 2017
3c1486a
esp8266 enable framebuf (#408)
jerryneedell Nov 6, 2017
ddc8570
Fix round(). Don't split a statement with a #pragma. It breaks the co…
dhalbert Nov 7, 2017
d9a19c4
Merge pull request #413 from dhalbert/fix_round
dhalbert Nov 7, 2017
216fced
Add a _stage module (#398)
deshipu Nov 7, 2017
aa817de
atmel-samd: Update Feather M0 Express USB PID
tannewt Nov 7, 2017
d183b66
Merge pull request #419 from tannewt/2.x_usb_pids
dhalbert Nov 8, 2017
065a319
Update info about erasing CIRCUITPY to include flash erasers for non-…
dhalbert Nov 14, 2017
27d5f27
Add ItsyBitsy M0 support with 1MB flash support (#445)
ladyada Nov 17, 2017
1276ce5
Fix display orientation for _stage module
deshipu Nov 21, 2017
26862f8
Merge pull request #453 from pewpew-game/stage
dhalbert Nov 21, 2017
a41272d
atmel-samd: Added missing adalogger pins (#461)
stewmystre Nov 27, 2017
9ac6890
update CPX frozen modules to latest versions
dhalbert Dec 1, 2017
e75fd0e
add SPI.write_readinto() - bidirectional SPI
dhalbert Dec 5, 2017
2900ed2
add SPI.write_readinto() to esp8266 port
dhalbert Dec 5, 2017
78db6c3
Merge pull request #473 from dhalbert/2.x_esp8266_bidi_spi
dhalbert Dec 5, 2017
b4d3699
Introduce reset mechanics to microcontroller.
tannewt Dec 5, 2017
a91e1cb
Fix a couple spelling errors.
tannewt Dec 6, 2017
3c49f53
Merge pull request #474 from tannewt/mcu_reset
dhalbert Dec 6, 2017
43650b6
Fix PDMIn MEMS microphone support (#479)
dhalbert Dec 13, 2017
f2ad1a3
Write version info to boot_out.txt.
dhalbert Dec 14, 2017
a37cc17
bring CPX frozen modules up to date
dhalbert Dec 14, 2017
6d603e4
Merge pull request #483 from dhalbert/2.x
kattni Dec 14, 2017
0c0a09a
Speed up AnalogIn.value.
dhalbert Dec 15, 2017
054cac3
update CPX frozen Adafruit_CircuitPython_LIS3DH to library version 3.0.0
dhalbert Dec 15, 2017
aca4b60
Merge pull request #486 from dhalbert/2.x_lis3dh_3.0.0
kattni Dec 15, 2017
e3df010
Add root readthedocs.yml file.
tannewt Dec 19, 2017
7f8972b
Merge pull request #489 from adafruit/test_2.x
dhalbert Dec 19, 2017
22bbb6a
Don't include examples directories in frozen libraries
dhalbert Dec 20, 2017
23dd197
Wait 2 secs before creating new filesystem in case power is jittery
dhalbert Nov 8, 2017
ec1d29f
check twice for bad filesystem
dhalbert Nov 30, 2017
39f30ae
Fix 1200 baud reset.
tannewt Dec 20, 2017
e671fa2
Merge pull request #495 from tannewt/fix_baud_reset
dhalbert Dec 20, 2017
2d2735c
Error in PDMIn filter loop.
dhalbert Dec 21, 2017
7918714
certain odd-sized PDMIn record buffers would crash or not fill properly
dhalbert Dec 23, 2017
e44fbca
PDMIn: Make last DMA buffer be exactly the right length.
dhalbert Dec 23, 2017
2dcb2f0
Add git version info to frozen modules.
dhalbert Dec 24, 2017
644ad74
preprocess_frozen_modules.py: make compatible with Python 3.4.
dhalbert Dec 24, 2017
31be207
preprocess_frozen_modules.py: yet more Python 3.4 compatibility changes
dhalbert Dec 24, 2017
94e645d
Merge pull request #499 from dhalbert/2.x_frozen_module_version_info
dhalbert Dec 24, 2017
9a50fa4
update CPX frozen modules to latest versions
dhalbert Dec 30, 2017
d9ae709
Merge pull request #505 from dhalbert/2.2_update_cpx_frozen_libs
dhalbert Dec 30, 2017
0ff128e
Fix example for gamepad
deshipu Jan 10, 2018
8251abb
Merge pull request #520 from pewpew-game/2.x
deshipu Jan 11, 2018
3b946f6
Add missing Feather M0 RadioFruit boards: RFM69, RFM9x. (#538)
tdicola Jan 19, 2018
6b66c3b
Add W25Q16 USON flash support, alternative flash type support for all…
ladyada Jan 20, 2018
544b9e4
Merge pull request #541 from ladyada/itsybitsy_m0_fixes
dhalbert Jan 20, 2018
448d13e
memory type for alt flash fix
ladyada Jan 30, 2018
dfd57e4
Merge pull request #571 from ladyada/fix_itsybitsy_flash
dhalbert Feb 2, 2018
80ff1c4
pIRKey tested w/ hardware - basically a trinket or gemma with only do…
ladyada Feb 5, 2018
b6114d1
Merge pull request #580 from ladyada/pirkey
dhalbert Feb 5, 2018
2a3de8d
Magnetometer values are also 3d vector of uT
tuupola Feb 11, 2018
59ad16b
Merge pull request #612 from tuupola/patch-1
ladyada Feb 11, 2018
4cc2cf0
Increase the status LED brightness a bit so that newer DotStars
tannewt Feb 13, 2018
a522001
Dim the neopixel status LED through the brightness control.
tannewt Feb 13, 2018
06c9445
Fix builds without status pixel. No need to track its brightness when…
tannewt Feb 13, 2018
ee90056
Merge pull request #621 from tannewt/tweak_itsybitsy_status_brightness
dhalbert Feb 16, 2018
20dd3b1
Delete a bunch of docs, drivers and examples not relevant to CircuitP…
tannewt Feb 21, 2018
e667bdf
Polish up the README since it was converted to RST from Markdown.
tannewt Feb 21, 2018
4199209
Merge pull request #632 from tannewt/delete_out_of_date
dhalbert Feb 22, 2018
641a44e
Remove obsolete periphal drivers in esp module
dhalbert Feb 23, 2018
892d5cd
Merge pull request #641 from dhalbert/2.x_esp8266_remove_obsolete_dri…
tannewt Feb 23, 2018
bf05183
Merge remote-tracking branch 'adafruit/2.x' into merge_2x
tannewt Feb 27, 2018
ebf326f
Build sphinx on Travis
tannewt Feb 27, 2018
737007c
Install recommonmark too.
tannewt Feb 27, 2018
ea63311
Remove bad c2rst and fix the other for sphinx 1.7.1
tannewt Feb 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add board definition for the uGame handheld console
This is a board definition for the uGame project:
https://hackaday.io/project/27629-game

uGame is a small handheld game console programmable with
CircuitPython. The hardware part of the project is pretty
much stable by now.
  • Loading branch information
deshipu authored and tannewt committed Nov 1, 2017
commit c066e4da8b515c39ffe18a0fc7bd31ef5a68b0db
37 changes: 37 additions & 0 deletions atmel-samd/boards/ugame/board.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#include "boards/board.h"

void board_init(void) {
}

bool board_requests_safe_mode(void) {
return false;
}

void reset_board(void) {
}
115 changes: 115 additions & 0 deletions atmel-samd/boards/ugame/conf_access.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
/**
* \file
*
* \brief Memory access control configuration file.
*
* Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. The name of Atmel may not be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 4. This software may only be redistributed and used in connection with an
* Atmel microcontroller product.
*
* THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* \asf_license_stop
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/

#ifndef _CONF_ACCESS_H_
#define _CONF_ACCESS_H_

#include "compiler.h"
#include "board.h"


/*! \name Activation of Logical Unit Numbers
*/
//! @{
#define LUN_0 ENABLE //!< On-Chip Virtual Memory.
#define LUN_1 DISABLE //!< AT45DBX Data Flash.
#define LUN_2 DISABLE //!< SD/MMC Card over SPI.
#define LUN_3 DISABLE //!< SD/MMC Card over MCI Slot 0.
#define LUN_4 DISABLE
#define LUN_5 DISABLE
#define LUN_6 DISABLE
#define LUN_7 DISABLE
#define LUN_USB DISABLE //!< Host Mass-Storage Memory.
//! @}

/*! \name LUN 0 Definitions
*/
//! @{
#define LUN_0_INCLUDE "access_vfs.h"
#define Lun_0_test_unit_ready vfs_test_unit_ready
#define Lun_0_read_capacity vfs_read_capacity
#define Lun_0_unload NULL
#define Lun_0_wr_protect vfs_wr_protect
#define Lun_0_removal vfs_removal
#define Lun_0_usb_read_10 vfs_usb_read_10
#define Lun_0_usb_write_10 vfs_usb_write_10
#define LUN_0_NAME "\"CircuitPython VFS[0]\""
//! @}

#define MEM_USB LUN_USB

/*! \name Actions Associated with Memory Accesses
*
* Write here the action to associate with each memory access.
*
* \warning Be careful not to waste time in order not to disturb the functions.
*/
//! @{
#define memory_start_read_action(nb_sectors)
#define memory_stop_read_action()
#define memory_start_write_action(nb_sectors)
#define memory_stop_write_action()
//! @}

/*! \name Activation of Interface Features
*/
//! @{
#define ACCESS_USB true //!< MEM <-> USB interface.
#define ACCESS_MEM_TO_RAM false //!< MEM <-> RAM interface.
#define ACCESS_STREAM false //!< Streaming MEM <-> MEM interface.
#define ACCESS_STREAM_RECORD false //!< Streaming MEM <-> MEM interface in record mode.
#define ACCESS_MEM_TO_MEM false //!< MEM <-> MEM interface.
#define ACCESS_CODEC false //!< Codec interface.
//! @}

/*! \name Specific Options for Access Control
*/
//! @{
#define GLOBAL_WR_PROTECT false //!< Management of a global write protection.
//! @}


#endif // _CONF_ACCESS_H_
14 changes: 14 additions & 0 deletions atmel-samd/boards/ugame/conf_board.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* \file
*
* \brief User board configuration template
*
*/
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/

#ifndef CONF_BOARD_H
#define CONF_BOARD_H

#endif // CONF_BOARD_H
1 change: 1 addition & 0 deletions atmel-samd/boards/ugame/conf_clocks.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "conf_clocks_crystalless.h"
221 changes: 221 additions & 0 deletions atmel-samd/boards/ugame/conf_usb.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@

#include <stdbool.h>
#include <stdint.h>

#include "asf/common/services/usb/class/cdc/usb_protocol_cdc.h"

#ifndef CONF_USB_H_INCLUDED
#define CONF_USB_H_INCLUDED

#define USB_DEVICE_MAJOR_VERSION 1
#define USB_DEVICE_MINOR_VERSION 0
#define USB_DEVICE_POWER 100 // Consumption on Vbus line (mA)
#define USB_DEVICE_ATTR \
(USB_CONFIG_ATTR_BUS_POWERED)
// (USB_CONFIG_ATTR_REMOTE_WAKEUP|USB_CONFIG_ATTR_SELF_POWERED)
// (USB_CONFIG_ATTR_REMOTE_WAKEUP|USB_CONFIG_ATTR_BUS_POWERED)

//! USB Device string definitions (Optional)
#ifndef USB_DEVICE_MANUFACTURE_NAME
# define USB_DEVICE_MANUFACTURE_NAME "Radomir Dopieralski"
#endif

#ifndef USB_DEVICE_PRODUCT_NAME
# define USB_DEVICE_PRODUCT_NAME "uGame"
#endif
// #define USB_DEVICE_SERIAL_NAME "12...EF"
#define USB_DEVICE_GET_SERIAL_NAME_POINTER serial_number
#define USB_DEVICE_GET_SERIAL_NAME_LENGTH 32
extern char serial_number[USB_DEVICE_GET_SERIAL_NAME_LENGTH];

//! Control endpoint size
#define USB_DEVICE_EP_CTRL_SIZE 64

//! Interfaces for this device (CDC COM + CDC DATA + MSC + HID mouse + HID kbd)
#define USB_DEVICE_NB_INTERFACE 5

// (3 | USB_EP_DIR_IN) // CDC Notify endpoint
// (4 | USB_EP_DIR_IN) // CDC TX
// (5 | USB_EP_DIR_OUT) // CDC RX
// (1 | USB_EP_DIR_IN) // MSC IN
// (2 | USB_EP_DIR_OUT) // MSC OUT
// (6 | USB_EP_DIR_IN) // HID mouse report
// (7 | USB_EP_DIR_IN) // HID keyboard report
#define USB_DEVICE_MAX_EP 7

#define UDI_CDC_PORT_NB 1
#define UDI_CDC_ENABLE_EXT(port) mp_cdc_enable(port)
extern bool mp_cdc_enable(uint8_t port);
#define UDI_CDC_DISABLE_EXT(port) mp_cdc_disable(port)
extern void mp_cdc_disable(uint8_t port);
#define UDI_CDC_LOW_RATE

#define UDI_CDC_DEFAULT_RATE 115200
#define UDI_CDC_DEFAULT_STOPBITS CDC_STOP_BITS_1
#define UDI_CDC_DEFAULT_PARITY CDC_PAR_NONE
#define UDI_CDC_DEFAULT_DATABITS 8

#define UDI_CDC_RX_NOTIFY(port) usb_rx_notify()
void usb_rx_notify(void);

#define UDI_CDC_SET_CODING_EXT(port,cfg) usb_coding_notify(port, cfg)
void usb_coding_notify(uint8_t port, usb_cdc_line_coding_t* coding);
#define UDI_CDC_SET_DTR_EXT(port,set) usb_dtr_notify(port, set)
void usb_dtr_notify(uint8_t port, bool set);
#define UDI_CDC_SET_RTS_EXT(port,set) usb_rts_notify(port, set)
void usb_rts_notify(uint8_t port, bool set);

/**
* USB CDC low level configuration
* In standalone these configurations are defined by the CDC module.
* For composite device, these configuration must be defined here
* @{
*/
//! Endpoint numbers definition

#define UDI_CDC_COMM_EP_0 (3 | USB_EP_DIR_IN) // Notify endpoint
#define UDI_CDC_DATA_EP_IN_0 (4 | USB_EP_DIR_IN) // TX
#define UDI_CDC_DATA_EP_OUT_0 (5 | USB_EP_DIR_OUT) // RX

//! Interface numbers
#define UDI_CDC_COMM_IFACE_NUMBER_0 0
#define UDI_CDC_DATA_IFACE_NUMBER_0 1

/**
* Configuration of MSC interface
* @{
*/
//! Vendor name and Product version of MSC interface
#define UDI_MSC_GLOBAL_VENDOR_ID \
'A', 'T', 'M', 'E', 'L', ' ', ' ', ' '
#define UDI_MSC_GLOBAL_PRODUCT_VERSION \
'1', '.', '0', '0'

//! Interface callback definition
#define UDI_MSC_ENABLE_EXT() mp_msc_enable()
extern bool mp_msc_enable(void);
#define UDI_MSC_DISABLE_EXT() mp_msc_disable()
extern void mp_msc_disable(void);

//! Enable id string of interface to add an extra USB string
#define UDI_MSC_STRING_ID 5

/**
* USB MSC low level configuration
* In standalone these configurations are defined by the MSC module.
* For composite device, these configuration must be defined here
* @{
*/
//! Endpoint numbers definition
#define UDI_MSC_EP_IN (1 | USB_EP_DIR_IN)
#define UDI_MSC_EP_OUT (2 | USB_EP_DIR_OUT)

//! Interface number
#define UDI_MSC_IFACE_NUMBER 2
/**
* Configuration of HID Mouse interface
* @{
*/
//! Interface callback definition
#define UDI_HID_MOUSE_ENABLE_EXT() mp_mouse_enable()
extern bool mp_mouse_enable(void);
#define UDI_HID_MOUSE_DISABLE_EXT() mp_mouse_disable()
extern void mp_mouse_disable(void);

//! Enable id string of interface to add an extra USB string
#define UDI_HID_MOUSE_STRING_ID 6

/**
* USB HID Mouse low level configuration
* In standalone these configurations are defined by the HID Mouse module.
* For composite device, these configuration must be defined here
* @{
*/
//! Endpoint numbers definition
#define UDI_HID_MOUSE_EP_IN (6 | USB_EP_DIR_IN)

//! Interface number
#define UDI_HID_MOUSE_IFACE_NUMBER 3
//@}
//@}

/**
* Configuration of HID Keyboard interface
* @{
*/
//! Interface callback definition
#define UDI_HID_KBD_ENABLE_EXT() mp_keyboard_enable()
extern bool mp_keyboard_enable(void);
#define UDI_HID_KBD_DISABLE_EXT() mp_keyboard_disable()
extern void mp_keyboard_disable(void);
#define UDI_HID_KBD_CHANGE_LED(value) mp_keyboard_led(value)
extern void mp_keyboard_led(uint8_t);

//! Enable id string of interface to add an extra USB string
#define UDI_HID_KBD_STRING_ID 7

/**
* USB HID Keyboard low level configuration
* In standalone these configurations are defined by the HID Keyboard module.
* For composite device, these configuration must be defined here
* @{
*/
//! Endpoint numbers definition
#define UDI_HID_KBD_EP_IN (7 | USB_EP_DIR_IN)

//! Interface number
#define UDI_HID_KBD_IFACE_NUMBER 4

/**
* Description of Composite Device
* @{
*/
//! USB Interfaces descriptor structure
#define UDI_COMPOSITE_DESC_T \
usb_iad_desc_t udi_cdc_iad; \
udi_cdc_comm_desc_t udi_cdc_comm; \
udi_cdc_data_desc_t udi_cdc_data; \
udi_msc_desc_t udi_msc; \
udi_hid_mouse_desc_t udi_hid_mouse; \
udi_hid_kbd_desc_t udi_hid_kbd

//! USB Interfaces descriptor value for Full Speed
#define UDI_COMPOSITE_DESC_FS \
.udi_cdc_iad = UDI_CDC_IAD_DESC_0, \
.udi_cdc_comm = UDI_CDC_COMM_DESC_0, \
.udi_cdc_data = UDI_CDC_DATA_DESC_0_FS, \
.udi_msc = UDI_MSC_DESC_FS, \
.udi_hid_mouse = UDI_HID_MOUSE_DESC, \
.udi_hid_kbd = UDI_HID_KBD_DESC

//! USB Interfaces descriptor value for High Speed
#define UDI_COMPOSITE_DESC_HS \
.udi_cdc_iad = UDI_CDC_IAD_DESC_0, \
.udi_cdc_comm = UDI_CDC_COMM_DESC_0, \
.udi_cdc_data = UDI_CDC_DATA_DESC_0_HS, \
.udi_msc = UDI_MSC_DESC_HS, \
.udi_hid_mouse = UDI_HID_MOUSE_DESC, \
.udi_hid_kbd = UDI_HID_KBD_DESC

//! USB Interface APIs
#define UDI_COMPOSITE_API \
&udi_api_cdc_comm, \
&udi_api_cdc_data, \
&udi_api_msc, \
&udi_api_hid_mouse, \
&udi_api_hid_kbd
//@}

/**
* USB Device Driver Configuration
* @{
*/
//@}

//! The includes of classes and other headers must be done at the end of this file to avoid compile error
#include "udi_cdc.h"
#include "udi_msc.h"
#include "udi_hid_mouse.h"
#include "udi_hid_kbd.h"

#endif
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy