summaryrefslogtreecommitdiffstats
path: root/src/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/init.c b/src/init.c
new file mode 100644
index 0000000..f3948f0
--- /dev/null
+++ b/src/init.c
@@ -0,0 +1,15 @@
+#include "main.h"
+
+Gyro gyro;
+unsigned int imeCount=0;
+
+void initializeIO(void){
+ pinMode(1,INPUT_ANALOG);
+}
+
+void initialize(void){
+ lcdInit(uart1);
+ lcdClear(uart1);
+ gyro=gyroInit(2,0);
+ imeCount=imeInitializeAll();
+}