mirror of
https://github.com/hathach/tinyusb.git
synced 2025-05-09 07:11:16 +08:00
refractor
This commit is contained in:
parent
356c329922
commit
72b42054e5
@ -45,8 +45,6 @@
|
|||||||
#include "ehci.h"
|
#include "ehci.h"
|
||||||
|
|
||||||
extern ehci_data_t ehci_data;
|
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_USB0_Type lpc_usb0;
|
||||||
LPC_USB1_Type lpc_usb1;
|
LPC_USB1_Type lpc_usb1;
|
||||||
@ -307,9 +305,11 @@ void test_register_portsc(void)
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
void test_ehci_data(void)
|
void test_ehci_data(void)
|
||||||
{
|
{
|
||||||
// period fram list alignment
|
for(uint32_t i=0; i<TUSB_CFG_HOST_CONTROLLER_NUM; i++)
|
||||||
TEST_ASSERT_BITS_LOW(4096-1, (uint32_t)period_frame_list0 );
|
{
|
||||||
TEST_ASSERT_BITS_LOW(4096-1, (uint32_t)period_frame_list1 );
|
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();
|
TEST_IGNORE();
|
||||||
}
|
}
|
||||||
|
@ -61,8 +61,8 @@
|
|||||||
#define TUSB_CFG_HOST
|
#define TUSB_CFG_HOST
|
||||||
|
|
||||||
//------------- CORE/CONTROLLER -------------//
|
//------------- CORE/CONTROLLER -------------//
|
||||||
#define TUSB_CFG_HOST_CONTROLLER_NUM 2
|
|
||||||
#define TUSB_CFG_HOST_CONTROLLER_START_INDEX 0
|
#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_HOST_DEVICE_MAX 2
|
||||||
#define TUSB_CFG_CONFIGURATION_MAX 2
|
#define TUSB_CFG_CONFIGURATION_MAX 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user