Move tmk_core/common/<plat> (#13918)
This commit is contained in:
parent
43b9e23bae
commit
2728603fe6
107 changed files with 54 additions and 54 deletions
21
platforms/eeprom.h
Normal file
21
platforms/eeprom.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#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
|
Loading…
Add table
Add a link
Reference in a new issue