-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAO improvements #157
SAO improvements #157
Conversation
uint8_t magic[4]; | ||
uint8_t name_length; | ||
uint8_t driver_name_length; | ||
uint8_t driver_data_length; | ||
uint8_t number_of_extra_drivers; | ||
} sao_binary_header_t; | ||
|
||
typedef struct __attribute__((__packed__)) _sao_binary_extra_driver { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave these _name markers on the typedefs, this is the name of the struct and helps with warnings and debugging.
// Basic IO driver | ||
|
||
|
||
/* ==== Basic IO driver ==== */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not use /* */ for single line comments, revert this back to "// comment" styling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should really enforce this using a formatter tool, I will add that to my to-do list.
void dump_eeprom_contents(); | ||
|
||
esp_err_t sao_identify(SAO* sao); | ||
esp_err_t sao_write_raw(size_t offset, uint8_t* buffer, size_t buffer_length); | ||
esp_err_t sao_format(const char* name, const char* driver, const uint8_t* driver_data, uint8_t driver_data_length, const char* driver2, | ||
esp_err_t sao_format_old(const char* name, const char* driver, const uint8_t* driver_data, uint8_t driver_data_length, const char* driver2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to keep old functions, either your new function covers all usecases or this function is not old.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the sdk config need to be changed?
No description provided.