add ASSERT POINTER support

add hid host and separate hid host & device
update host project setting with EA4357 board
add para checking test for hid host
This commit is contained in:
hathach
2013-01-18 14:39:42 +07:00
parent 7976e2fd55
commit d8c8b9e38a
16 changed files with 816 additions and 73 deletions

View File

@@ -47,7 +47,7 @@
- _TEST_
- MCU=MCU_LPC43XX
- CORE_M4
- __CODE_RED
- __CODE_RED
:test_preprocess:
- *common_defines
- _TEST_

View File

@@ -35,6 +35,10 @@
* This file is part of the tiny usb stack.
*/
#include "unity.h"
#include "hid.h"
#include "hid_host.h"
void setUp(void)
{
}
@@ -43,7 +47,10 @@ void tearDown(void)
{
}
void test_()
void test_keyboard_get_invalid_parameter()
{
TEST_IGNORE();
tusb_interface_keyboard_handle_t handle;
tusb_keyboard_report_t report;
TEST_ASSERT_FALSE (tusb_host_keyboard_get(NULL, &report));
TEST_ASSERT_FALSE (tusb_host_keyboard_get(&handle, NULL));
}