diff options
| author | hathach <[email protected]> | 2013-07-02 17:20:25 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-02 17:20:25 +0700 |
| commit | e1ad7b62cf453735b3f8b9d97abe2b3e6579a099 (patch) | |
| tree | f90caee82c921b0b62c8ebaa19352eb28f72d245 /tests | |
| parent | 6ce90e2bd8d1599df22af8dc670d4187a1ec6dc5 (diff) | |
add way to calculate the actual byte transferred with ehci
add come callback for cdch
add code for cdc serial demo
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lpc18xx_43xx/test/host/ehci/test_pipe_bulk_xfer.c | 1 | ||||
| -rw-r--r-- | tests/lpc18xx_43xx/test/host/ehci/test_pipe_interrupt_xfer.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/lpc18xx_43xx/test/host/ehci/test_pipe_bulk_xfer.c b/tests/lpc18xx_43xx/test/host/ehci/test_pipe_bulk_xfer.c index ff68be458..d792d358d 100644 --- a/tests/lpc18xx_43xx/test/host/ehci/test_pipe_bulk_xfer.c +++ b/tests/lpc18xx_43xx/test/host/ehci/test_pipe_bulk_xfer.c @@ -134,6 +134,7 @@ void verify_qtd(ehci_qtd_t *p_qtd, uint8_t p_data[], uint16_t length) TEST_ASSERT_EQUAL(3, p_qtd->cerr); TEST_ASSERT_EQUAL(0, p_qtd->current_page); TEST_ASSERT_EQUAL(length, p_qtd->total_bytes); + TEST_ASSERT_EQUAL(length, p_qtd->expected_bytes); TEST_ASSERT_TRUE(p_qtd->used); TEST_ASSERT_EQUAL_HEX( p_data, p_qtd->buffer[0] ); diff --git a/tests/lpc18xx_43xx/test/host/ehci/test_pipe_interrupt_xfer.c b/tests/lpc18xx_43xx/test/host/ehci/test_pipe_interrupt_xfer.c index e6c897c9b..1cb6ae8af 100644 --- a/tests/lpc18xx_43xx/test/host/ehci/test_pipe_interrupt_xfer.c +++ b/tests/lpc18xx_43xx/test/host/ehci/test_pipe_interrupt_xfer.c @@ -136,6 +136,7 @@ void verify_qtd(ehci_qtd_t *p_qtd, uint8_t p_data[], uint16_t length) TEST_ASSERT_EQUAL(3, p_qtd->cerr); TEST_ASSERT_EQUAL(0, p_qtd->current_page); TEST_ASSERT_EQUAL(length, p_qtd->total_bytes); + TEST_ASSERT_EQUAL(length, p_qtd->expected_bytes); TEST_ASSERT_TRUE(p_qtd->used); TEST_ASSERT_EQUAL_HEX( p_data, p_qtd->buffer[0] ); |
