SPRESENSE commented on a change in pull request #5256:
URL: https://github.com/apache/incubator-nuttx/pull/5256#discussion_r787266566
##########
File path: include/nuttx/board.h
##########
@@ -429,6 +429,23 @@ int board_composite_initialize(int port);
FAR void *board_composite_connect(int port, int configid);
#endif
+/****************************************************************************
+ * Name: board_usbdev_serialstr
+ *
+ * Description:
+ * Use board unique serial number string to iSerialNumber field in the
+ * device descriptor. This is for determining the board when multiple
+ * boards on the same host.
+ *
+ * Returned Value:
+ * The board unique serial number string.
+ *
+ ****************************************************************************/
+
+#if defined(CONFIG_BOARD_USBDEV_SERIALSTR)
+FAR const char *board_usbdev_serialstr(void);
Review comment:
Yes, but I don't recommend to use board_uniqueid directly. Because USB
serial number can use any string, `MYDEV112233` for example. This new API is
for possible to do that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]