zephyr/drivers/eeprom
Jared Kangas 34e4edc28a drivers: eeprom: emulator: correct improper exponentiation
The top-level driver comment states that a uint16_t is used to store
changes if the EEPROM size is smaller than 64kB, or uint32_t otherwise.
However, the 64kB threshold is represented as 2^16 in the actual code,
which is a bitwise XOR instead of an exponent. This causes a uint16_t
to be used only if the size is less than or equal to 18 bytes. Correct
this by using KB(64) instead of 2^16.

Signed-off-by: Jared Kangas <kangas.jd@gmail.com>
2024-07-05 09:18:31 +02:00
..
CMakeLists.txt
Kconfig
Kconfig.eeprom_emu
Kconfig.lpc11u6x
Kconfig.mb85rcxx
Kconfig.stm32
Kconfig.tmp116
Kconfig.xec
eeprom_at2x.c
eeprom_at2x_emul.c
eeprom_emulator.c drivers: eeprom: emulator: correct improper exponentiation 2024-07-05 09:18:31 +02:00
eeprom_fake.c
eeprom_handlers.c
eeprom_lpc11u6x.c
eeprom_mb85rcxx.c
eeprom_mchp_xec.c
eeprom_shell.c
eeprom_simulator.c
eeprom_stm32.c
eeprom_tmp116.c