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

sys/auto_init: add auto_init_leds, drop LED init code from boards #17584

Merged
merged 7 commits into from
Feb 18, 2022

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Jan 28, 2022

Contribution description

Testing procedure

Issues/PRs references

split off #17008 (comment)

@github-actions github-actions bot added Area: boards Area: Board ports Area: build system Area: Build system Area: sys Area: System Platform: native Platform: This PR/issue effects the native platform labels Jan 28, 2022
@fjmolinas
Copy link
Contributor

@benpicco why is this a draft?

@benpicco
Copy link
Contributor Author

I think this depends on #17632 😉
AFAIR the problem was with the 'disable LED0 init on nucleo boards if SPI is used'

@fjmolinas
Copy link
Contributor

This one needs a rebase!

@fjmolinas fjmolinas added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 15, 2022
@fjmolinas
Copy link
Contributor

@benpicco I forced push to your branch rebasing, I'll split 6fd4785 later. It's still missing Kconfig though.

@github-actions github-actions bot added the Area: Kconfig Area: Kconfig integration label Feb 15, 2022
@fjmolinas fjmolinas added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed Area: Kconfig Area: Kconfig integration labels Feb 15, 2022
@github-actions github-actions bot added the Area: Kconfig Area: Kconfig integration label Feb 15, 2022
@benpicco benpicco marked this pull request as ready for review February 15, 2022 14:17
@github-actions github-actions bot added Area: drivers Area: Device drivers Area: tests Area: tests and testing framework Area: tools Area: Supplementary tools labels Feb 17, 2022
@fjmolinas
Copy link
Contributor

I doped the dependency to #17632 as its not moving as fast as I thought it would.

@benpicco
Copy link
Contributor Author

@fjmolinas thank you for pushing this forward - if this were your PR I'd give it an ACK 😉

Copy link
Member

@dylad dylad left a comment

Choose a reason for hiding this comment

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

Why limit the number of LEDs to 8 ?
That's a "good enough" number but I do have some custom boards with more. Shouldn't we let this number configurable at least ?

@benpicco
Copy link
Contributor Author

Let's make leds_int() a weak function then - this allows to overwrite it with custom / cheaper implementations.

e.g. on mcb2388 the custom leds_init() saves 284 bytes compared to the generic function.

@fjmolinas
Copy link
Contributor

@benpicco I think we can consider that we are both ACK'ing each other changes no?

Copy link
Contributor

@fjmolinas fjmolinas left a comment

Choose a reason for hiding this comment

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

ACK please squash!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: boards Area: Board ports Area: build system Area: Build system Area: drivers Area: Device drivers Area: Kconfig Area: Kconfig integration Area: sys Area: System Area: tests Area: tests and testing framework Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: native Platform: This PR/issue effects the native platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants