hathach 13 лет назад
Родитель
Сommit
9c5ffa9932
4 измененных файлов с 5 добавлено и 4 удалено
  1. 2 0
      demos/host/.cproject
  2. 3 4
      demos/host/main.c
  3. 0 0
      tests/test/host/test_hidh.c
  4. 0 0
      tests/test/host/test_hidh_keyboard.c

+ 2 - 0
demos/host/.cproject

@@ -92,6 +92,7 @@
 			<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
 			<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
 			<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
 			<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
 			<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
 			<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
+			<storageModule moduleId="scannerConfiguration"/>
 		</cconfiguration>
 		</cconfiguration>
 		<cconfiguration id="com.crt.advproject.config.exe.debug.1239969983.636406670">
 		<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">
 			<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.core.language.mapping"/>
 			<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
 			<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
 			<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
 			<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
+			<storageModule moduleId="scannerConfiguration"/>
 		</cconfiguration>
 		</cconfiguration>
 	</storageModule>
 	</storageModule>
 	<storageModule moduleId="cdtBuildSystem" version="4.0.0">
 	<storageModule moduleId="cdtBuildSystem" version="4.0.0">

+ 3 - 4
demos/host/main.c

@@ -26,11 +26,10 @@ int main(void)
   {
   {
     tusb_task_runner();
     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");
       printf("tinyusb: " __DATE__ "\t" __TIME__ "\n");
     }
     }
   }
   }

+ 0 - 0
tests/test/host/test_hid_host.c → tests/test/host/test_hidh.c


+ 0 - 0
tests/test/host/test_hid_host_keyboard.c → tests/test/host/test_hidh_keyboard.c