summaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-04 15:01:33 +0700
committerhathach <[email protected]>2013-03-04 15:01:33 +0700
commit656da2992ded914c70da849f9f7a1571dd2b91f4 (patch)
tree3e00db7c1c2cf57276fd61ae833e54ff1ea67364 /tests/test
parent5207875addf972f8323b51318975c6c6f3861dd4 (diff)
add alignof to compilier specific
add static_assert support for IAR (built-in support)
Diffstat (limited to 'tests/test')
-rw-r--r--tests/test/host/ehci/test_ehci_init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test/host/ehci/test_ehci_init.c b/tests/test/host/ehci/test_ehci_init.c
index 5d691b600..f83d5f979 100644
--- a/tests/test/host/ehci/test_ehci_init.c
+++ b/tests/test/host/ehci/test_ehci_init.c
@@ -83,7 +83,7 @@ void test_hcd_init_usbint(void)
for(uint32_t i=0; i<TUSB_CFG_HOST_CONTROLLER_NUM; i++)
{
- ehci_registers_t* regs = get_operational_register(i+TUSB_CFG_HOST_CONTROLLER_START_INDEX);
+ ehci_registers_t* const regs = get_operational_register(i+TUSB_CFG_HOST_CONTROLLER_START_INDEX);
//------------- USB INT Enable-------------//
TEST_ASSERT(regs->usb_int_enable_bit.usb_error);
@@ -188,5 +188,9 @@ void test_hcd_init_usbcmd(void)
TEST_ASSERT_BITS(BIN8(11), EHCI_CFG_FRAMELIST_SIZE_BITS, regs->usb_cmd_bit.framelist_size);
TEST_ASSERT_EQUAL(EHCI_CFG_FRAMELIST_SIZE_BITS >> 2, regs->usb_cmd_bit.nxp_framelist_size_msb);
}
+}
+void test_hcd_init_portsc(void)
+{
+ TEST_IGNORE_MESSAGE("more advance stuff need manipulate this register");
}