summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-02 15:36:20 +0700
committerhathach <[email protected]>2013-02-02 15:36:20 +0700
commit3ac88f1b4ec4ab83682b5c1b1589970096bbc1c4 (patch)
treef0d885bf1cad164e71501a093dc007146e4cf356 /tinyusb/common
parenta25da9d3eec9e43b051a94dfe0418b0b5bb9c2d9 (diff)
refine OSAL_TASK_LOOP_BEGIN & OSAL_TASK_LOOP_END
- add TASK_ASSERT & TASK_ASSERT_STATUS add more code for enumerate task add control requests & its type def add API for HCD - hcd_pipe_addr0_open - hcd_pipe_control_open - hcd_pipe_control_xfer - hcd_pipe_open - hcd_port_speed
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/assertion.h4
-rw-r--r--tinyusb/common/common.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/tinyusb/common/assertion.h b/tinyusb/common/assertion.h
index 4f3678a50..c507d3a2a 100644
--- a/tinyusb/common/assertion.h
+++ b/tinyusb/common/assertion.h
@@ -70,7 +70,7 @@ extern "C"
//--------------------------------------------------------------------+
#define ASSERT_FILENAME __FILE__
#define ASSERT_FUNCTION __PRETTY_FUNCTION__
-#define ASSERT_STATEMENT(format, ...)\
+#define ASSERT_MESSAGE(format, ...)\
_PRINTF("Assert at %s: %s:%d: " format "\n", ASSERT_FILENAME, ASSERT_FUNCTION, __LINE__, __VA_ARGS__)
#ifndef _TEST_ASSERT_
@@ -83,7 +83,7 @@ extern "C"
do{\
setup_statement;\
if (!(condition)) {\
- ASSERT_STATEMENT(format, __VA_ARGS__);\
+ ASSERT_MESSAGE(format, __VA_ARGS__);\
ASSERT_ERROR_HANDLE(error);\
}\
}while(0)
diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h
index e6550e586..09a82a217 100644
--- a/tinyusb/common/common.h
+++ b/tinyusb/common/common.h
@@ -70,6 +70,7 @@
#include "hal/hal.h"
#include "core/tusb_types.h"
#include "core/std_descriptors.h"
+#include "core/std_request.h"
// TODO try to manipulate gcc cmd option instead
#ifndef _TEST_