mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-19 06:40:45 +00:00
refractor
This commit is contained in:
parent
356c329922
commit
72b42054e5
@ -45,8 +45,6 @@
|
||||
#include "ehci.h"
|
||||
|
||||
extern ehci_data_t ehci_data;
|
||||
extern ehci_link_t period_frame_list0[EHCI_FRAMELIST_SIZE];
|
||||
extern ehci_link_t period_frame_list1[EHCI_FRAMELIST_SIZE];
|
||||
|
||||
LPC_USB0_Type lpc_usb0;
|
||||
LPC_USB1_Type lpc_usb1;
|
||||
@ -307,9 +305,11 @@ void test_register_portsc(void)
|
||||
//--------------------------------------------------------------------+
|
||||
void test_ehci_data(void)
|
||||
{
|
||||
// period fram list alignment
|
||||
TEST_ASSERT_BITS_LOW(4096-1, (uint32_t)period_frame_list0 );
|
||||
TEST_ASSERT_BITS_LOW(4096-1, (uint32_t)period_frame_list1 );
|
||||
for(uint32_t i=0; i<TUSB_CFG_HOST_CONTROLLER_NUM; i++)
|
||||
{
|
||||
uint8_t hostid = i+TUSB_CFG_HOST_CONTROLLER_START_INDEX;
|
||||
TEST_ASSERT_BITS_LOW(4096-1, (uint32_t)get_period_frame_list(hostid) );
|
||||
}
|
||||
|
||||
TEST_IGNORE();
|
||||
}
|
||||
|
@ -61,8 +61,8 @@
|
||||
#define TUSB_CFG_HOST
|
||||
|
||||
//------------- CORE/CONTROLLER -------------//
|
||||
#define TUSB_CFG_HOST_CONTROLLER_NUM 2
|
||||
#define TUSB_CFG_HOST_CONTROLLER_START_INDEX 0
|
||||
#define TUSB_CFG_HOST_CONTROLLER_NUM (2 - TUSB_CFG_HOST_CONTROLLER_START_INDEX)
|
||||
|
||||
#define TUSB_CFG_HOST_DEVICE_MAX 2
|
||||
#define TUSB_CFG_CONFIGURATION_MAX 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user