2017-05-05 10:24:56 -04:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
choice BASE_MAC_ADDRESS_STORAGE
|
2019-06-25 14:41:19 -04:00
|
|
|
prompt "Storage location of the base MAC address"
|
2019-01-25 11:10:53 -05:00
|
|
|
default BASE_MAC_STORED_EFUSE_BLK0
|
|
|
|
help
|
2019-06-25 14:41:19 -04:00
|
|
|
Select the storage location of the base MAC addresses.
|
|
|
|
1. eFuse BLK0: The "Default (Espressif factory)" selection. The
|
|
|
|
default base MAC address is written to words 1 and 2 of eFuse block
|
|
|
|
0 when the chip was manufactured. Call esp_efuse_mac_get_default()
|
|
|
|
read retrieve the "eFuse BLK0" MAC address.
|
|
|
|
2. eFuse BLK3: A custom base MAC address is burned by the user into
|
|
|
|
eFuse word 0 of block 3. Call esp_efuse_mac_get_custom() to read
|
|
|
|
the "eFuse BLK3" MAC address.
|
|
|
|
3. Other External Storage: Selecting this option will cause the
|
|
|
|
example to call external_storage_mac_get() which is defined in this
|
|
|
|
example to simply return a MAC address preset in software. Users
|
|
|
|
should modify this function to access their desired storage mediums
|
|
|
|
(e.g. flash, EEPROM etc).
|
2017-05-05 10:24:56 -04:00
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
config BASE_MAC_STORED_EFUSE_BLK0
|
|
|
|
bool "Default (Espressif factory) eFuse BLK0"
|
|
|
|
config BASE_MAC_STORED_EFUSE_BLK3
|
|
|
|
bool "Custom eFuse BLK3"
|
|
|
|
config BASE_MAC_STORED_OTHER_EXTERNAL_STORAGE
|
|
|
|
bool "Other external storage"
|
|
|
|
endchoice
|
2017-05-05 10:24:56 -04:00
|
|
|
|
2019-05-09 10:43:06 -04:00
|
|
|
choice BASE_MAC_STORED_EFUSE_BLK3_ERROR_BEHAV
|
2019-06-25 14:41:19 -04:00
|
|
|
prompt "Behavior when retrieving eFuse BLK3 fails"
|
2019-01-25 11:10:53 -05:00
|
|
|
depends on BASE_MAC_STORED_EFUSE_BLK3
|
2019-05-09 10:43:06 -04:00
|
|
|
default BASE_MAC_STORED_EFUSE_BLK3_ERROR_DEFAULT
|
2019-01-25 11:10:53 -05:00
|
|
|
help
|
2019-06-25 14:41:19 -04:00
|
|
|
Select the behavior when reading base MAC address "eFuse BLK3" fails
|
|
|
|
(i.e. the retrieved result is all 0).
|
|
|
|
- If "Abort" is selected, the ESP32 will abort.
|
|
|
|
- If "Use the default base MAC address from BLK0 of eFuse" is
|
|
|
|
selected, the default "eFuse BLK0" will be used instead.
|
2019-01-25 11:10:53 -05:00
|
|
|
|
|
|
|
config BASE_MAC_STORED_EFUSE_BLK3_ERROR_ABORT
|
|
|
|
bool "Abort"
|
2019-05-09 10:43:06 -04:00
|
|
|
config BASE_MAC_STORED_EFUSE_BLK3_ERROR_DEFAULT
|
2019-06-25 14:41:19 -04:00
|
|
|
bool "Use the default base MAC address eFuse BLK0"
|
2019-01-25 11:10:53 -05:00
|
|
|
endchoice
|
2017-05-05 10:24:56 -04:00
|
|
|
|
|
|
|
endmenu
|