diff options
| author | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-03-08 14:09:11 +0100 |
|---|---|---|
| committer | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-03-08 17:10:59 +0100 |
| commit | 96b0c9d692fd4b41d41e13cdcd8fc773b3976dde (patch) | |
| tree | 8acee0c8d8c4a412f330e41214ec75e7702c8df7 /src/reception.c | |
| parent | e32281cf6b01800f95d7640a127811c79234fe6f (diff) | |
| download | opensend-96b0c9d692fd4b41d41e13cdcd8fc773b3976dde.tar.gz | |
First working RX ISR
Diffstat (limited to 'src/reception.c')
| -rw-r--r-- | src/reception.c | 26 |
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) + { + + } + } +} |
