Kconfig.spiram 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. config SPIRAM
  2. bool "Support for external PSRAM"
  3. default "n"
  4. help
  5. This enables support for an external PSRAM chip, connected in parallel with the
  6. main SPI flash chip.
  7. menu "PSRAM config"
  8. depends on SPIRAM
  9. choice SPIRAM_MODE
  10. prompt "Line Mode of PSRAM chip in use"
  11. default SPIRAM_MODE_HEX
  12. config SPIRAM_MODE_HEX
  13. bool "16-Line-Mode PSRAM"
  14. endchoice
  15. config SPIRAM_USE_8LINE_MODE
  16. bool
  17. depends on SPIRAM_MODE_HEX
  18. default n
  19. help
  20. Enable 8-Line-Mode of the AP HEX PSRAM
  21. choice SPIRAM_SPEED
  22. prompt "Set PSRAM clock speed"
  23. default SPIRAM_SPEED_20M
  24. help
  25. Select the speed for the PSRAM chip.
  26. config SPIRAM_SPEED_20M
  27. bool "20MHz clock speed"
  28. endchoice
  29. config SPIRAM_SPEED
  30. int
  31. default 20 if SPIRAM_SPEED_20M
  32. config SPIRAM_ECC_ENABLE
  33. bool "Enable PSRAM ECC"
  34. default n
  35. help
  36. Enable Error-Correcting Code function when accessing PSRAM.
  37. If enabled, 1/8 of the PSRAM total size will be reserved for error-correcting code.
  38. config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
  39. bool "Allow external memory as an argument to xTaskCreateStatic"
  40. default y
  41. help
  42. Accessing memory in PSRAM has certain restrictions, so task stacks allocated by xTaskCreate
  43. are by default allocated from internal RAM.
  44. This option allows for passing memory allocated from PSRAM to be passed to xTaskCreateStatic.
  45. This should only be used for tasks where the stack is never accessed while the L2Cache is
  46. disabled, e.g. during SPI Flash operations
  47. source "$IDF_PATH/components/esp_psram/Kconfig.spiram.common" # insert non-chip-specific items here
  48. endmenu