Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ev11l78a: configure DAC peripheral #62478

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions boards/arm/ev11l78a/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ features:
* - ADC
- on-chip
- Analog to Digital Converter
* - DAC
- on-chip
- Digital to Analog Converter
* - GPIO
- on-chip
- I/O ports
Expand Down
6 changes: 6 additions & 0 deletions boards/arm/ev11l78a/ev11l78a-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@
<PA5B_ADC_AIN5>;
};
};

dac_default: dac_default {
group1 {
pinmux = <PA2B_DAC_VOUT>;
};
};
};
7 changes: 7 additions & 0 deletions boards/arm/ev11l78a/ev11l78a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,10 @@
pinctrl-0 = <&adc_default>;
pinctrl-names = "default";
};

&dac0 {
status = "okay";

pinctrl-0 = <&dac_default>;
pinctrl-names = "default";
};
1 change: 1 addition & 0 deletions boards/arm/ev11l78a/ev11l78a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ toolchain:
- xtools
supported:
- adc
- dac
- gpio
- i2c
- spi
Expand Down
13 changes: 13 additions & 0 deletions boards/arm/ev11l78a/ev11l78a_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y

# Kernel Options due to Low Memory (4k)
CONFIG_LOG_BUFFER_SIZE=256
CONFIG_MAIN_STACK_SIZE=640
CONFIG_IDLE_STACK_SIZE=200
CONFIG_ISR_STACK_SIZE=512
CONFIG_USBC_STACK_SIZE=512
# Prevent Interrupt Vector Table in RAM
CONFIG_SRAM_VECTOR_TABLE=n

# This board only supports the sink role, so
# no need to ever implement source for it.
CONFIG_USBC_CSM_SINK_ONLY=y
3 changes: 2 additions & 1 deletion tests/drivers/dac/dac_api/src/test_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
defined(CONFIG_BOARD_SEEEDUINO_XIAO) || \
defined(CONFIG_BOARD_ARDUINO_MKRZERO) || \
defined(CONFIG_BOARD_ARDUINO_ZERO) || \
defined(CONFIG_BOARD_LPCXPRESSO55S36)
defined(CONFIG_BOARD_LPCXPRESSO55S36) || \
defined(CONFIG_BOARD_EV11L78A)

#define DAC_DEVICE_NODE DT_NODELABEL(dac0)
#define DAC_RESOLUTION 12
Expand Down
Loading