From cf08b3f2617c37939cdf67a938bcb8be6ade8988 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Wed, 7 Nov 2018 01:50:39 -0800 Subject: Move init --- upload/Component.cdef | 1 + upload/init.c | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 upload/init.c 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(); +} -- cgit v1.2.3