Skip to content

boards/avr-rss2: properly enable atmega_pcint0#16916

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
leandrolanzieri:pr/boards/avr-rss2/remove_module_macro
Sep 30, 2021
Merged

boards/avr-rss2: properly enable atmega_pcint0#16916
benpicco merged 1 commit intoRIOT-OS:masterfrom
leandrolanzieri:pr/boards/avr-rss2/remove_module_macro

Conversation

@leandrolanzieri
Copy link
Contributor

@leandrolanzieri leandrolanzieri commented Sep 29, 2021

Contribution description

For some reason the avr-rss2 defines a pseudomodule macro in board.h. This removes it.
EDIT: Now the module is enabled in Makefile.dep.

Testing procedure

  • Green CI

Issues/PRs references

Introduced since the board port in #12668

@leandrolanzieri leandrolanzieri added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer labels Sep 29, 2021
@github-actions github-actions bot added the Area: boards Area: Board ports label Sep 29, 2021
@benpicco
Copy link
Contributor

benpicco commented Sep 29, 2021

@herjulf what was the reason to add this?
Should it be

USEMODULE += atmega_pcint0

instead? (Or rather FEATURES_REQUIRED += atmega_pcint?)

@herjulf
Copy link
Contributor

herjulf commented Sep 29, 2021

@herjulf what was the reason to add this? Should it be

USEMODULE += atmega_pcint0

instead? (Or rather FEATURES_REQUIRED += atmega_pcint?)

Yes you can remove from board.h. FEATURES_REQUIRED seems to be the best option.

@leandrolanzieri
Copy link
Contributor Author

@herjulf what was the reason to add this? Should it be

USEMODULE += atmega_pcint0

instead? (Or rather FEATURES_REQUIRED += atmega_pcint?)

I went with the USEMODULE option, as it is the documented way:

To enable only a specific bank, simply add `USEMODULE += atmega_pcintN` to your
Makefile. To enable all interrupts you can use `USEMODULE += atmega_pcint`.

@leandrolanzieri leandrolanzieri force-pushed the pr/boards/avr-rss2/remove_module_macro branch from 9734647 to 6999931 Compare September 30, 2021 07:28
@leandrolanzieri leandrolanzieri changed the title boards/avr-rss2: remove module macro boards/avr-rss2: properly enable atmega_pcint0 Sep 30, 2021
@leandrolanzieri leandrolanzieri added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Sep 30, 2021
@herjulf
Copy link
Contributor

herjulf commented Sep 30, 2021

@herjulf what was the reason to add this? Should it be

USEMODULE += atmega_pcint0

instead? (Or rather FEATURES_REQUIRED += atmega_pcint?)

I went with the USEMODULE option, as it is the documented way:

To enable only a specific bank, simply add `USEMODULE += atmega_pcintN` to your
Makefile. To enable all interrupts you can use `USEMODULE += atmega_pcint`.

OK. Noted. Thanks.

@benpicco benpicco merged commit 5a9c659 into RIOT-OS:master Sep 30, 2021
@fjmolinas fjmolinas added this to the Release 2022.01 milestone Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants