boards: twr_ke18f: enable DAC
Enable the DAC on the NXP TWR-KE18F development board. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
parent
27f982f1a3
commit
1a73e603b4
4 changed files with 11 additions and 0 deletions
|
@ -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``.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -195,6 +195,10 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&dac0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
sample-time = <12>;
|
||||
|
|
|
@ -12,6 +12,7 @@ supported:
|
|||
- adc
|
||||
- can
|
||||
- counter
|
||||
- dac
|
||||
- i2c
|
||||
- pwm
|
||||
- spi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue