Skip to content

Commit

Permalink
feat(ThirdParty): Add TinyUSB library to MSDK (#1101)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Carter <jake.carter@analog.com>
Co-authored-by: Jake Carter <jhcarter.co@gmail.com>
  • Loading branch information
3 people committed Sep 5, 2024
1 parent 03dd1b1 commit 6b6f2c3
Show file tree
Hide file tree
Showing 997 changed files with 95,786 additions and 573 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
# Exclude register header files. Those don't follow clang formatting or it becomes unreadable
- name: clang-format-check
run: |
CHANGE_FILES=$(git diff --ignore-submodules --name-only remotes/origin/main '*.c' '*.h' ':!*_regs.h' ':!*ffconf.h' ':!*weights.h' ':!*cnn.h' ':!*cnn.c' ':!*sampledata.h' ':!*sampleoutput.h' ':!*softmax.c' ':!Examples/*/Coremark/*' ':!Libraries/FCL' ':!Libraries/FreeRTOS' ':!Libraries/lwIP' ':!Libraries/littlefs' ':!Libraries/FreeRTOS-Plus' ':!Libraries/LC3' ':!Libraries/SDHC' ':!Libraries/MAXUSB' ':!Libraries/Cordio' ':!Libraries/LVGL' ':!Libraries/Coremark' ':!Libraries/MiscDrivers/BarcodeDecoder')
CHANGE_FILES=$(git diff --ignore-submodules --name-only remotes/origin/main '*.c' '*.h' ':!*_regs.h' ':!*ffconf.h' ':!*weights.h' ':!*cnn.h' ':!*cnn.c' ':!*sampledata.h' ':!*sampleoutput.h' ':!*softmax.c' ':!Examples/*/Coremark/*' ':!Libraries/FCL' ':!Libraries/FreeRTOS' ':!Libraries/lwIP' ':!Libraries/littlefs' ':!Libraries/FreeRTOS-Plus' ':!Libraries/LC3' ':!Libraries/SDHC' ':!Libraries/MAXUSB' ':!Libraries/Cordio' ':!Libraries/LVGL' ':!Libraries/Coremark' ':!Libraries/MiscDrivers/BarcodeDecoder' ':!Libraries/tinyusb')
if [[ "$CHANGE_FILES" != "" ]]; then
bash -e .github/workflows/clang-format-run.sh $CHANGE_FILES
fi
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Skip autogenerated register files and internal use board files
FILTER_REGEX_EXCLUDE: (.*\/Libraries\/CMSIS\/Device\/Maxim\/.*\/Include\/partition_.*\.h)|(.*\/Libraries\/((CMSIS\/Device\/Maxim\/[^\/]*\/Include)|(PeriphDrivers\/Source\/[^\/]*))\/[^\/]*_regs\.h)|(.*\/Libraries\/Boards\/[^\/]*\/(BCB|Emulator|Simulation|ROM)[^\/]*\/.*)|(.*\/Examples\/[^\/]*\/Display\/lvgl-8\.0\.2\/.*)|(.*\/Examples\/[^\/]*\/Demo\/lv_conf.h)|(.*\/Libraries\/CMSIS\/5.9.0\/.*)|(.*\/Libraries\/CMSIS\/Include\/.*)|(.*\/Libraries\/Cordio\/.*)|(.*\/Libraries\/SDHC\/.*)|(.*\/Libraries\/lwIP\/.*)|(.*\/Examples\/[^\/]*\/CNN\/.*)
FILTER_REGEX_EXCLUDE: (.*\/Libraries\/CMSIS\/Device\/Maxim\/.*\/Include\/partition_.*\.h)|(.*\/Libraries\/((CMSIS\/Device\/Maxim\/[^\/]*\/Include)|(PeriphDrivers\/Source\/[^\/]*))\/[^\/]*_regs\.h)|(.*\/Libraries\/Boards\/[^\/]*\/(BCB|Emulator|Simulation|ROM)[^\/]*\/.*)|(.*\/Examples\/[^\/]*\/Display\/lvgl-8\.0\.2\/.*)|(.*\/Examples\/[^\/]*\/Demo\/lv_conf.h)|(.*\/Libraries\/CMSIS\/5.9.0\/.*)|(.*\/Libraries\/CMSIS\/Include\/.*)|(.*\/Libraries\/Cordio\/.*)|(.*\/Libraries\/SDHC\/.*)|(.*\/Libraries\/lwIP\/.*)|(.*\/Examples\/[^\/]*\/CNN\/.*)|(.*\/Libraries\/tinyusb\/.*)

# Explicity turn off all linters except CPP
# SuperLinter Documentation says all we need to do is turn on the ones we want
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/******************************************************************************
*
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
*
Expand All @@ -24,8 +24,8 @@
******************************************************************************/

/* Define to prevent redundant inclusion */
#ifndef EXAMPLES_MAX32650_USB_USB_CDCACM_DESCRIPTORS_H_
#define EXAMPLES_MAX32650_USB_USB_CDCACM_DESCRIPTORS_H_
#ifndef EXAMPLES_MAX32650_USB_MAXUSB_USB_CDCACM_DESCRIPTORS_H_
#define EXAMPLES_MAX32650_USB_MAXUSB_USB_CDCACM_DESCRIPTORS_H_

/* **** Includes **** */
#include <stdint.h>
Expand Down Expand Up @@ -325,4 +325,4 @@ __attribute__((aligned(4))) uint8_t cdcacm_func_desc[] = {
}
#endif

#endif // EXAMPLES_MAX32650_USB_USB_CDCACM_DESCRIPTORS_H_
#endif // EXAMPLES_MAX32650_USB_MAXUSB_USB_CDCACM_DESCRIPTORS_H_
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
*
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
*
Expand All @@ -18,8 +18,8 @@
*
******************************************************************************/

#ifndef EXAMPLES_MAX32690_USB_USB_COMPOSITEDEVICE_MSC_CDC_DESCRIPTORS_H_
#define EXAMPLES_MAX32690_USB_USB_COMPOSITEDEVICE_MSC_CDC_DESCRIPTORS_H_
#ifndef EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_CDC_DESCRIPTORS_H_
#define EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_CDC_DESCRIPTORS_H_

#include <stdint.h>
#include "usb.h"
Expand Down Expand Up @@ -440,4 +440,4 @@ __attribute__((aligned(4))) uint8_t msc_func_desc[] = {
'g', 0, 'e', 0, ' ', 0, 'D', 0, 'e', 0, 'v', 0, 'i', 0, 'c', 0, 'e', 0,
};

#endif // EXAMPLES_MAX32690_USB_USB_COMPOSITEDEVICE_MSC_CDC_DESCRIPTORS_H_
#endif // EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_CDC_DESCRIPTORS_H_
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
*
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
*
Expand All @@ -24,8 +24,8 @@
* See the msc_mem_t structure in msc.h for function details.
*/

#ifndef EXAMPLES_MAX32650_USB_USB_COMPOSITEDEVICE_MSC_HID_MSCMEM_H_
#define EXAMPLES_MAX32650_USB_USB_COMPOSITEDEVICE_MSC_HID_MSCMEM_H_
#ifndef EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_CDC_MSCMEM_H_
#define EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_CDC_MSCMEM_H_

#include <stdint.h>

Expand Down Expand Up @@ -81,4 +81,4 @@ int mscmem_Write(uint32_t lba, uint8_t *buffer);
*/
int mscmem_Ready(void);

#endif // EXAMPLES_MAX32650_USB_USB_COMPOSITEDEVICE_MSC_HID_MSCMEM_H_
#endif // EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_CDC_MSCMEM_H_
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
*
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
*
Expand All @@ -18,8 +18,8 @@
*
******************************************************************************/

#ifndef EXAMPLES_MAX32665_USB_USB_COMPOSITEDEVICE_MSC_HID_DESCRIPTORS_H_
#define EXAMPLES_MAX32665_USB_USB_COMPOSITEDEVICE_MSC_HID_DESCRIPTORS_H_
#ifndef EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_HID_DESCRIPTORS_H_
#define EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_HID_DESCRIPTORS_H_

#include <stdint.h>
#include "usb.h"
Expand Down Expand Up @@ -212,4 +212,4 @@ __attribute__((aligned(4))) uint8_t msc_func_desc[] = {
'g', 0, 'e', 0, ' ', 0, 'D', 0, 'e', 0, 'v', 0, 'i', 0, 'c', 0, 'e', 0,
};

#endif // EXAMPLES_MAX32665_USB_USB_COMPOSITEDEVICE_MSC_HID_DESCRIPTORS_H_
#endif // EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_HID_DESCRIPTORS_H_
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
*
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
*
Expand All @@ -24,8 +24,8 @@
* See the msc_mem_t structure in msc.h for function details.
*/

#ifndef EXAMPLES_MAX32690_USB_USB_COMPOSITEDEVICE_MSC_CDC_MSCMEM_H_
#define EXAMPLES_MAX32690_USB_USB_COMPOSITEDEVICE_MSC_CDC_MSCMEM_H_
#ifndef EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_HID_MSCMEM_H_
#define EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_HID_MSCMEM_H_

#include <stdint.h>

Expand Down Expand Up @@ -81,4 +81,4 @@ int mscmem_Write(uint32_t lba, uint8_t *buffer);
*/
int mscmem_Ready(void);

#endif // EXAMPLES_MAX32690_USB_USB_COMPOSITEDEVICE_MSC_CDC_MSCMEM_H_
#endif // EXAMPLES_MAX32650_USB_MAXUSB_USB_COMPOSITEDEVICE_MSC_HID_MSCMEM_H_
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 6b6f2c3

Please sign in to comment.