<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>uart_console error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101811/uart_console-error</link><description>Hello, 
 
 I&amp;#39;m develop my project based on Hello-World on NRF9160. 
 With all the default configuration from the hello_world template, my project biuld great. 
 But when i implement my part of code, i have this error : 
 
 I have check this different</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jul 2023 17:15:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101811/uart_console-error" /><item><title>RE: uart_console error</title><link>https://devzone.nordicsemi.com/thread/436334?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 17:15:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d519b504-b64f-4a3c-bf6a-b66b42960486</guid><dc:creator>chris_h</dc:creator><description>&lt;p&gt;Hi Lam,&lt;/p&gt;
&lt;p&gt;The purpose of overlays is to override hardware properties, and prj.conf to override software properties through kconfig fragments.&amp;nbsp; This way you don&amp;#39;t have to hack away at the original device tree /&amp;nbsp; config files that would affect other projects too.&lt;/p&gt;
&lt;p&gt;Think of the case where you want to use one of the Nordic / Zephyr examples on your DK - the build configuration will source your modified device tree files from your sdk folder, and potentially cause errors before you&amp;#39;ve even started.&lt;/p&gt;
&lt;p&gt;As for re-purposing uart0, that&amp;#39;s fairly simple.&amp;nbsp; As you noted, uart0 is currently assigned to the console messages in the device tree and this is enabled by default in the nrf9160dk_nrf9160_ns_defconfig file.&amp;nbsp; You can override these default settings by disabling it on the prj.conf file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Add the following lines to prj.conf to disable the console.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# disable console
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As per the example I uploaded: modify the overlay file to uart0 (instead of uart1), and modify the device pointer in main.c to&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;const struct device *uart= DEVICE_DT_GET(DT_NODELABEL(uart0));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;then the uart tx_start_msg should instead print out via uart0 to the same pins 14 and 15, and uart0 will not contain any console messages. &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_console error</title><link>https://devzone.nordicsemi.com/thread/436317?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 15:33:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cee7c7e-e584-4667-b4be-82cff9fd7488</guid><dc:creator>Lamdev</dc:creator><description>&lt;p&gt;Hi chris_h,&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;/p&gt;
&lt;p&gt;i assume that it&amp;#39;s better to let uart0 for uart_console but&amp;nbsp;i need to disable the &amp;quot;chosen&amp;quot; content.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s because i have work in a bigger project where this part is disable but i have problem with MCUBOOT to do FOTA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So to understand step after step, i have recreate a project where i reimplement each part after each part.&lt;/p&gt;
&lt;p&gt;Could you tell me if you can advice me an other way ?&lt;/p&gt;
&lt;p&gt;For information my other topic with MCUBOOT issue for my biggest soft, the main problem is stillthe same:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a title="Link" href="https://devzone.nordicsemi.com/f/nordic-q-a/99692/nrf9160-bootloader-issue" rel="noopener noreferrer" target="_blank"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/99692/nrf9160-bootloader-issue&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_console error</title><link>https://devzone.nordicsemi.com/thread/436314?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 15:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f5aa1a1-9785-43f5-9417-a42aa7b76eda</guid><dc:creator>chris_h</dc:creator><description>&lt;p&gt;Hi Lam, so there&amp;#39;s not a whole lot in that project!&amp;nbsp; If you&amp;#39;re working with the DK, its best to modify overlay files, rather than the actual device tree files in your sdk directory.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve mainly been working with uart1 on the 9160, which seems to work well.&amp;nbsp; It&amp;#39;s good to reserve uart0 for terminal messages.&amp;nbsp; I&amp;#39;ve modified one of my projects (attached) which serves as a basic uart handler with your custom uart pins on the 9160, achieved through the overlay.&amp;nbsp; This should be a good starting point which you can build on - let me know if that helps.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/uart_5F00_basics.zip"&gt;devzone.nordicsemi.com/.../uart_5F00_basics.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_console error</title><link>https://devzone.nordicsemi.com/thread/436292?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 14:28:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36e9a117-8cd8-49df-bd66-18158288636a</guid><dc:creator>Lamdev</dc:creator><description>&lt;p&gt;Hey Kenneth,&lt;/p&gt;
&lt;p&gt;Here an example when i meet the problem,&lt;/p&gt;
&lt;p&gt;For the moment my objectif is to build correctly this example without using uart_console because all my debug go on RTT and uart0 i used for my peripheral.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/antenna_2D00_sensor_2D00_lte_5F00_nrf9160.rar"&gt;devzone.nordicsemi.com/.../antenna_2D00_sensor_2D00_lte_5F00_nrf9160.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_console error</title><link>https://devzone.nordicsemi.com/thread/436287?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 14:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4126126-410d-43c2-8029-1badbd9309a0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think if you want us to look into this please provide an example we can compile to recreate it here.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_console error</title><link>https://devzone.nordicsemi.com/thread/436197?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 09:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c57c198-0553-46b2-9e8b-75acb69e9594</guid><dc:creator>Lamdev</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/chris_5f00_h"&gt;chris_h&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;/p&gt;
&lt;p&gt;Yes i have define my device tree for all the peripheral that i need.&lt;/p&gt;
&lt;p&gt;There my device tree :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//nrf9160dk_nrf9160_ns.dts

/dts-v1/;
#include &amp;lt;nordic/nrf9160ns_sica.dtsi&amp;gt;
#include &amp;quot;nrf9160dk_nrf9160_common.dts&amp;quot;

/ {
	chosen {
		zephyr,flash = &amp;amp;flash0;
		zephyr,sram = &amp;amp;sram0_ns;
		zephyr,code-partition = &amp;amp;slot0_ns_partition;
	};
};

/* Disable UART1, because it is used by default in TF-M */
// &amp;amp;uart1 {
// 	status = &amp;quot;disabled&amp;quot;;
// };
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//nrf9160dk_nrf9160_common.dts

#include &amp;quot;nrf9160dk_nrf9160_common-pinctrl.dtsi&amp;quot;

/ {
	model = &amp;quot;Nordic nRF9160 DK NRF9160&amp;quot;;
	compatible = &amp;quot;nordic,nrf9160-dk-nrf9160&amp;quot;;

	chosen {
		//zephyr,console = &amp;amp;uart0;
		//zephyr,shell-uart = &amp;amp;uart0;
		//zephyr,uart-mcumgr = &amp;amp;uart0;
	};

	aliases{
		swin0 = &amp;amp;button0;
		swin1 = &amp;amp;button1;
		swin2 = &amp;amp;button2;
		swin3 = &amp;amp;button3;
		swin4 = &amp;amp;button4;
		intaccel = &amp;amp;intaccel;
	};

	buttons {
		 
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt;&amp;amp;gpio0 3 (GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;SWIN0&amp;quot;;
		};
		button1: button_1 {
			gpios = &amp;lt;&amp;amp;gpio0 4 (GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;SWIN1&amp;quot;;
		};
		button2: button_2 {
			gpios = &amp;lt;&amp;amp;gpio0 5 (GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;SWIN2&amp;quot;;
		};
		button3: button_3 {
			gpios = &amp;lt;&amp;amp;gpio0 6 (GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;SWIN3&amp;quot;;
		};
		button4: button_4 {
			gpios = &amp;lt;&amp;amp;gpio0 7 (GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;SWIN4&amp;quot;;
		};
		intaccel: intaccel {
			gpios = &amp;lt;&amp;amp;gpio0 10 (GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;INTACCEL&amp;quot;;
		};

	};

};

/{
	zephyr,user{
		io-channels = &amp;lt;&amp;amp;adc 0&amp;gt;;
	};
};

&amp;amp;adc {
	status = &amp;quot;okay&amp;quot;;
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;
	channel@0 {
		reg = &amp;lt;0&amp;gt;;
		zephyr,gain = &amp;quot;ADC_GAIN_1_6&amp;quot;;
		zephyr,reference = &amp;quot;ADC_REF_INTERNAL&amp;quot;;
		zephyr,acquisition-time = &amp;lt;ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 20)&amp;gt;;
		zephyr,input-positive = &amp;lt;NRF_SAADC_AIN0&amp;gt;;
	};
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;9600&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;i2c1 {
	status = &amp;quot;okay&amp;quot;;
	clock-frequency = &amp;lt;I2C_BITRATE_FAST&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;timer0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;timer1 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;timer2 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;flash0 {

	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x00000000 0x10000&amp;gt;;
		};
		slot0_partition: partition@10000 {
			label = &amp;quot;image-0&amp;quot;;
		};
		slot0_ns_partition: partition@50000 {
			label = &amp;quot;image-0-nonsecure&amp;quot;;
		};
		slot1_partition: partition@80000 {
			label = &amp;quot;image-1&amp;quot;;
		};
		slot1_ns_partition: partition@c0000 {
			label = &amp;quot;image-1-nonsecure&amp;quot;;
		};
		scratch_partition: partition@f0000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0x000f0000 0xa000&amp;gt;;
		};
		storage_partition: partition@fa000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x000fa000 0x00006000&amp;gt;;
		};
	};
};

/ {

	reserved-memory {
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;
		ranges;

		sram0_s: image_s@20000000 {
			/* Secure image memory */
		};

		sram0_modem: image_modem@20016000 {
			/* Modem (shared) memory */
		};

		sram0_ns: image_ns@20020000 {
			/* Non-Secure image memory */
		};
	};
};

/* Include partition configuration file */
#include &amp;quot;nrf9160dk_nrf9160_partition_conf.dts&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//nrf9160dk_nrf9160_common-pinctrl.dtsi

&amp;amp;pinctrl {

	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 7)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 6)&amp;gt;;
			bias-pull-up;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 7)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 6)&amp;gt;;
			low-power-enable;
		};
	};

	uart2_default: uart2_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 15)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 14)&amp;gt;;
		};
	};

	uart2_sleep: uart2_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 15)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 14)&amp;gt;;
			low-power-enable;
		};
	};

	i2c1_default: i2c1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 11)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 0, 12)&amp;gt;;
		};
	};

	i2c1_sleep: i2c1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 11)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 0, 12)&amp;gt;;
			low-power-enable;
		};
	};
	
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My prj.conf is the following :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#prj.conf

