Commit 65e12e05 authored by Martin Jäger's avatar Martin Jäger Committed by Carles Cufi
Browse files

boards: nucleo_l073rz: Add DAC peripheral driver



Adds support for the new DAC driver to ST Nucleo board with
STM32L073RZ MCU.

Signed-off-by: default avatarMartin Jäger <martin@libre.solar>
parent 41452792
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -96,6 +96,8 @@ The Zephyr nucleo_l073rz board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| ADC       | on-chip    | ADC Controller                      |
+-----------+------------+-------------------------------------+
| DAC       | on-chip    | DAC Controller                      |
+-----------+------------+-------------------------------------+

Other hardware features are not yet supported in this Zephyr port.

@@ -127,6 +129,7 @@ Default Zephyr Peripheral Mapping:
- SPI1 SCK/MISO/MOSI : PA5/PA6/PA7 (Arduino SPI)
- USER_PB   : PC13
- LD2       : PA5
- DAC       : PA4

For mode details please refer to `STM32 Nucleo-64 board User Manual`_.

+6 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@
	aliases {
		led0 = &green_led_2;
		sw0 = &user_button;
		adc1 = &adc1;
		dac1 = &dac1;
	};
};

@@ -66,3 +68,7 @@
&adc1 {
	status = "okay";
};

&dac1 {
	status = "okay";
};
+1 −0
Original line number Diff line number Diff line
@@ -17,3 +17,4 @@ supported:
  - spi
  - watchdog
  - adc
  - dac
+3 −0
Original line number Diff line number Diff line
@@ -34,6 +34,9 @@ static const struct pin_config pinconf[] = {
#ifdef CONFIG_ADC_1
	{STM32_PIN_PA0, STM32L0_PINMUX_FUNC_PA0_ADC_IN0},
#endif /* CONFIG_ADC_1 */
#if DT_HAS_NODE(DT_NODELABEL(dac1))
	{STM32_PIN_PA4, STM32L0_PINMUX_FUNC_PA4_DAC_OUT1},
#endif /* dac1 */
};

static int pinmux_stm32_init(struct device *port)