Skip to content

Commit 73f4dfb

Browse files
FRASTMnashif
authored andcommitted
boards: arm: stm32 disco kit target board has DAC instance
This commit enables the DAC 1 instance on the target board b_u585i_iot02a from STMicroelectronics. DAC1 output 1 is available on PA4. Signed-off-by: Francois Ramu <[email protected]>
1 parent 3cf9aff commit 73f4dfb

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

boards/arm/b_u585i_iot02a/b_u585i_iot02a.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,8 @@
6262
label = "HTS221";
6363
};
6464
};
65+
66+
&dac1 {
67+
pinctrl-0 = <&dac1_out1_pa4>;
68+
status = "okay";
69+
};

boards/arm/b_u585i_iot02a/b_u585i_iot02a.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ supported:
1313
- arduino_spi
1414
- hts221
1515
- spi
16+
- dac

boards/arm/b_u585i_iot02a/doc/index.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ They operate at a frequency of up to 160 MHz.
119119

120120
- 14-bit ADC 2.5-Msps, resolution up to 16 bits with hardware oversampling
121121
- 12-bit ADC 2.5-Msps, with hardware oversampling, autonomous in Stop 2 mode
122-
- 2 12-bit DAC, low-power sample and hold
122+
- 12-bit DAC, low-power sample and hold
123123
- 2 operational amplifiers with built-in PGA
124124
- 2 ultra-low-power comparators
125125

@@ -179,6 +179,8 @@ The Zephyr b_u585i_iot02a board configuration supports the following hardware fe
179179
+-----------+------------+-------------------------------------+
180180
| SPI | on-chip | spi |
181181
+-----------+------------+-------------------------------------+
182+
| DAC | on-chip | dac |
183+
+-----------+------------+-------------------------------------+
182184

183185
The default configuration can be found in the defconfig file:
184186

@@ -203,6 +205,7 @@ Default Zephyr Peripheral Mapping:
203205
- SPI1 NSS/SCK/MISO/MOSI : PE12/P13/P14/P15 (Arduino SPI)
204206
- I2C_1 SDA/SDL : PB9/PB8 (Arduino I2C)
205207
- I2C_2 SDA/SDL : PH5/PH4
208+
- DAC1 CH1 : PA4 (STMOD+1)
206209

207210
System Clock
208211
------------

0 commit comments

Comments
 (0)