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

Tidy HAL_GPIO_LED_ON and _OFF #26642

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

peterbarker
Copy link
Contributor

  • moved the defaulting of these values
  • remove redundant defines from hwdef files

I have run this through size_compare_branches.py and there are no compiler output changes.

Copy link
Member

@IamPete1 IamPete1 left a comment

Choose a reason for hiding this comment

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

This looks correct to me.

this same defaulting is being done in AP_HAL_ChibiOS/GPIO.h
the current "flexibility" allows for ON/OFF to be the same value.

Many hwdef files where only setting one of these, leaving the other at teh default, too....
... or the _OFF entry, which is simply !HAL_GPIO_MED_ON
this value is the default value anyway, so don't make many copies..
these can be reused across different vehicles
@peterbarker peterbarker merged commit b7fe779 into ArduPilot:master Apr 3, 2024
91 checks passed
@peterbarker peterbarker deleted the pr/HAL_GPIOS_LED_-tidy branch April 3, 2024 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants