add test for pipe_interrupt_xfer
implement keyboard app code - forcefully place keyboard_report in RAM section 3 change used bit in qtd from reserved in buffer[1] to alternate link add code for fake ehci controller runs on period interrupt change signature of tusbh_hid_keyboard_get_report - tusb_keyboard_report_t* to uint8_t* implement period (interrupt) complete isr processing
This commit is contained in:
@@ -113,6 +113,7 @@ void test_qtd_structure(void)
|
||||
{
|
||||
TEST_ASSERT_EQUAL( 0, offsetof(ehci_qtd_t, next));
|
||||
TEST_ASSERT_EQUAL( 4, offsetof(ehci_qtd_t, alternate));
|
||||
TEST_ASSERT_EQUAL( 5, BITFIELD_OFFSET_OF_UINT32(ehci_qtd_t, 1, used));
|
||||
|
||||
//------------- Word 2 -------------//
|
||||
TEST_ASSERT_EQUAL( 0, BITFIELD_OFFSET_OF_UINT32(ehci_qtd_t, 2, pingstate_err) );
|
||||
@@ -131,7 +132,6 @@ void test_qtd_structure(void)
|
||||
TEST_ASSERT_EQUAL( 31, BITFIELD_OFFSET_OF_UINT32(ehci_qtd_t, 2, data_toggle) );
|
||||
|
||||
TEST_ASSERT_EQUAL( 12, offsetof(ehci_qtd_t, buffer));
|
||||
TEST_ASSERT_EQUAL( 16, offsetof(ehci_qtd_t, used));
|
||||
}
|
||||
|
||||
void test_qhd_structure(void)
|
||||
|
||||
Reference in New Issue
Block a user