Skip to content

Commit cb0ea95

Browse files
committed
dt-bindings: adc: nrf-saadc: Remove platform dependencies
Remove platform dependencies to make dt-bindings more generic. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent 28e489a commit cb0ea95

File tree

5 files changed

+20
-70
lines changed

5 files changed

+20
-70
lines changed

include/zephyr/dt-bindings/adc/nrf-saadc-haltium.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

include/zephyr/dt-bindings/adc/nrf-saadc-nrf54l.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

include/zephyr/dt-bindings/adc/nrf-saadc-v2.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

include/zephyr/dt-bindings/adc/nrf-saadc-v3.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

include/zephyr/dt-bindings/adc/nrf-saadc.h

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,25 @@
77
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_NRF_SAADC_H_
88
#define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_NRF_SAADC_H_
99

10-
#define NRF_SAADC_AIN0 1
11-
#define NRF_SAADC_AIN1 2
12-
#define NRF_SAADC_AIN2 3
13-
#define NRF_SAADC_AIN3 4
14-
#define NRF_SAADC_AIN4 5
15-
#define NRF_SAADC_AIN5 6
16-
#define NRF_SAADC_AIN6 7
17-
#define NRF_SAADC_AIN7 8
10+
#define NRF_SAADC_AIN0 0
11+
#define NRF_SAADC_AIN1 1
12+
#define NRF_SAADC_AIN2 2
13+
#define NRF_SAADC_AIN3 3
14+
#define NRF_SAADC_AIN4 4
15+
#define NRF_SAADC_AIN5 5
16+
#define NRF_SAADC_AIN6 6
17+
#define NRF_SAADC_AIN7 7
18+
#define NRF_SAADC_AIN8 8
19+
#define NRF_SAADC_AIN9 9
20+
#define NRF_SAADC_AIN10 10
21+
#define NRF_SAADC_AIN11 11
22+
#define NRF_SAADC_AIN12 12
23+
#define NRF_SAADC_AIN13 13
24+
25+
#define NRF_SAADC_AIN_VDD_SHIM_OFFSET 128
26+
#define NRF_SAADC_VDD NRF_SAADC_AIN_VDD_SHIM_OFFSET + 0
27+
#define NRF_SAADC_AVDD NRF_SAADC_AIN_VDD_SHIM_OFFSET + 1
28+
#define NRF_SAADC_DVDD NRF_SAADC_AIN_VDD_SHIM_OFFSET + 2
29+
#define NRF_SAADC_VDDHDIV5 NRF_SAADC_AIN_VDD_SHIM_OFFSET + 3
1830

1931
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ADC_NRF_SAADC_H_ */

0 commit comments

Comments
 (0)