Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpu/atmega_common/periph/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define ENABLE_DEBUG (0)
#include "debug.h"

size_t eeprom_read(uint32_t pos, uint8_t *data, size_t len)
size_t eeprom_read(uint32_t pos, void *data, size_t len)
{
assert(pos + len <= EEPROM_SIZE);

Expand All @@ -50,7 +50,7 @@ size_t eeprom_read(uint32_t pos, uint8_t *data, size_t len)
return len;
}

size_t eeprom_write(uint32_t pos, const uint8_t *data, size_t len)
size_t eeprom_write(uint32_t pos, const void *data, size_t len)
{
assert(pos + len <= EEPROM_SIZE);

Expand Down
4 changes: 2 additions & 2 deletions cpu/stm32_common/periph/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static void _write_byte(uint32_t addr, uint8_t data)
#endif
}

size_t eeprom_read(uint32_t pos, uint8_t *data, size_t len)
size_t eeprom_read(uint32_t pos, void *data, size_t len)
{
assert(pos + len <= EEPROM_SIZE);

Expand All @@ -102,7 +102,7 @@ size_t eeprom_read(uint32_t pos, uint8_t *data, size_t len)
return len;
}

size_t eeprom_write(uint32_t pos, const uint8_t *data, size_t len)
size_t eeprom_write(uint32_t pos, const void *data, size_t len)
{
assert(pos + len <= EEPROM_SIZE);

Expand Down
8 changes: 4 additions & 4 deletions drivers/include/periph/eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ uint8_t eeprom_read_byte(uint32_t pos);
* EEPROM.
*
* @param[in] pos start position in eeprom
* @param[out] data output byte array to write to
* @param[out] data output memory location to write to
* @param[in] len the number of bytes to read
*
* @return the number of bytes read
*/
size_t eeprom_read(uint32_t pos, uint8_t *data, size_t len);
size_t eeprom_read(uint32_t pos, void *data, size_t len);

/**
* @brief Write a byte at the given position
Expand All @@ -79,12 +79,12 @@ void eeprom_write_byte(uint32_t pos, uint8_t data);
* EEPROM.
*
* @param[in] pos start position in eeprom
* @param[in] data input byte array to read into
* @param[in] data input memory location to read into
* @param[in] len the number of bytes to read
*
* @return the number of bytes written
*/
size_t eeprom_write(uint32_t pos, const uint8_t *data, size_t len);
size_t eeprom_write(uint32_t pos, const void *data, size_t len);

/**
* @brief Set @p len bytes from the given position @p pos with value @p val
Expand Down