Skip to content

Commit f17fa5c

Browse files
[nrf fromlist] drivers: adc: adc_nrfx_saadc: add nRF54LS05B analog pins
Added array of analong pins for nRF54LS05B. Upstream PR #: 94861 Signed-off-by: Michał Stasiak <[email protected]>
1 parent 0573ceb commit f17fa5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/adc/adc_nrfx_saadc.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ static const uint32_t saadc_psels[NRF_SAADC_AIN7 + 1] = {
7676
[NRF_SAADC_AIN6] = NRF_PIN_PORT_TO_PIN_NUMBER(11U, 1),
7777
[NRF_SAADC_AIN7] = NRF_PIN_PORT_TO_PIN_NUMBER(12U, 1),
7878
};
79+
#elif defined(NRF54LS05B_ENGA_XXAA)
80+
static const uint32_t saadc_psels[NRF_SAADC_AIN3 + 1] = {
81+
[NRF_SAADC_AIN0] = NRF_PIN_PORT_TO_PIN_NUMBER(4U, 1),
82+
[NRF_SAADC_AIN1] = NRF_PIN_PORT_TO_PIN_NUMBER(5U, 1),
83+
[NRF_SAADC_AIN2] = NRF_PIN_PORT_TO_PIN_NUMBER(6U, 1),
84+
[NRF_SAADC_AIN3] = NRF_PIN_PORT_TO_PIN_NUMBER(7U, 1),
85+
};
7986
#endif
8087

8188
#else

0 commit comments

Comments
 (0)