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:
parent
1b5227ebc9
commit
bf0a4a8cfb
@ -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;
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user