move misc/printk.h to sys/printk.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>
27 lines
558 B
C
27 lines
558 B
C
/*
|
|
* Copyright (c) 2018 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <sys/printk.h>
|
|
#include "dummy_driver.h"
|
|
|
|
/* Application main Thread */
|
|
void main(void)
|
|
{
|
|
struct device *dev;
|
|
struct dummy_driver_api *api;
|
|
int ret, val;
|
|
|
|
printk("Device PM sample app start\n");
|
|
dev = device_get_binding(DUMMY_DRIVER_NAME);
|
|
api = (struct dummy_driver_api *)dev->driver_api;
|
|
ret = api->open(dev);
|
|
val = 10;
|
|
ret = api->write(dev, val);
|
|
ret = api->read(dev, &val);
|
|
ret = api->close(dev);
|
|
printk("Device PM sample app complete\n");
|
|
}
|