clean up test
This commit is contained in:
parent
7355a45a67
commit
e50010c36c
|
@ -47,12 +47,11 @@
|
||||||
- CORE_M4
|
- CORE_M4
|
||||||
- __CODE_RED
|
- __CODE_RED
|
||||||
- _TINY_USB_SOURCE_FILE_
|
- _TINY_USB_SOURCE_FILE_
|
||||||
|
- _TEST_
|
||||||
:test:
|
:test:
|
||||||
- *common_defines
|
- *common_defines
|
||||||
- _TEST_
|
|
||||||
:test_preprocess:
|
:test_preprocess:
|
||||||
- *common_defines
|
- *common_defines
|
||||||
- _TEST_
|
|
||||||
# :release:
|
# :release:
|
||||||
# :release_preprocess:
|
# :release_preprocess:
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
*/
|
*/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "type_helper.h"
|
#include "type_helper.h"
|
||||||
#include "tusb_option.h"
|
#include "tusb_option.h"
|
||||||
|
@ -60,7 +61,7 @@ uint8_t hostid;
|
||||||
void setUp(void)
|
void setUp(void)
|
||||||
{
|
{
|
||||||
ehci_controller_init();
|
ehci_controller_init();
|
||||||
hcd_init();
|
TEST_ASSERT_EQUAL( TUSB_ERROR_NONE, hcd_init());
|
||||||
|
|
||||||
dev_addr = 1;
|
dev_addr = 1;
|
||||||
hostid = RANDOM(CONTROLLER_HOST_NUMBER) + TEST_CONTROLLER_HOST_START_INDEX;
|
hostid = RANDOM(CONTROLLER_HOST_NUMBER) + TEST_CONTROLLER_HOST_START_INDEX;
|
||||||
|
|
Loading…
Reference in New Issue