add primitive_types.h for portable with uint8,16,32_t, and bool

add osal_common.h to ease the complaint of MISRA 19.1
implement OSAL_NONE Task loop, semaphore wait/post and its test code
This commit is contained in:
hathach
2013-01-30 11:35:37 +07:00
parent 6db8af2023
commit 07048b943e
8 changed files with 297 additions and 19 deletions

View File

@@ -67,6 +67,7 @@ void test_usbh_init_checkmem(void)
void test_usbh_init_queue_create_fail(void)
{
TEST_IGNORE();
osal_queue_create_IgnoreAndReturn(TUSB_ERROR_OSAL_QUEUE_FAILED);
TEST_ASSERT_EQUAL(TUSB_ERROR_OSAL_QUEUE_FAILED, usbh_init());
}