prj.conf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. # Hardware watchdog (replaces the NRF_WDT poke in the Arduino loop()).
  28. CONFIG_WATCHDOG=y
  29. # Microsecond timing for the RF poll busy-waits comes from a dedicated 1 MHz
  30. # nrfx TIMER in the compat layer (the kernel RTC tick is too coarse), so the
  31. # kernel clock is left at its board default here.
  32. # Reasonable main stack for the cooperative loop + protocol state.
  33. CONFIG_MAIN_STACK_SIZE=4096
  34. CONFIG_HEAP_MEM_POOL_SIZE=2048