diff options
| author | hathach <[email protected]> | 2013-03-24 14:32:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-24 14:32:54 +0700 |
| commit | 9c5ffa99328e1885cf75bedd2bfbcb30960a81dc (patch) | |
| tree | 6f6847414714cb0c407563dac6e765de52c27bf6 | |
| parent | e6630af5a4c8760ddb2519d4178c0550e112475a (diff) | |
house keeping
| -rw-r--r-- | demos/host/.cproject | 2 | ||||
| -rw-r--r-- | demos/host/main.c | 7 | ||||
| -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 |
