prj.conf 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # OpenPuck Zephyr configuration.
  2. #
  3. # The RADIO peripheral is driven bare-metal (reverse-engineered SC2 protocol),
  4. # so NO Zephyr radio stack may claim it.
  5. CONFIG_BT=n
  6. CONFIG_IEEE802154=n
  7. CONFIG_NRF_802154_RADIO_DRIVER=n
  8. # C++ (the ported modes/protocol are C++).
  9. CONFIG_CPP=y
  10. CONFIG_STD_CPP17=y
  11. CONFIG_REQUIRES_FULL_LIBCPP=n
  12. CONFIG_CPP_EXCEPTIONS=n
  13. CONFIG_CPP_RTTI=n
  14. # Console/logging over RTT or UART during bring-up (USB CDC console added later).
  15. CONFIG_LOG=y
  16. CONFIG_PRINTK=y
  17. # Core subsystems used by the port.
  18. CONFIG_GPIO=y
  19. CONFIG_FLASH=y
  20. CONFIG_FLASH_MAP=y
  21. CONFIG_REBOOT=y
  22. # Persistence: the Arduino tree stored cfg.bin/bonds.bin in the nRF52 internal
  23. # LittleFS. We keep LittleFS (Zephyr's fs subsystem on the storage partition) so
  24. # the persistence code ports behind a thin Adafruit_LittleFS shim.
  25. CONFIG_FILE_SYSTEM=y
  26. CONFIG_FILE_SYSTEM_LITTLEFS=y
  27. CONFIG_FILE_SYSTEM_MKFS=y
  28. # The firmware drives the WDT peripheral directly (NRF_WDT, ported verbatim from
  29. # the Arduino setup()/loop()), so Zephyr's watchdog driver is left out to avoid
  30. # double-ownership of the peripheral.
  31. # Microsecond timing for the RF poll busy-waits comes from a dedicated 1 MHz
  32. # nrfx TIMER in the compat layer (the kernel RTC tick is too coarse), so the
  33. # kernel clock is left at its board default here.
  34. # Reasonable main stack for the cooperative loop + protocol state.
  35. CONFIG_MAIN_STACK_SIZE=4096
  36. CONFIG_HEAP_MEM_POOL_SIZE=2048