Update examples & BSP.

Signed-off-by: HiFiPhile <admin@hifiphile.com>
This commit is contained in:
HiFiPhile 2025-01-25 13:27:48 +01:00
parent 5995244a29
commit 1d984c2829
54 changed files with 139 additions and 138 deletions

View File

@ -71,15 +71,15 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -77,15 +77,15 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -74,15 +74,15 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -80,15 +80,15 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -76,15 +76,15 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -59,15 +59,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
#ifdef __cplusplus

View File

@ -71,17 +71,18 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
#define CFG_TUD_DWC2_DMA_ENABLE 1
//--------------------------------------------------------------------
// DEVICE CONFIGURATION
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -78,15 +78,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -74,15 +74,15 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -53,15 +53,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -53,15 +53,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -78,15 +78,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -73,8 +73,8 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION

View File

@ -74,15 +74,15 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -76,15 +76,15 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
/* (Needed for Full-Speed only)

View File

@ -53,15 +53,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -76,15 +76,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -76,15 +76,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -88,15 +88,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUD_MEM_SECTION
#define CFG_TUD_MEM_SECTION
#endif
#ifndef CFG_TUD_MEM_ALIGN
#define CFG_TUD_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUD_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------
@ -129,7 +129,7 @@
#endif
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUH_MEM_ALIGN 4
#endif
#define CFG_TUH_HUB 1

View File

@ -88,15 +88,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUD_MEM_SECTION
#define CFG_TUD_MEM_SECTION
#endif
#ifndef CFG_TUD_MEM_ALIGN
#define CFG_TUD_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUD_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------
@ -129,7 +129,7 @@
#endif
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUH_MEM_ALIGN 4
#endif
#define CFG_TUH_HUB 1

View File

@ -51,15 +51,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUH_MEM_SECTION
#define CFG_TUH_MEM_SECTION
#endif
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUH_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -51,15 +51,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUH_MEM_SECTION
#define CFG_TUH_MEM_SECTION
#endif
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUH_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -56,15 +56,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUH_MEM_SECTION
#define CFG_TUH_MEM_SECTION
#endif
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUH_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -56,15 +56,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUH_MEM_SECTION
#define CFG_TUH_MEM_SECTION
#endif
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUH_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -51,15 +51,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUH_MEM_SECTION
#define CFG_TUH_MEM_SECTION
#endif
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUH_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -51,15 +51,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUH_MEM_SECTION
#define CFG_TUH_MEM_SECTION
#endif
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUH_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -65,15 +65,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
#ifdef __cplusplus

View File

@ -39,7 +39,7 @@ function(add_board_target BOARD_TARGET)
__VTOR_PRESENT=0
CORE_M0
CORE_M0PLUS
CFG_TUSB_MEM_ALIGN=TU_ATTR_ALIGNED\(64\)
CFG_TUSB_MEM_ALIGN=64
)
target_include_directories(${BOARD_TARGET} PUBLIC
${SDK_DIR}/inc

View File

@ -7,7 +7,7 @@ CFLAGS += \
-nostdlib \
-D__USE_LPCOPEN \
-DCFG_TUSB_MCU=OPT_MCU_LPC11UXX \
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
-DCFG_TUSB_MEM_ALIGN='64'
# mcu driver cause following warnings
CFLAGS += \

View File

@ -36,7 +36,7 @@ function(add_board_target BOARD_TARGET)
__USE_LPCOPEN
__VTOR_PRESENT=0
CORE_M3
CFG_TUSB_MEM_ALIGN=TU_ATTR_ALIGNED\(64\)
CFG_TUSB_MEM_ALIGN=64
)
target_include_directories(${BOARD_TARGET} PUBLIC
${SDK_DIR}/inc

View File

@ -12,7 +12,7 @@ CFLAGS += \
-DCFG_EXAMPLE_MSC_READONLY \
-DCFG_EXAMPLE_VIDEO_READONLY \
-DCFG_TUSB_MCU=OPT_MCU_LPC13XX \
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
-DCFG_TUSB_MEM_ALIGN='64'
LDFLAGS_GCC += -specs=nosys.specs -specs=nano.specs

View File

@ -38,7 +38,7 @@ function(add_board_target BOARD_TARGET)
__USE_LPCOPEN
#__VTOR_PRESENT=0
CORE_M3
CFG_TUSB_MEM_ALIGN=TU_ATTR_ALIGNED\(64\)
CFG_TUSB_MEM_ALIGN=64
)
target_include_directories(${BOARD_TARGET} PUBLIC
${SDK_DIR}/inc

View File

@ -10,7 +10,7 @@ CFLAGS += \
-D__USE_LPCOPEN \
-DCFG_EXAMPLE_MSC_READONLY \
-DCFG_TUSB_MCU=OPT_MCU_LPC15XX \
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
-DCFG_TUSB_MEM_ALIGN='64'
LDFLAGS_GCC += -specs=nosys.specs -specs=nano.specs

View File

@ -57,7 +57,7 @@ function(add_board_target BOARD_TARGET)
${CMSIS_DIR}/CMSIS/Core/Include
)
target_compile_definitions(${BOARD_TARGET} PUBLIC
CFG_TUSB_MEM_ALIGN=TU_ATTR_ALIGNED\(64\)
CFG_TUSB_MEM_ALIGN=64
__STARTUP_CLEAR_BSS
)

View File

@ -8,7 +8,7 @@ CFLAGS += \
-flto \
-D__STARTUP_CLEAR_BSS \
-DCFG_TUSB_MCU=OPT_MCU_LPC51UXX \
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
-DCFG_TUSB_MEM_ALIGN='64'
# mcu driver cause following warnings
CFLAGS += -Wno-error=unused-parameter

View File

@ -66,7 +66,7 @@ function(add_board_target BOARD_TARGET)
${CMSIS_DIR}/CMSIS/Core/Include
)
target_compile_definitions(${BOARD_TARGET} PUBLIC
CFG_TUSB_MEM_ALIGN=TU_ATTR_ALIGNED\(64\)
CFG_TUSB_MEM_ALIGN=64
BOARD_TUD_RHPORT=${PORT}
BOARD_TUH_RHPORT=${HOST_PORT}
__STARTUP_CLEAR_BSS

View File

@ -9,7 +9,7 @@ CFLAGS += \
-flto \
-D__STARTUP_CLEAR_BSS \
-DCFG_TUSB_MCU=OPT_MCU_LPC54XXX \
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))' \
-DCFG_TUSB_MEM_ALIGN='64' \
ifeq ($(PORT), 1)
$(info "PORT1 High Speed")

View File

@ -66,7 +66,7 @@ function(add_board_target BOARD_TARGET)
${CMSIS_DIR}/CMSIS/Core/Include
)
target_compile_definitions(${BOARD_TARGET} PUBLIC
CFG_TUSB_MEM_ALIGN=TU_ATTR_ALIGNED\(64\)
CFG_TUSB_MEM_ALIGN=64
BOARD_TUD_RHPORT=${PORT}
BOARD_TUH_RHPORT=${HOST_PORT}
__STARTUP_CLEAR_BSS

View File

@ -13,7 +13,7 @@ CFLAGS += \
-flto \
-D__STARTUP_CLEAR_BSS \
-DCFG_TUSB_MCU=OPT_MCU_LPC55XX \
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))' \
-DCFG_TUSB_MEM_ALIGN='64' \
-DBOARD_TUD_RHPORT=$(PORT) \
ifeq ($(PORT), 1)

View File

@ -99,8 +99,8 @@ extern "C" {
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION rt_section(PKG_TINYUSB_MEM_SECTION)

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -71,15 +71,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------

View File

@ -58,15 +58,15 @@
* Tinyusb use follows macros to declare transferring memory so that they can be put
* into those specific section.
* e.g
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
* - CFG_TUSB_MEM_SECTION : TU_ATTR_SECTION(".usb_ram")
* - CFG_TUSB_MEM_ALIGN : 4
*/
#ifndef CFG_TUSB_MEM_SECTION
#define CFG_TUSB_MEM_SECTION
#endif
#ifndef CFG_TUSB_MEM_ALIGN
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#define CFG_TUSB_MEM_ALIGN 4
#endif
//--------------------------------------------------------------------