-
Notifications
You must be signed in to change notification settings - Fork 8.4k
drivers: Add analog pins for nRF54L20 #89609
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
Conversation
5628e65 to
7a0420b
Compare
|
why is nxp platforms added by the bot? |
7a0420b to
984715f
Compare
bjarki-andreasen
left a comment
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.
Looks good :)
1f4364e to
de9284d
Compare
2dad686
de9284d to
2dad686
Compare
|
@bjarki-andreasen I moved the array of analog pins to common file. Since the comparator can be used only as either COMP or LPCOMP at the same time, this should not cause any problems. Please take a look |
2dad686 to
3e221f7
Compare
|
|
||
| #ifndef ZEPHYR_DRIVERS_COMPARATOR_NRF_COMMON_H_ | ||
| #define ZEPHYR_DRIVERS_COMPARATOR_NRF_COMMON_H_ | ||
|
|
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.
please #include <nrfx.h> here, otherwise we need to rely on include order to ensure NRF_PIN_PORT_TO_PIN_NUMBER is defined :)
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.
Done
3e221f7 to
9799ae0
Compare
tests/boards/nrf/comp/Kconfig
Outdated
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config TEST_COMP_SE_PSEL_AIN_INDEX | ||
| int "Index od analog input for SE psel." |
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.
The typos here ("od") could also be corrected.
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.
Done
9799ae0 to
b715006
Compare
bjarki-andreasen
left a comment
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.
Nice!
b715006 to
283a59a
Compare
Added set of analog pins for nRF54L20 SAADC. Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
Added set of analog pins for nRF54L20 COMP and LPCOMP. Moved the array of analong pins for both comparator variants to avoid code duplication. Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
Moved index of analog input used in test from source code to Kconfig option to simplify adding new targets. Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
283a59a to
ca3942b
Compare
|



Added set of analog pins for nRF54L20 SAADC, COMP and LPCOMP.