From d2bd80109ef5fb46ca46fae168f5d3a5096794bc Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 12 Mar 2013 20:04:29 +0700 Subject: add semaphore post in usbh_isr for control pipe add osal_queue_send in usbh_device_plugged add macro for placing breakpoint macros fix ehci init: - regs->cmd or (add run_stop) - enable port power in portsc add tusb_task_runner in main loop --- tinyusb/common/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tinyusb/common') diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h index 323ff8ee8..a433fef06 100644 --- a/tinyusb/common/common.h +++ b/tinyusb/common/common.h @@ -83,6 +83,12 @@ //--------------------------------------------------------------------+ // MACROS //--------------------------------------------------------------------+ +#ifndef _TEST_ + #define ASM_BREAKPOINT __asm("BKPT #0\n") // Place breakpoint to stop the debugger at desire +#else + #define ASM_BREAKPOINT +#endif + #define STRING_(x) #x // stringify without expand #define XSTRING_(x) STRING_(x) // expand then stringify #define STRING_CONCAT_(a, b) a##b // concat without expand -- cgit v1.3.1