summaryrefslogtreecommitdiffstats
path: root/src/init.c
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-10-06 14:41:38 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-10-06 14:41:38 -0400
commit51699171c289c5ff553ed0c9c75c5a108e164fff (patch)
treedb9379fd4b8966bc12bc2713912638c691b3db1b /src/init.c
parente5199012ee77fd8ada1bffdb1a44057ef98a25a8 (diff)
uploaded code
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();
+}