sysgen: generate sysgen.h instead of zephyr.h

use zephyr.h as the main include in applications, no need to have nano/micro
includes in applications and samples.
Inclusion of the proper kernel headers is be handled in the zephyr.h based
on the configured and used kernel.

Change-Id: If5275cef5d2ad1f475dfb39102cb71cfe5630f6c
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-10-21 07:24:39 -04:00
commit 8b45f4e50b
3 changed files with 79 additions and 51 deletions

27
include/zephyr.h Normal file
View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2015 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _ZEPHYR__H
#define _ZEPHYR__H
#if CONFIG_MICROKERNEL
#include <microkernel.h>
#include <sysgen.h>
#else
#include <nanokernel.h>
#endif /* CONFIG_MICROKERNEL */
#endif /* _ZEPHYR__H */