# nothing here

#MCUBOOTLOADER
CONFIG_BOOTLOADER_MCUBOOT=y

#LOG
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_LOG_PRINTK=y
CONFIG_STDOUT_CONSOLE=y

#Segger RTT
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_LOG_BUFFER_SIZE=4096&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Maybe i missing someting, i have try to define an uart for the console but i still have the same problem but with an other reference of the device tree.&lt;/p&gt;
&lt;p&gt;I add this into my nrf9160dk_nrf9160_common.dts :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;chosen {
		zephyr,console = &amp;amp;uart2;
		zephyr,shell-uart = &amp;amp;uart2;
		zephyr,uart-mcumgr = &amp;amp;uart2;
	};
	
	
&amp;amp;uart2 {
	 	pinctrl-0 = &amp;lt;&amp;amp;uart2_default&amp;gt;;
	 	pinctrl-1 = &amp;lt;&amp;amp;uart2_sleep&amp;gt;;
	 	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	 };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The error :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;In file included from C:\ncs2\v2.2.0\zephyr\include\zephyr\toolchain\gcc.h:88,
                 from C:\ncs2\v2.2.0\zephyr\include\zephyr\toolchain.h:50,
                 from C:\ncs2\v2.2.0\zephyr\include\zephyr\kernel_includes.h:19,
                 from C:\ncs2\v2.2.0\zephyr\include\zephyr\kernel.h:17,
                 from C:\ncs2\v2.2.0\zephyr\drivers\console\uart_console.c:16:
C:\ncs2\v2.2.0\zephyr\include\zephyr\device.h:83:41: error: &amp;#39;__device_dts_ord_80&amp;#39; undeclared here (not in a function); did you mean &amp;#39;__device_dts_ord_8&amp;#39;?
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have made a very basic hello_world project and delete and reupload SDK2.2.0, to reproduce my issue:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When i put in comment this line in nrf9160dk_nrf9160_common.dts, i can reproduce my issue.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	chosen {
		//zephyr,console = &amp;amp;uart0;
		//zephyr,shell-uart = &amp;amp;uart0;
		//zephyr,uart-mcumgr = &amp;amp;uart0;
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could it be possible to just disable uart_console, because i only use RTT for debugging and uart0 for one of my peripheral ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_console error</title><link>https://devzone.nordicsemi.com/thread/436050?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 15:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c67b2b8-a0a9-4789-95bb-5d449d76d850</guid><dc:creator>chris_h</dc:creator><description>&lt;p&gt;Hi Lam, I am by no means a Nordic expert, but I did encounter and resolve a very similar problem in my own project recently. This looks to be a device tree / overlay error. You didn&amp;#39;t specify which UART you are using, but you&amp;#39;ll need to enable it in the device overlay.&amp;nbsp; If its uart1, this is done as follows:&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;uart1&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;status&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;To use uart in your application, you&amp;#39;ll need to get the device pointer which can be done in a number of ways, with the &amp;quot;uart1&amp;quot; example below&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;zephyr/device.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;const&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;struct&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; device &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;uart&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;DEVICE_DT_GET&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;DT_NODELABEL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(uart1));&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Hope that helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>