summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/host/.cproject2
-rw-r--r--demos/host/main.c7
-rw-r--r--tests/test/host/test_hidh.c (renamed from tests/test/host/test_hid_host.c)0
-rw-r--r--tests/test/host/test_hidh_keyboard.c (renamed from tests/test/host/test_hid_host_keyboard.c)0
4 files changed, 5 insertions, 4 deletions
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 @@
<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
+ <storageModule moduleId="scannerConfiguration"/>
</cconfiguration>
<cconfiguration id="com.crt.advproject.config.exe.debug.1239969983.636406670">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.crt.advproject.config.exe.debug.1239969983.636406670" moduleId="org.eclipse.cdt.core.settings" name="Board EA4357">
@@ -182,6 +183,7 @@
<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
+ <storageModule moduleId="scannerConfiguration"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
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
index 3891034e5..3891034e5 100644
--- a/tests/test/host/test_hid_host.c
+++ b/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
index ac690a8f9..ac690a8f9 100644
--- a/tests/test/host/test_hid_host_keyboard.c
+++ b/tests/test/host/test_hidh_keyboard.c