rename ASSERT_ERROR to ASSERT_STATUS

add binary const support @ common/binary.h
enhance assert support @ common/assertion.h
add test code for assertion.h
This commit is contained in:
hathach
2013-01-13 19:27:17 +07:00
parent 6e0818c901
commit 463b1c0294
13 changed files with 560 additions and 325 deletions

View File

@@ -39,14 +39,14 @@
TUSB_Error_t tusb_init(void)
{
ASSERT_ERROR( hal_init() ) ; /* HARDWARE INIT */
ASSERT_STATUS( hal_init() ) ; /* HARDWARE INIT */
#ifdef TUSB_CFG_HOST
ASSERT_ERROR( hcd_init(0) );
ASSERT_STATUS( hcd_init(0) );
#endif
#ifdef TUSB_CFG_DEVICE
ASSERT_ERROR( dcd_init(0) );
ASSERT_STATUS( dcd_init(0) );
#endif
return tERROR_NONE;