-
Notifications
You must be signed in to change notification settings - Fork 2k
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
WIP: Native GPIO #1737
Closed
Closed
WIP: Native GPIO #1737
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9f61195
native: implement dummy GPIO interface
LudwigKnuepfer 063dc21
tests: driver_pir: fix unused argument warning
LudwigKnuepfer 582a7c2
tests: driver_pir: configure for native
LudwigKnuepfer 8d3fd00
native: add rudimentary sysfs gpio driver
LudwigKnuepfer 55af0d3
FIXUP: allow external definition of sysfs GPIOs
LudwigKnuepfer b4f6dee
FIXUP: guard native system calls
LudwigKnuepfer 7b4aa38
tests: enable native in periph_gpio
LudwigKnuepfer 7cb7592
FIXUP: remove silly modes
LudwigKnuepfer ea1867d
FIXUP: test/periph_gpio: sysfs example in Makefile
LudwigKnuepfer 5023128
FIXUP: add sysfs writing, style & fixes
LudwigKnuepfer d89ff29
SQUASHME: rename dummy -> virtual
LudwigKnuepfer a388a9d
SQUASHME: fix conf return val, INT conf invocation
LudwigKnuepfer c009e1f
FIXUP: raise the number of GPIOs
LudwigKnuepfer 5468ba0
FIXUP: remove trailing whitespaces
LudwigKnuepfer 1102b85
FIXUP: declare periph_gpio feature
LudwigKnuepfer 891187c
SQUASHME: relocate periph/gpio implementation
LudwigKnuepfer 7ae59ee
FIXUP: header guards + extern C
LudwigKnuepfer 63229dc
SQUASHME: fix GPIO_16+_EN
LudwigKnuepfer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
FEATURES_PROVIDED += transceiver periph_cpuid config cpp | ||
FEATURES_PROVIDED += periph_random | ||
FEATURES_PROVIDED += periph_rtc | ||
FEATURES_PROVIDED += periph_gpio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
ifneq (,$(filter native_gpio_virtual,$(USEMODULE))) | ||
DIRS += gpio/virtual | ||
endif | ||
ifneq (,$(filter native_gpio_sysfs,$(USEMODULE))) | ||
DIRS += gpio/sysfs | ||
endif | ||
include $(RIOTBASE)/Makefile.base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MODULE = native_gpio_sysfs | ||
|
||
include $(RIOTBASE)/Makefile.base | ||
|
||
INCLUDES = $(NATIVEINCLUDES) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, above you define, that there can be up to 32 GPIOs, but here you stop at 15...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hoppla.