protocan-boot: support single-slot targets

This commit is contained in:
2026-08-31 01:06:16 +03:00
parent 5f3a9879d5
commit 648457e587
4 changed files with 67 additions and 6 deletions

View File

@@ -79,6 +79,10 @@ typedef struct {
uint8_t hardware_revision;
uint32_t firmware_version;
uint8_t active_slot;
/** 1 for an in-place/single-slot target, 2 for A/B. Zero keeps legacy A/B. */
uint8_t slot_count;
/** Writable image capacity. Zero uses PCAN_BOOT_SLOT_SIZE. */
uint32_t max_image_size;
uint8_t ack_window; /**< 1 — ACK каждого блока, 16 — ACK каждых 16 блоков. */
} pcan_boot_config_t;