cleanup: include/: move rtc.h to drivers/rtc.h

move rtc.h to drivers/rtc.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>
This commit is contained in:
Anas Nashif 2019-06-25 15:53:59 -04:00
commit fd359c21e9
7 changed files with 157 additions and 142 deletions

View file

@ -5,7 +5,7 @@
*/
#include <syscall_handler.h>
#include <rtc.h>
#include <drivers/rtc.h>
Z_SYSCALL_HANDLER(rtc_read, dev)
{

View file

@ -15,7 +15,7 @@
#include <misc/util.h>
#include <kernel.h>
#include <soc.h>
#include <rtc.h>
#include <drivers/rtc.h>
#if defined(CONFIG_SOC_SERIES_STM32L4X)
#define EXTI_LINE LL_EXTI_LINE_18

View file

@ -12,7 +12,7 @@ LOG_MODULE_REGISTER(rtc_mcux);
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <rtc.h>
#include <drivers/rtc.h>
#include <power/power.h>
#include <soc.h>
#include <misc/util.h>