Per-family constants, copied from esptool's target definitions.
Summary
Functions
Image header nibble for a flash frequency such as "40m".
Image header byte for a flash size such as "4MB".
Byte size of a flash size label the chip accepts, such as "4MB" or "512KB".
Chip family for a security-info chip id.
Chip family for the value of the ROM magic register 0x40001000.
Whether the ROM loader's FLASH_BEGIN takes the fifth (encrypted) word.
Base name of the flasher stub in priv/stubs, or nil when none is shipped.
Register and value that indicate the ROM console is on USB-OTG, if detectable.
Types
Functions
@spec bootloader_offset(name()) :: non_neg_integer()
@spec flash_freq(name(), String.t()) :: {:ok, non_neg_integer()} | :error
Image header nibble for a flash frequency such as "40m".
@spec flash_size(name(), String.t()) :: {:ok, non_neg_integer()} | :error
Image header byte for a flash size such as "4MB".
@spec flash_size_bytes(name(), String.t()) :: {:ok, pos_integer()} | :error
Byte size of a flash size label the chip accepts, such as "4MB" or "512KB".
Chip family for a security-info chip id.
Chip family for the value of the ROM magic register 0x40001000.
@spec names() :: [name()]
Whether the ROM loader's FLASH_BEGIN takes the fifth (encrypted) word.
Base name of the flasher stub in priv/stubs, or nil when none is shipped.
@spec usb_otg_check(name()) :: {non_neg_integer(), non_neg_integer()} | nil
Register and value that indicate the ROM console is on USB-OTG, if detectable.