Commit Graph

2 Commits

Author SHA1 Message Date
Krzysztof Cieślik
0e348414f8 Implement basic radio TX on fixed channel
radio_init() configures RADIO in NRF_1Mbit proprietary mode: 8-bit
length field, 4-byte address (BASE0+PREFIX0), 2-byte CRC-16/CCITT,
0 dBm TX power, channel 20 (2420 MHz). READY->START and END->DISABLE
shortcuts let radio_tx() trigger the full ramp-up/TX/disable sequence
by writing TASKS_TXEN once, then polling EVENTS_END.

main.c sends a fixed 4-byte test frame on every button press.
FHSS and AES remain compiled but are not called.

New bitfield unions in regs.h: radio_pcnf0_t, radio_pcnf1_t,
radio_crccnf_t, radio_shorts_t.
2026-05-21 22:53:32 +02:00
Krzysztof Cieślik
438fca0ace Initial bare-metal foundation for nRF52840 PTT-FHSS
- Fully open toolchain: arm-none-eabi-gcc inside Podman/Docker container
- Platform-agnostic build via justfile (auto-detects podman vs docker)
- CMake + Ninja build system with arm-none-eabi toolchain file
- nRF52840 linker script and startup with full 64-entry vector table
- Register access via typed bitfield unions (include/regs.h)
- FHSS channel sequencer: AES-128-ECB PRNG over 40 channels (2402-2480 MHz)
- Low-power sleep via SYSTEM_ON WFI + GPIOTE wakeup on button press
- Vendor deps as shallow git submodules: nrfx, CMSIS_5, tiny-AES-c
2026-05-21 20:24:33 +02:00