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:
@@ -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));
|
||||
}
|
||||
Reference in New Issue
Block a user