瀏覽代碼

Add main method

Thomas Buck 8 年之前
父節點
當前提交
fc90cdbcb6
共有 2 個文件被更改,包括 17 次插入0 次删除
  1. 1
    0
      .gitignore
  2. 16
    0
      src/main.c

+ 1
- 0
.gitignore 查看文件

@@ -1,2 +1,3 @@
1 1
 .DS_Store
2 2
 *.o
3
+build

+ 16
- 0
src/main.c 查看文件

@@ -0,0 +1,16 @@
1
+/*
2
+ * main() method
3
+ */
4
+
5
+#include "spi.h"
6
+#include "timer.h"
7
+#include "rx.h"
8
+
9
+void main(void) {
10
+    timerInit();
11
+    spiInit();
12
+    rxInit();
13
+
14
+    for(;;) { }
15
+}
16
+

Loading…
取消
儲存