summaryrefslogtreecommitdiff
path: root/code/esp32/components
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-12-07 17:12:27 +0100
committerUros Majstorovic <majstor@majstor.org>2019-12-07 17:12:27 +0100
commit8cdc7528c800a3f10bca3e875e76f6d9661ab88f (patch)
tree976d127e627116e6613ac2c5b9c250ea466bcbae /code/esp32/components
parent0bcbb62eb408e6fcbfe78fbc2756dfb1b9ae6a37 (diff)
added net_alloc; fixed cell modem driver
Diffstat (limited to 'code/esp32/components')
-rw-r--r--code/esp32/components/eos/cell_modem.c (renamed from code/esp32/components/eos/modem.c)0
-rw-r--r--code/esp32/components/eos/cell_pcm.c (renamed from code/esp32/components/eos/pcm.c)0
-rw-r--r--code/esp32/components/eos/include/cell.h18
-rw-r--r--code/esp32/components/eos/include/modem.h4
-rw-r--r--code/esp32/components/eos/include/pcm.h6
5 files changed, 18 insertions, 10 deletions
diff --git a/code/esp32/components/eos/modem.c b/code/esp32/components/eos/cell_modem.c
index 7e3131f..7e3131f 100644
--- a/code/esp32/components/eos/modem.c
+++ b/code/esp32/components/eos/cell_modem.c
diff --git a/code/esp32/components/eos/pcm.c b/code/esp32/components/eos/cell_pcm.c
index edfcf88..edfcf88 100644
--- a/code/esp32/components/eos/pcm.c
+++ b/code/esp32/components/eos/cell_pcm.c
diff --git a/code/esp32/components/eos/include/cell.h b/code/esp32/components/eos/include/cell.h
new file mode 100644
index 0000000..61da67a
--- /dev/null
+++ b/code/esp32/components/eos/include/cell.h
@@ -0,0 +1,18 @@
+#include <sys/types.h>
+
+#define EOS_CELL_MTYPE_DATA 0
+#define EOS_CELL_MTYPE_AUDIO 1
+
+#define EOS_CELL_MTYPE_DATA_START 2
+#define EOS_CELL_MTYPE_DATA_STOP 3
+
+#define EOS_CELL_MTYPE_AUDIO_START 2
+#define EOS_CELL_MTYPE_AUDIO_STOP 3
+
+void eos_pcm_init(void);
+ssize_t eos_pcm_write(void *data, size_t size);
+void eos_pcm_call(void);
+
+void eos_modem_init(void);
+ssize_t eos_modem_write(void *data, size_t size);
+void eos_modem_set_mode(char mode);
diff --git a/code/esp32/components/eos/include/modem.h b/code/esp32/components/eos/include/modem.h
deleted file mode 100644
index 6a80918..0000000
--- a/code/esp32/components/eos/include/modem.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <sys/types.h>
-
-void eos_modem_init(void);
-ssize_t eos_modem_write(void *data, size_t size); \ No newline at end of file
diff --git a/code/esp32/components/eos/include/pcm.h b/code/esp32/components/eos/include/pcm.h
deleted file mode 100644
index dcccea7..0000000
--- a/code/esp32/components/eos/include/pcm.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <sys/types.h>
-#include <stdint.h>
-
-void eos_pcm_init(void);
-ssize_t eos_pcm_write(void *data, size_t size);
-void eos_pcm_call(void);