mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
boards: gd323103_eval: add dac support.
add dac support. Signed-off-by: YuLong Yao <feilongphone@gmail.com>
This commit is contained in:
@@ -18,6 +18,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
dac_default: dac_default {
|
||||
group1 {
|
||||
pinmux = <DAC_OUT0_PA4>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c0_default: i2c0_default {
|
||||
group1 {
|
||||
pinmux = <I2C0_SCL_PB6_NORMP>, <I2C0_SDA_PB7_NORMP>;
|
||||
|
||||
@@ -126,3 +126,9 @@
|
||||
timeout = <5>;
|
||||
};
|
||||
};
|
||||
|
||||
&dac {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&dac_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
13
samples/drivers/dac/boards/gd32e103v_eval.overlay
Normal file
13
samples/drivers/dac/boards/gd32e103v_eval.overlay
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright 2021 BrainCo Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
zephyr,user {
|
||||
dac = <&dac>;
|
||||
dac-channel-id = <0>;
|
||||
dac-resolution = <12>;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user