move misc/util.h to sys/util.h and create a shim for backward-compatibility. No functional changes to the headers. A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES. Related to #16539 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
28 lines
540 B
C
28 lines
540 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr.h>
|
|
#include <sys/printk.h>
|
|
#include <sys/util.h>
|
|
#include <string.h>
|
|
|
|
void main(void)
|
|
{
|
|
if (strlen(CONFIG_UART_CONSOLE_ON_DEV_NAME) !=
|
|
strlen("CDC_ACM_0") ||
|
|
strncmp(CONFIG_UART_CONSOLE_ON_DEV_NAME, "CDC_ACM_0",
|
|
strlen(CONFIG_UART_CONSOLE_ON_DEV_NAME))) {
|
|
printk("Error: Console device name is not USB ACM\n");
|
|
|
|
return;
|
|
}
|
|
|
|
while (1) {
|
|
printk("Hello World! %s\n", CONFIG_ARCH);
|
|
k_sleep(K_SECONDS(1));
|
|
}
|
|
}
|