d13ada1162
- uprintf -> dprintf - Fix atsam "vendor" eeprom. - Bump Kinetis K20x to 64 bytes, too. - Rollback Kinetis to 32 bytes as partitioning can only be done once. Add warning about changing the value. - Change RAM-backed "fake" EEPROM implementations to match eeconfig's current usage. - Add 24LC128 by request.
24 lines
977 B
C
24 lines
977 B
C
#ifndef TMK_CORE_COMMON_EEPROM_H_
|
|
#define TMK_CORE_COMMON_EEPROM_H_
|
|
|
|
#if defined(__AVR__) && !defined(EEPROM_DRIVER)
|
|
# include <avr/eeprom.h>
|
|
#else
|
|
# include <stdint.h>
|
|
# include <stdlib.h>
|
|
|
|
uint8_t eeprom_read_byte(const uint8_t *__p);
|
|
uint16_t eeprom_read_word(const uint16_t *__p);
|
|
uint32_t eeprom_read_dword(const uint32_t *__p);
|
|
void eeprom_read_block(void *__dst, const void *__src, size_t __n);
|
|
void eeprom_write_byte(uint8_t *__p, uint8_t __value);
|
|
void eeprom_write_word(uint16_t *__p, uint16_t __value);
|
|
void eeprom_write_dword(uint32_t *__p, uint32_t __value);
|
|
void eeprom_write_block(const void *__src, void *__dst, size_t __n);
|
|
void eeprom_update_byte(uint8_t *__p, uint8_t __value);
|
|
void eeprom_update_word(uint16_t *__p, uint16_t __value);
|
|
void eeprom_update_dword(uint32_t *__p, uint32_t __value);
|
|
void eeprom_update_block(const void *__src, void *__dst, size_t __n);
|
|
#endif
|
|
|
|
#endif /* TMK_CORE_COMMON_EEPROM_H_ */
|