Skip to content

Commit

Permalink
format again
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Jan 31, 2025
1 parent 7f85063 commit 676a547
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Core/Inc/eepromsys.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/
struct eeprom {
char* key;
char *key;
uint16_t size;
uint16_t address;
};
Expand Down Expand Up @@ -53,7 +53,7 @@ void eepromInit();
* @param key Name of the eeprom partition
* @return uint16_t The memory address to update and write to next
*/
uint16_t eeprom_get_index(char* key);
uint16_t eeprom_get_index(char *key);

/**
* @brief This function writes the data to the newest memory address of one of the EEPROM partitions
Expand All @@ -64,7 +64,7 @@ uint16_t eeprom_get_index(char* key);
* @return true If HAL writes properly
* @return false If HAL fails to write
*/
bool eeprom_write_key(char* key, void* data, uint16_t size);
bool eeprom_write_key(char *key, void *data, uint16_t size);

/**
* @brief This function reads the data at the most recently used memory address of
Expand All @@ -76,7 +76,7 @@ bool eeprom_write_key(char* key, void* data, uint16_t size);
* @return true If this reads properly using HAL
* @return false If this fails to read with HAL
*/
bool eeprom_read_key(char* key, void* data, uint16_t size);
bool eeprom_read_key(char *key, void *data, uint16_t size);

/**
* @brief Function to read data from EEPROM based on the latest address stored in the partition
Expand All @@ -87,7 +87,7 @@ bool eeprom_read_key(char* key, void* data, uint16_t size);
* @return true Successful
* @return false Unsuccessful
*/
bool eeprom_read_data_address(uint16_t address, void* data, uint16_t size);
bool eeprom_read_data_address(uint16_t address, void *data, uint16_t size);

/**
* @brief Function to write data to EEPROM with updated address
Expand All @@ -98,7 +98,7 @@ bool eeprom_read_data_address(uint16_t address, void* data, uint16_t size);
* @return true Successful
* @return false Unsuccessful
*/
bool eeprom_write_data_address(uint16_t address, void* data, uint16_t size);
bool eeprom_write_data_address(uint16_t address, void *data, uint16_t size);

/**
* @brief Accepts a fault, updates the register saved in the eeprom partition, and
Expand Down

0 comments on commit 676a547

Please sign in to comment.