summaryrefslogtreecommitdiff
path: root/src/reception.c
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2020-03-08 14:09:11 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2020-03-08 17:10:59 +0100
commit96b0c9d692fd4b41d41e13cdcd8fc773b3976dde (patch)
tree8acee0c8d8c4a412f330e41214ec75e7702c8df7 /src/reception.c
parente32281cf6b01800f95d7640a127811c79234fe6f (diff)
downloadopensend-96b0c9d692fd4b41d41e13cdcd8fc773b3976dde.tar.gz
First working RX ISR
Diffstat (limited to 'src/reception.c')
-rw-r--r--src/reception.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/reception.c b/src/reception.c
new file mode 100644
index 0000000..12c1866
--- /dev/null
+++ b/src/reception.c
@@ -0,0 +1,26 @@
+#include "reception.h"
+#include "Serial.h"
+#include <stdbool.h>
+
+static volatile bool rx;
+
+static enum
+{
+
+} state;
+
+void reception_ev(void)
+{
+ rx = true;
+}
+
+void reception_loop(void)
+{
+ for (;;)
+ {
+ if (rx)
+ {
+
+ }
+ }
+}