mirror of
https://github.com/esphome/esphome.git
synced 2025-10-26 20:53:50 +00:00
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Samuel Sieb <samuel-github@sieb.net> Co-authored-by: Tomasz Duda <tomaszduda23@gmai.com> Co-authored-by: J. Nick Koston <nick@koston.org>
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
from esphome.components.zephyr import Section
|
|
from esphome.components.zephyr.const import KEY_BOOTLOADER
|
|
|
|
from .const import (
|
|
BOOTLOADER_ADAFRUIT,
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD132,
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD140_V6,
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD140_V7,
|
|
)
|
|
|
|
BOARDS_ZEPHYR = {
|
|
"adafruit_itsybitsy_nrf52840": {
|
|
KEY_BOOTLOADER: [
|
|
BOOTLOADER_ADAFRUIT,
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD132,
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD140_V6,
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD140_V7,
|
|
]
|
|
},
|
|
}
|
|
|
|
# https://github.com/ffenix113/zigbee_home/blob/17bb7b9e9d375e756da9e38913f53303937fb66a/types/board/known_boards.go
|
|
# https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather?view=all#hathach-memory-map
|
|
BOOTLOADER_CONFIG = {
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD132: [
|
|
Section("empty_app_offset", 0x0, 0x26000, "flash_primary"),
|
|
],
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD140_V6: [
|
|
Section("empty_app_offset", 0x0, 0x26000, "flash_primary"),
|
|
],
|
|
BOOTLOADER_ADAFRUIT_NRF52_SD140_V7: [
|
|
Section("empty_app_offset", 0x0, 0x27000, "flash_primary"),
|
|
],
|
|
}
|