diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-15 18:10:52 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-15 18:15:31 +0800 |
| commit | 18502ba0f60906d6fc886d85096d8c2eef9ca4a9 (patch) | |
| tree | 1600851148da2c721eda28b716fa3dfbe2336755 /lock/fend.c | |
| parent | 41ccbacf8a68f9bd7fe798b19ef5a9f07563a7d0 (diff) | |
| download | smart-home-18502ba0f60906d6fc886d85096d8c2eef9ca4a9.tar.gz | |
Add encryption logic to back end.
Diffstat (limited to 'lock/fend.c')
| -rw-r--r-- | lock/fend.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lock/fend.c b/lock/fend.c new file mode 100644 index 0000000..7d86ab1 --- /dev/null +++ b/lock/fend.c @@ -0,0 +1,34 @@ +/* Lock front, connected to the fingerprint scanner */ + +#include <stdint.h> +#include <stdlib.h> + +#include <avr/interrupt.h> +#include <avr/wdt.h> +#include <util/delay.h> + +#include "nrfm.h" +#include "uart.h" +#include "util.h" + +int main(void) +{ + uint8_t n; + uint8_t rxaddr[ADDRLEN] = { 194, 178, 82 }; + uint8_t txaddr[ADDRLEN] = { 194, 178, 83 }; + + char buf[WDLEN + 1], msg[WDLEN + 1]; + + uart_init(); + radio_init(rxaddr); + radio_print_config(); + + sei(); + + for (;;) { + _delay_ms(2000); + } + + return 0; +} + |
