Comments (3)
Hi @LysandrosAn,
the defines DAC_NODE
, DAC_CHANNEL_ID
and DAC_RESOLUTION
are just used in the sample to make the code more easy to read. As said by @kartben, the defines are used to get data from devicetree to assign the device pointer and populate the struct dac_channel_cfg
. They are not strictly needed, you can also set the values directly in your application.
@aescolar I'm going to remove the bug label, as this is more a question than a bug.
from zephyr.
Hi @LysandrosAn! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
from zephyr.
Hi @LysandrosAn
Can you elaborate on what you mean? The sample suggests to pass the DAC configuration via the zephyr,user
node and then shows how properties of said node can be accessed via code and then passed to the dac_channel_setup()
API. The API is documented in https://docs.zephyrproject.org/latest/hardware/peripherals/dac.html#api-reference
from zephyr.
Related Issues (20)
- Any app setting CONFIG_PM or CONFIG_POWER_OFF will fail to build during cmake step on esp32c6_devkitc HOT 2
- DAC shell doesn't configure "buffered" option. HOT 1
- ARC: nsim/nsim_vpx5: build broken
- Rust on Zephyr: cmake and code organization
- Adding I2S to the STM32WL series
- RFC: platform hooks to replace SYS_INIT in soc/board code
- CONFIG_NET_NATIVE_OFFLOADED_SOCKETS fails after DTLS handshake HOT 4
- RAM retention not working on NXP S32K3
- BLE MESH:compile error in proxy_cli.c
- BLE MESH: mesh proxy server fails due to failed ext adv param update for mesh gatt advs
- BLE MESH: dfum and mbtm fails on PTS tests
- DHCP client supposed to add iface during the "rebinding and renewing" state HOT 1
- 3.7 Release notes - pending areas HOT 5
- Allow adding source code to shield
- doc: Documentation issue in 'kernel/data_structures/spsc_lockfree' HOT 1
- riscv: fault handler violates PMP when RISCV_ALWAYS_SWITCH_THROUGH_ECALL is enable
- Zephyr PM APIs confusion HOT 11
- WS2812 SPI first LED misbehaving HOT 4
- bl5340_dvk LCD does not work
- posix: kconfig.deprecated: avoid deprecation process for options that have not been part of a release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zephyr.