Kconfig.projbuild 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. menu "Example Configuration"
  2. choice BASE_MAC_ADDRESS_STORAGE
  3. prompt "Storage location of the base MAC address"
  4. default BASE_MAC_STORED_EFUSE_BLK0
  5. help
  6. Select the storage location of the base MAC addresses.
  7. 1. eFuse BLK0: The "Default (Espressif factory)" selection. The
  8. default base MAC address is written to words 1 and 2 of eFuse block
  9. 0 when the chip was manufactured. Call esp_efuse_mac_get_default()
  10. read retrieve the "eFuse BLK0" MAC address.
  11. 2. eFuse BLK3: A custom base MAC address is burned by the user into
  12. eFuse word 0 of block 3. Call esp_efuse_mac_get_custom() to read
  13. the "eFuse BLK3" MAC address.
  14. 3. Other External Storage: Selecting this option will cause the
  15. example to call external_storage_mac_get() which is defined in this
  16. example to simply return a MAC address preset in software. Users
  17. should modify this function to access their desired storage mediums
  18. (e.g. flash, EEPROM etc).
  19. config BASE_MAC_STORED_EFUSE_BLK0
  20. bool "Default (Espressif factory) eFuse BLK0"
  21. config BASE_MAC_STORED_EFUSE_BLK3
  22. bool "Custom eFuse BLK3"
  23. config BASE_MAC_STORED_OTHER_EXTERNAL_STORAGE
  24. bool "Other external storage"
  25. endchoice
  26. choice BASE_MAC_STORED_EFUSE_BLK3_ERROR_BEHAV
  27. prompt "Behavior when retrieving eFuse BLK3 fails"
  28. depends on BASE_MAC_STORED_EFUSE_BLK3
  29. default BASE_MAC_STORED_EFUSE_BLK3_ERROR_DEFAULT
  30. help
  31. Select the behavior when reading base MAC address "eFuse BLK3" fails
  32. (i.e. the retrieved result is all 0).
  33. - If "Abort" is selected, the ESP32 will abort.
  34. - If "Use the default base MAC address from BLK0 of eFuse" is
  35. selected, the default "eFuse BLK0" will be used instead.
  36. config BASE_MAC_STORED_EFUSE_BLK3_ERROR_ABORT
  37. bool "Abort"
  38. config BASE_MAC_STORED_EFUSE_BLK3_ERROR_DEFAULT
  39. bool "Use the default base MAC address eFuse BLK0"
  40. endchoice
  41. endmenu