File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
include/zephyr/drivers/serial Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -384,6 +384,13 @@ struct uart_ns16550_dev_data {
384
384
#endif
385
385
};
386
386
387
+ uint32_t uart_ns16550_get_port (const struct device * dev )
388
+ {
389
+ const struct uart_ns16550_dev_config * config = dev -> config ;
390
+
391
+ return config -> port ;
392
+ }
393
+
387
394
static void ns16550_outbyte (const struct uart_ns16550_dev_config * cfg ,
388
395
uintptr_t port , uint8_t val )
389
396
{
Original file line number Diff line number Diff line change 20
20
*/
21
21
#define CMD_SET_DLF 0x01
22
22
23
+ /**
24
+ * @brief Get the device address from uart_ns16550.
25
+ *
26
+ * @param dev UART device instance
27
+ */
28
+ uint32_t uart_ns16550_get_port (const struct device * dev );
29
+
23
30
#endif /* ZEPHYR_INCLUDE_DRIVERS_SERIAL_UART_NS16550_H_ */
You can’t perform that action at this time.
0 commit comments