zephyr/include/nanokernel.h
Anas Nashif 5a281dff55 kernel: error on inclusion of nanokernel.h and microkernel.h
Change-Id: I24dc00bc97479545baa1f5548c6d5b7a96ed7467
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-10 20:21:14 +00:00

41 lines
741 B
C

/*
* Copyright (c) 1997-2015, Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
*
* @brief Public APIs for the nanokernel.
*/
#ifndef __NANOKERNEL_H__
#define __NANOKERNEL_H__
#if !defined(CONFIG_LEGACY_KERNEL)
#error "You should include kernel.h and not nanokernel.h or microkernel.h"
#endif
/* fundamental include files */
#include <stddef.h>
#include <stdint.h>
#include <toolchain.h>
#include <sections.h>
/* generic kernel public APIs */
#include <kernel_version.h>
#include <sys_clock.h>
#include <drivers/rand32.h>
#include <misc/slist.h>
#include <misc/dlist.h>
#include <kernel.h>
/* architecture-specific nanokernel public APIs */
#include <arch/cpu.h>
#endif /* __NANOKERNEL_H__ */