unfortunately, we cannot use time.h, there is a conflict name with std headers
authorzer0 <zer0@platinum>
Wed, 20 Jan 2010 23:48:40 +0000 (00:48 +0100)
committerzer0 <zer0@platinum>
Wed, 20 Jan 2010 23:48:40 +0000 (00:48 +0100)
projects/microb2010/tests/hostsim/.config
projects/microb2010/tests/hostsim/main.c
projects/microb2010/tests/hostsim/robotsim.c

index a5d281a..149a604 100644 (file)
@@ -86,8 +86,8 @@ CONFIG_MODULE_SCHEDULER_CREATE_CONFIG=y
 # CONFIG_MODULE_SCHEDULER_USE_TIMERS is not set
 # CONFIG_MODULE_SCHEDULER_TIMER0 is not set
 CONFIG_MODULE_SCHEDULER_MANUAL=y
-CONFIG_MODULE_TIME=y
-CONFIG_MODULE_TIME_CREATE_CONFIG=y
+# CONFIG_MODULE_TIME is not set
+# CONFIG_MODULE_TIME_CREATE_CONFIG is not set
 # CONFIG_MODULE_TIME_EXT is not set
 # CONFIG_MODULE_TIME_EXT_CREATE_CONFIG is not set
 
index ec70479..fe884e7 100644 (file)
@@ -71,7 +71,6 @@ int main(void)
        hostsim_init();\r
        robotsim_init();\r
 #endif\r
-       time_init(TIME_PRIO);\r
 \r
 \r
        microb_cs_init();\r
@@ -83,9 +82,9 @@ int main(void)
                DO_POS | DO_POWER | DO_BD | DO_CS;\r
 \r
        trajectory_d_rel(&mainboard.traj, 1000);\r
-       time_wait_ms(2000);\r
+       wait_ms(2000);\r
        trajectory_goto_xy_abs(&mainboard.traj, 1500, 2000);\r
-       time_wait_ms(2000);\r
+       wait_ms(2000);\r
        return 0;\r
 }\r
 \r
index 7ed49f4..713b7f7 100644 (file)
@@ -22,8 +22,8 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdint.h>
-#include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/types.h>
 #include <fcntl.h>
 
 #include <aversive.h>