samples: usb: Update samples for new port name

Use new multi instance interface and new port names.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2019-01-30 11:13:28 +02:00 committed by Anas Nashif
parent 1b5227ebc9
commit bf0a4a8cfb
2 changed files with 3 additions and 3 deletions

View File

@ -579,7 +579,7 @@ void main(void)
u32_t baudrate, dtr = 0U;
int ret;
dev = device_get_binding(CONFIG_CDC_ACM_PORT_NAME);
dev = device_get_binding(CONFIG_CDC_ACM_PORT_NAME_0);
if (!dev) {
LOG_ERR("CDC ACM device not found");
return;

View File

@ -12,8 +12,8 @@
void main(void)
{
if (strlen(CONFIG_UART_CONSOLE_ON_DEV_NAME) !=
strlen(CONFIG_CDC_ACM_PORT_NAME) ||
strncmp(CONFIG_UART_CONSOLE_ON_DEV_NAME, CONFIG_CDC_ACM_PORT_NAME,
strlen(CONFIG_CDC_ACM_PORT_NAME_0) ||
strncmp(CONFIG_UART_CONSOLE_ON_DEV_NAME, CONFIG_CDC_ACM_PORT_NAME_0,
strlen(CONFIG_UART_CONSOLE_ON_DEV_NAME))) {
printk("Error: Console device name is not USB ACM\n");