summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-11 13:01:57 +0700
committerhathach <[email protected]>2018-03-11 13:01:57 +0700
commit0384e40320605aa7b2b28777f41feabcc3b3f130 (patch)
tree7593065e5b6f8aa01ddda91db7297d8144d6d940 /tinyusb/common
parentc39b24001d57a128dc0d094c509ae4ed3998e617 (diff)
rename hal_* to tusb_hal_*
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/assertion.h2
-rw-r--r--tinyusb/common/verify.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/tinyusb/common/assertion.h b/tinyusb/common/assertion.h
index 16c9b07e4..f91f00301 100644
--- a/tinyusb/common/assertion.h
+++ b/tinyusb/common/assertion.h
@@ -84,7 +84,7 @@ extern "C"
do{\
setup_statement;\
if (!(condition)) {\
- hal_debugger_breakpoint();\
+ tusb_hal_dbg_breakpoint();\
_ASSERT_MESSAGE(format, __VA_ARGS__);\
error_handler(error, handler_para);\
}\
diff --git a/tinyusb/common/verify.h b/tinyusb/common/verify.h
index f48e91662..3aec0a9f8 100644
--- a/tinyusb/common/verify.h
+++ b/tinyusb/common/verify.h
@@ -148,12 +148,12 @@
/*------------------------------------------------------------------*/
/* ASSERT
- * basically VERIFY with hal_debugger_breakpoint as handler
+ * basically VERIFY with tusb_hal_dbg_breakpoint as handler
* - 1 arg : return false if failed
* - 2 arg : return error if failed
*------------------------------------------------------------------*/
-#define ASSERT_1ARGS(cond) do { if (!(cond)) { hal_debugger_breakpoint(); _ASSERT_MESS() return false; } } while(0)
-#define ASSERT_2ARGS(cond, _error) do { if (!(cond)) { hal_debugger_breakpoint(); _ASSERT_MESS() return _error;} } while(0)
+#define ASSERT_1ARGS(cond) do { if (!(cond)) { tusb_hal_dbg_breakpoint(); _ASSERT_MESS() return false; } } while(0)
+#define ASSERT_2ARGS(cond, _error) do { if (!(cond)) { tusb_hal_dbg_breakpoint(); _ASSERT_MESS() return _error;} } while(0)
#define ASSERT_(...) GET_3RD_ARG(__VA_ARGS__, ASSERT_2ARGS, ASSERT_1ARGS)(__VA_ARGS__)