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

Delete unnecessary driver #includes continued... #12437

Merged
merged 8 commits into from
Jul 9, 2019

Conversation

mcsauder
Copy link
Contributor

@mcsauder mcsauder commented Jul 9, 2019

Describe problem solved by the proposed pull request
There are a lot of unnecessary #includes in the drivers in general. This is a second pass at the driver directory. I have organized most #includes to header files to avoid duplication and make use of the #pragma once preprocessor directive. This is continuation of similar work in PR #12431.

Test data / coverage
No logic was touched in this PR. All builds succeeding in the CI tools is sufficient proof that nothing essential has been deleted.

Additional context
This is mostly janitorial work geared at keeping the code base clean.

Please let me know if you have any questions on this PR. Thanks!

-Mark

@mcsauder mcsauder force-pushed the delete_unnecessary_includes_continued branch from a0e97c9 to b1f4f4b Compare July 9, 2019 02:13
@mcsauder mcsauder force-pushed the delete_unnecessary_includes_continued branch from b1f4f4b to c160eb2 Compare July 9, 2019 02:22
#define BATT_SMBUS_SERIAL_NUMBER 0x1C ///< serial number register
#define BATT_SMBUS_MEASUREMENT_INTERVAL_US 100000 ///< time in microseconds, measure at 10Hz
#define BATT_SMBUS_TIMEOUT_US 1000000 ///< timeout looking for battery 10seconds after startup
#include "board_config.h"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a mix of spaces and tabs... it is uniform now, my apologies for the diff.

@dagar
Copy link
Member

dagar commented Jul 9, 2019

With bloaty on Jenkins we can see there's no change in the fmu-v2 or fmu-v5 binaries.

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.

None yet

2 participants