From ef50eb9c042550734e1e48fbaaf041fe4b915abf Mon Sep 17 00:00:00 2001 From: Shahzeb Imran Date: Thu, 4 Apr 2019 15:55:37 +1000 Subject: [PATCH 1/2] added some files to start developing support for mitosis receiver (32u4 talking to nrf51 via uart) and the nrf51 in general (for keyboard transmitters) --- ports/atmega32u4/src/nrf51.c | 2 ++ ports/atmega32u4/src/uart.c | 1 + ports/atmega32u4/src/uart.h | 0 ports/nrf51/todo.txt | 4 ++++ 4 files changed, 7 insertions(+) create mode 100644 ports/atmega32u4/src/nrf51.c create mode 100644 ports/atmega32u4/src/uart.c create mode 100644 ports/atmega32u4/src/uart.h create mode 100644 ports/nrf51/todo.txt diff --git a/ports/atmega32u4/src/nrf51.c b/ports/atmega32u4/src/nrf51.c new file mode 100644 index 0000000..441cabd --- /dev/null +++ b/ports/atmega32u4/src/nrf51.c @@ -0,0 +1,2 @@ +// implement rf.h for nrf51 as in mitosis receiver. Data is piped to nrf51 over UART +// nrf51 should handle encryption and decryption of data with the built in AES accelerator diff --git a/ports/atmega32u4/src/uart.c b/ports/atmega32u4/src/uart.c new file mode 100644 index 0000000..294f90b --- /dev/null +++ b/ports/atmega32u4/src/uart.c @@ -0,0 +1 @@ +// implement UART driver for 32u4 to talk to nrf51 on mitosis receivers diff --git a/ports/atmega32u4/src/uart.h b/ports/atmega32u4/src/uart.h new file mode 100644 index 0000000..e69de29 diff --git a/ports/nrf51/todo.txt b/ports/nrf51/todo.txt new file mode 100644 index 0000000..375af61 --- /dev/null +++ b/ports/nrf51/todo.txt @@ -0,0 +1,4 @@ +Include SDK v12 files for: + UART (mitosis receiver) + AES ECB (nrf_ecb.h in the HAL) + ESB From a129e66a4d93f3ed9d13105bd319a1e5ba32cd2a Mon Sep 17 00:00:00 2001 From: Shahzeb Imran Date: Sat, 6 Apr 2019 01:32:02 +1000 Subject: [PATCH 2/2] removed todo.txt, added README.md --- ports/nrf51/README.md | 10 ++++++++++ ports/nrf51/todo.txt | 4 ---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 ports/nrf51/README.md delete mode 100644 ports/nrf51/todo.txt diff --git a/ports/nrf51/README.md b/ports/nrf51/README.md new file mode 100644 index 0000000..b579f98 --- /dev/null +++ b/ports/nrf51/README.md @@ -0,0 +1,10 @@ +# NRF51 Support + +Support for the common nrf51 modules. Should work for receiving (needs extra hardware such as atmega32u4) and transmitting. + +## Features todo + +1. Add UART support and integrate with 32u4 for support of [mitosis receivers](https://github.com/reversebias/mitosis-hardware) +2. Encryption/decryption on nrf51 chip as it is faster than the 32u4. NRF51 has AES encryption hardware, but not decryption, so use [cifra](https://github.com/ctz/cifra) for that. +3. Compatibility with ESB protocol to work with all nrf24 based boards +4. *Maybe* write a bootloader for nrf51 so it can be updated over UART for the receiver. People with nrf51 based boards would still have to update the transmitters with a SWD programmer. diff --git a/ports/nrf51/todo.txt b/ports/nrf51/todo.txt deleted file mode 100644 index 375af61..0000000 --- a/ports/nrf51/todo.txt +++ /dev/null @@ -1,4 +0,0 @@ -Include SDK v12 files for: - UART (mitosis receiver) - AES ECB (nrf_ecb.h in the HAL) - ESB