From 468e81e6da66f6dfec3a4857dc6e2f370ab180f1 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 27 Feb 2021 03:19:22 +0100 Subject: added cell_dev to test app --- fw/fe310/test/cell_dev.c | 24 ++++++++++++++++++++++++ fw/fe310/test/cell_dev.h | 1 + 2 files changed, 25 insertions(+) create mode 100644 fw/fe310/test/cell_dev.c create mode 100644 fw/fe310/test/cell_dev.h diff --git a/fw/fe310/test/cell_dev.c b/fw/fe310/test/cell_dev.c new file mode 100644 index 0000000..40f2736 --- /dev/null +++ b/fw/fe310/test/cell_dev.c @@ -0,0 +1,24 @@ +#include +#include +#include +#include + +#include +#include +#include + +#include "status.h" +#include "cell_dev.h" + +static void cell_dev_handler(unsigned char type, unsigned char *buffer, uint16_t len) { + switch (type) { + case EOS_CELL_MTYPE_READY: + app_status_msg_set("Modem ready", 1); + break; + } + eos_net_free(buffer, 0); +} + +void app_cell_dev_init(void) { + eos_cell_set_handler(EOS_CELL_MTYPE_DEV, cell_dev_handler); +} diff --git a/fw/fe310/test/cell_dev.h b/fw/fe310/test/cell_dev.h new file mode 100644 index 0000000..19b7717 --- /dev/null +++ b/fw/fe310/test/cell_dev.h @@ -0,0 +1 @@ +void app_cell_dev_init(void); \ No newline at end of file -- cgit v1.2.3