Commit 1a73e603 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Maureen Helm
Browse files

boards: twr_ke18f: enable DAC



Enable the DAC on the NXP TWR-KE18F development board.

Signed-off-by: default avatarHenrik Brix Andersen <henrik@brixandersen.dk>
parent 27f982f1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -84,6 +84,8 @@ features:
+-----------+------------+-------------------------------------+
| PWM       | on-chip    | pwm                                 |
+-----------+------------+-------------------------------------+
| DAC       | on-chip    | dac                                 |
+-----------+------------+-------------------------------------+

The default configuration can be found in the defconfig file:
``boards/arm/twr_ke18f/twr_ke18f_defconfig``.
+4 −0
Original line number Diff line number Diff line
@@ -144,6 +144,10 @@ static int twr_ke18f_pinmux_init(struct device *dev)
	pinmux_pin_set(portc, 14, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
#endif

#if DT_HAS_NODE(DT_NODELABEL(dac0))
	pinmux_pin_set(porte, 9, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
#endif

	return 0;
}

+4 −0
Original line number Diff line number Diff line
@@ -195,6 +195,10 @@
	status = "okay";
};

&dac0 {
	status = "okay";
};

&adc0 {
	status = "okay";
	sample-time = <12>;
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ supported:
  - adc
  - can
  - counter
  - dac
  - i2c
  - pwm
  - spi