Merge pull request #217 from xobs/valentyusb-eptri

WIP: Add Valentyusb eptri
This commit is contained in:
hathach
2019-11-18 12:37:34 +07:00
committed by GitHub
17 changed files with 1920 additions and 4 deletions

View File

@@ -90,9 +90,13 @@
volatile uint32_t* ARM_CM_DHCSR = ((volatile uint32_t*) 0xE000EDF0UL); /* Cortex M CoreDebug->DHCSR */ \
if ( (*ARM_CM_DHCSR) & 1UL ) __asm("BKPT #0\n"); /* Only halt mcu if debugger is attached */ \
} while(0)
#else
#if defined(__riscv)
#define TU_BREAKPOINT() do { __asm("ebreak\n"); } while(0)
#else
#define TU_BREAKPOINT()
#endif
#endif
/*------------------------------------------------------------------*/
/* Macro Generator