summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2018-11-07 01:50:39 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2018-11-07 01:50:39 -0800
commitcf08b3f2617c37939cdf67a938bcb8be6ade8988 (patch)
tree8ea6484be2086de4ac26353a9c2653d8db1058c4
parentc22372c5fab3a0e240a5e623f6e080cefbe35add (diff)
Move init
-rw-r--r--upload/Component.cdef1
-rw-r--r--upload/init.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/upload/Component.cdef b/upload/Component.cdef
index e44ad45..1253a5d 100644
--- a/upload/Component.cdef
+++ b/upload/Component.cdef
@@ -16,6 +16,7 @@ requires:
sources:
{
+ init.c
upload.c
xmodem.c
crc16.c
diff --git a/upload/init.c b/upload/init.c
new file mode 100644
index 0000000..a416ebf
--- /dev/null
+++ b/upload/init.c
@@ -0,0 +1,5 @@
+#include "upload.h"
+
+COMPONENT_INIT {
+ mtk_init();
+}