Add pico_get_unique_board_id_string API (#281)

* Add pico_get_unique_board_id_string API

Add a new API to pico_unique which will turn the unique ID into a
canonical text string.

Use this API to update the USB device serial number in stdio_usb.

Supercedes #280

* Clean up -Wconversion=error issues

* Address review comments, fix api typing

Use cleaner binary-to-hex conversion.  Update the length parameter to
use uint per the SDK standard .
This commit is contained in:
Earle F. Philhower, III
2021-03-30 07:04:58 -07:00
committed by GitHub
parent 98574564b8
commit 3c0309c10e
4 changed files with 38 additions and 3 deletions

View File

@ -13,9 +13,10 @@ if (TARGET tinyusb_device_unmarked)
tinyusb_device_unmarked
pico_stdio
pico_time
pico_unique_id
)
target_compile_definitions(pico_stdio_usb INTERFACE
PICO_STDIO_USB=1
)
endif()
endif()