From 9c5ffa99328e1885cf75bedd2bfbcb30960a81dc Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 24 Mar 2013 14:32:54 +0700 Subject: [PATCH] house keeping --- demos/host/.cproject | 2 ++ demos/host/main.c | 7 +++---- tests/test/host/{test_hid_host.c => test_hidh.c} | 0 .../{test_hid_host_keyboard.c => test_hidh_keyboard.c} | 0 4 files changed, 5 insertions(+), 4 deletions(-) rename tests/test/host/{test_hid_host.c => test_hidh.c} (100%) rename tests/test/host/{test_hid_host_keyboard.c => test_hidh_keyboard.c} (100%) diff --git a/demos/host/.cproject b/demos/host/.cproject index dc98420d3..079ac0add 100644 --- a/demos/host/.cproject +++ b/demos/host/.cproject @@ -92,6 +92,7 @@ + @@ -182,6 +183,7 @@ + diff --git a/demos/host/main.c b/demos/host/main.c index cb14a3762..f2cd74eec 100644 --- a/demos/host/main.c +++ b/demos/host/main.c @@ -26,11 +26,10 @@ int main(void) { tusb_task_runner(); - if (current_tick + 30*1000 < system_ticks) + if (current_tick + 10*CFG_TICKS_PER_SECOND < system_ticks) { - current_tick += 30*1000; - board_leds(0x01, (current_tick/1000)%2); /* Toggle LED once per second */ - + current_tick = system_ticks; +// board_leds(0x01, (current_tick/CFG_TICKS_PER_SECOND)%2); /* Toggle LED once per second */ printf("tinyusb: " __DATE__ "\t" __TIME__ "\n"); } } diff --git a/tests/test/host/test_hid_host.c b/tests/test/host/test_hidh.c similarity index 100% rename from tests/test/host/test_hid_host.c rename to tests/test/host/test_hidh.c diff --git a/tests/test/host/test_hid_host_keyboard.c b/tests/test/host/test_hidh_keyboard.c similarity index 100% rename from tests/test/host/test_hid_host_keyboard.c rename to tests/test/host/test_hidh_keyboard.c