drivers/at : Expose Configurations to Kconfig #14019
Merged
leandrolanzieri merged 3 commits intoRIOT-OS:masterfrom Jun 17, 2020
Merged
drivers/at : Expose Configurations to Kconfig #14019leandrolanzieri merged 3 commits intoRIOT-OS:masterfrom
leandrolanzieri merged 3 commits intoRIOT-OS:masterfrom
Conversation
leandrolanzieri
requested changes
May 14, 2020
71 tasks
Member
Author
|
@leandrolanzieri Ping. |
Contributor
|
Please squash |
2759b82 to
5286cc2
Compare
Member
Author
Done. Retained the |
Inverse logic for AT_SEND_ECHO
Add CONFIG_ prefix to AT_SEND_EOL, AT_SEND_SKIP_ECHO, CONFIG_AT_RECV_OK, CONFIG_AT_RECV_ERROR
Expose configurations to Kconfig: Model choice for CONFIG_AT_SEND_EOL Allow value to be configured as exponent for AT_BUF_SIZE
Member
Author
Thanks for the review. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Contribution description
This PR exposes compile configurations in AT Device driver to Kconfig.
Attention : AT_SEND_ECHO is expected to be deprecated and CONFIG_AT_SEND_SKIP_ECHO
introduced. Macro to be removed after 2021.01 release.
Testing procedure
The build worked fine.
Firmware was uploaded to FIT IoT Lab test bed.
Default State:
Firmware Output
main(): This is RIOT! (Version: 2020.07-devel-386-ge9126a-Kconfig_at_tests)
CONFIG_AT_SEND_EOL="\r"
CONFIG_AT_SEND_SKIP_ECHO=
AT_SEND_ECHO=1
CONFIG_AT_RECV_OK="OK"
CONFIG_AT_RECV_ERROR="ERROR"
AT_BUF_SIZE=(1<<(7))
AT command test app
Usage with CFLAGS
/tests/driver_at/Makefile
Firmware Output
main(): This is RIOT! (Version: 2020.07-devel-386-ge9126a-Kconfig_at_tests)
CONFIG_AT_SEND_EOL="\r"
CONFIG_AT_SEND_SKIP_ECHO=
AT_SEND_ECHO=1
CONFIG_AT_RECV_OK="OK"
CONFIG_AT_RECV_ERROR="ERROR"
AT command test app
Usage with Kconfig
/tests/driver_at/
Firmware Output
main(): This is RIOT! (Version: 2020.07-devel-557-g871cb-Kconfig_at_tests)
CONFIG_AT_SEND_EOL="\r"
CONFIG_AT_SEND_SKIP_ECHO=
AT_SEND_ECHO=1
CONFIG_AT_RECV_OK="OK"
CONFIG_AT_RECV_ERROR="ERROR"
AT_BUF_SIZE=(1<<5)
AT command test app
Issues/PRs references
#12888
@leandrolanzieri