Skip to content
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

Closed
wants to merge 2 commits into from
Closed

SAO improvements #157

wants to merge 2 commits into from

Conversation

renzenicolai
Copy link
Member

No description provided.

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 {
Copy link
Member Author

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 ==== */
Copy link
Member Author

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

Copy link
Member Author

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,
Copy link
Member Author

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.

Copy link
Member Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants