Добавить идентификацию прошивки и чтение EEPROM Бальзам-167

This commit is contained in:
2026-10-05 17:48:23 +03:00
parent 0e3d89e1ee
commit 90046de7fd
28 changed files with 924 additions and 22 deletions
@@ -0,0 +1,17 @@
/* Board-specific layout shared by firmware, linker and host tools.
* Fitted part: AT25256B, top marking 5EBL = 256 Kbit = 32768 OCTETS.
* ATMLH516 is a manufacturer/date code, not a 512-Kbit density code.
* Numeric defines intentionally have no C suffix: TI linker also includes this.
*/
#ifndef BALSAM167_EEPROM_LAYOUT_H
#define BALSAM167_EEPROM_LAYOUT_H
#define BALSAM167_EEPROM_BYTES 0x8000
#define BALSAM167_EEPROM_PAGE_BYTES 64
#define BALSAM167_EEPROM_PARAM_WORDS 129
#define BALSAM167_EEPROM_WORDS (BALSAM167_EEPROM_BYTES / 2)
/* Preserve the historical end-exclusive parameter boundary. The final word
* remains unused; moving it would break existing saved configurations. */
#define BALSAM167_EEPROM_PARAMS_END_WORD (BALSAM167_EEPROM_WORDS - 1)
#define BALSAM167_EEPROM_PARAMS_START_WORD (BALSAM167_EEPROM_PARAMS_END_WORD - BALSAM167_EEPROM_PARAM_WORDS)
#define BALSAM167_EEPROM_FIRMWARE_BYTES (BALSAM167_EEPROM_PARAMS_START_WORD * 2)
#endif