2015-06-05 22:19:43 +08:00
|
|
|
/* microkernel.h - public API for microkernel */
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1997-2015, Wind River Systems, Inc.
|
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* 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
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* 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.
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MICROKERNEL_H
|
|
|
|
#define _MICROKERNEL_H
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-06-02 00:52:02 +08:00
|
|
|
/* nanokernel and generic kernel public APIs */
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#include <nanokernel.h>
|
|
|
|
|
2016-09-03 04:59:34 +08:00
|
|
|
#if !defined(CONFIG_KERNEL_V2)
|
|
|
|
|
2015-08-13 04:42:37 +08:00
|
|
|
/*
|
|
|
|
* microkernel private APIs that are exposed via the public API
|
|
|
|
*
|
|
|
|
* THESE ITEMS SHOULD NOT BE REFERENCED EXCEPT BY THE KERNEL ITSELF!
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define _USE_CURRENT_SEM (-1)
|
|
|
|
|
|
|
|
/* end of private APIs */
|
|
|
|
|
2015-08-29 21:40:34 +08:00
|
|
|
/**
|
|
|
|
* @brief Microkernel Public APIs
|
|
|
|
* @defgroup microkernel_services Microkernel Services
|
|
|
|
* @{
|
|
|
|
*/
|
2015-06-02 00:52:02 +08:00
|
|
|
|
2015-06-19 21:55:51 +08:00
|
|
|
#include <microkernel/base_api.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
#include <microkernel/task.h>
|
|
|
|
#include <microkernel/ticks.h>
|
2015-06-19 22:03:05 +08:00
|
|
|
#include <microkernel/memory_map.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#include <microkernel/mutex.h>
|
2015-06-19 21:59:15 +08:00
|
|
|
#include <microkernel/mailbox.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#include <microkernel/fifo.h>
|
2015-06-19 22:07:21 +08:00
|
|
|
#include <microkernel/semaphore.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#include <microkernel/event.h>
|
2015-06-19 22:05:18 +08:00
|
|
|
#include <microkernel/memory_pool.h>
|
2015-05-20 22:23:22 +08:00
|
|
|
#include <microkernel/pipe.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2015-08-29 21:40:34 +08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2016-09-03 04:59:34 +08:00
|
|
|
#endif /* !CONFIG_KERNEL_V2 */
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#endif /* _MICROKERNEL_H */
|