Platform drivers for Mbed.

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Revision:
15:fd2c3c3038bf
Parent:
9:9e247b9c9abf
--- a/src/uart_extra.h	Fri Oct 16 21:23:58 2020 +0530
+++ b/src/uart_extra.h	Fri Feb 19 15:53:52 2021 +0530
@@ -47,8 +47,13 @@
  * @brief Structure holding the UART init parameters for mbed platform.
  */
 typedef struct {
-	uint8_t uart_tx_pin;		// UART Transmit Pin
-	uint8_t uart_rx_pin;  		// UART Receive Pin
+	bool virtual_com_enable;	/* Flag that enables the selection between
+								 * Virtual COM Port Or standard UART link */
+	uint8_t uart_tx_pin;		/* UART Transmit Pin (only for UART comm) */
+	uint8_t uart_rx_pin;  		/* UART Receive Pin (only for UART comm) */
+	uint16_t vendor_id;			/* USB VCOM Vendor ID (only for USB Virtual comm) */
+	uint16_t product_id;		/* USB VCOM Product ID (only for USB Virtual comm) */
+	uint16_t product_release;	/* USB VCOM product release value (only for USB Virtual comm) */
 } mbed_uart_init_param;
 
 /**
@@ -56,7 +61,9 @@
  * @brief UART specific descriptor for the mbed platform.
  */
 typedef struct {
-	void *uart_port; 			// UART port instance
+	void *uart_port; 			/* UART port instance */
+	bool virtual_com_enable; 	/* Flag that enables the selection between
+								 * Virtual COM Port Or standard UART link */
 } mbed_uart_desc;
 
 /******************************************************************************/