Hi! I get error in visual studio code function:
const struct device * data_uart = DEVICE_DT_GET(DT_NODELABEL(uart0));
I use windows 10 with nrf extensions. Ncs version is 2.6.0. I have libraries:
#include <stdlib.h> #include <stdint.h> #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/audio/dmic.h> #include <dk_buttons_and_leds.h> #include <nrfx_pdm.h> #include <zephyr/drivers/uart.h>.
And in prj.conf have:
CONFIG_LOG=y CONFIG_AUDIO=y CONFIG_AUDIO_DMIC=y CONFIG_NRFX_PDM_LOG=y CONFIG_NRFX_PDM=y CONFIG_DEBUG_OPTIMIZATIONS=y CONFIG_DK_LIBRARY=y CONFIG_SERIAL=y CONFIG_UART_ASYNC_API=y