Skip to content

Commit 568606f

Browse files
michal-smolahenrikbrixandersen
authored andcommitted
boards: frdm_mcxc242: Add adc support
frdm_mcxc242 board does not have adc configured and enabled. Configure and enable it. Update documentation. Signed-off-by: Michal Smola <[email protected]>
1 parent 88231b5 commit 568606f

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

boards/nxp/frdm_mcxc242/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ The ``frdm_mcxc242`` board target supports the following hardware features:
6868
+-----------+------------+-------------------------------------+
6969
| PWM | on-chip | pwm |
7070
+-----------+------------+-------------------------------------+
71+
| ADC | on-chip | adc |
72+
+-----------+------------+-------------------------------------+
7173

7274

7375
Targets available

boards/nxp/frdm_mcxc242/frdm_mcxc242-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,12 @@
4141
slew-rate = "slow";
4242
};
4343
};
44+
pinmux_adc0: pinmux_adc0 {
45+
group0 {
46+
pinmux = <ADC0_SE0_PTE20>,
47+
<ADC0_SE1_PTE16>;
48+
drive-strength = "low";
49+
slew-rate = "slow";
50+
};
51+
};
4452
};

boards/nxp/frdm_mcxc242/frdm_mcxc242.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,9 @@ i2c1: &i2c1 {
147147
pinctrl-0 = <&pinmux_tpm2>;
148148
pinctrl-names = "default";
149149
};
150+
151+
&adc0 {
152+
status = "okay";
153+
pinctrl-0 = <&pinmux_adc0>;
154+
pinctrl-names = "default";
155+
};

boards/nxp/frdm_mcxc242/frdm_mcxc242.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ supported:
1818
- gpio
1919
- i2c
2020
- pwm
21+
- adc
2122
testing:
2223
ignore_tags:
2324
- net

0 commit comments

Comments
 (0)