1 | /** |
---|
2 | * @file rtems/cbs.h |
---|
3 | * |
---|
4 | * This include file contains all the constants and structures associated |
---|
5 | * with the CBS library in RTEMS. |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * Copyright (C) 2011 Petr Benes. |
---|
10 | * Copyright (C) 2011 On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.com/license/LICENSE. |
---|
15 | * |
---|
16 | * $Id$ |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef CONFIGURE_SCHEDULER_CBS |
---|
20 | #error "cbs.h available only with CONFIGURE_SCHEDULER_CBS" |
---|
21 | #endif |
---|
22 | |
---|
23 | #ifndef _RTEMS_CBS_H |
---|
24 | #define _RTEMS_CBS_H |
---|
25 | |
---|
26 | #ifdef __cplusplus |
---|
27 | extern "C" { |
---|
28 | #endif |
---|
29 | |
---|
30 | #include <stdint.h> |
---|
31 | #include <rtems/score/schedulercbs.h> |
---|
32 | |
---|
33 | /* Return codes. */ |
---|
34 | #define RTEMS_CBS_OK SCHEDULER_CBS_OK |
---|
35 | #define RTEMS_CBS_ERROR_GENERIC SCHEDULER_CBS_ERROR_GENERIC |
---|
36 | #define RTEMS_CBS_ERROR_NO_MEMORY SCHEDULER_CBS_ERROR_NO_MEMORY |
---|
37 | #define RTEMS_CBS_ERROR_INVALID_PARAMETER SCHEDULER_CBS_ERROR_INVALID_PARAM |
---|
38 | #define RTEMS_CBS_ERROR_UNAUTHORIZED SCHEDULER_CBS_ERROR_UNAUTHORIZED |
---|
39 | #define RTEMS_CBS_ERROR_UNIMPLEMENTED SCHEDULER_CBS_ERROR_UNIMPLEMENTED |
---|
40 | #define RTEMS_CBS_ERROR_MISSING_COMPONENT SCHEDULER_CBS_ERROR_MISSING_COMPONENT |
---|
41 | #define RTEMS_CBS_ERROR_INCONSISTENT_STATE SCHEDULER_CBS_ERROR_INCONSISTENT_STATE |
---|
42 | #define RTEMS_CBS_ERROR_SYSTEM_OVERLOAD SCHEDULER_CBS_ERROR_SYSTEM_OVERLOAD |
---|
43 | #define RTEMS_CBS_ERROR_INTERNAL_ERROR SCHEDULER_CBS_ERROR_INTERNAL_ERROR |
---|
44 | #define RTEMS_CBS_ERROR_NOT_FOUND SCHEDULER_CBS_ERROR_NOT_FOUND |
---|
45 | #define RTEMS_CBS_ERROR_FULL SCHEDULER_CBS_ERROR_FULL |
---|
46 | #define RTEMS_CBS_ERROR_EMPTY SCHEDULER_CBS_ERROR_EMPTY |
---|
47 | #define RTEMS_CBS_ERROR_NOSERVER SCHEDULER_CBS_ERROR_NOSERVER |
---|
48 | |
---|
49 | /** Callback function invoked when a budget overrun of a task occurs. */ |
---|
50 | typedef Scheduler_CBS_Budget_overrun rtems_cbs_budget_overrun; |
---|
51 | |
---|
52 | /** Server id. */ |
---|
53 | typedef Scheduler_CBS_Server_id rtems_cbs_server_id; |
---|
54 | |
---|
55 | /** Server parameters. */ |
---|
56 | typedef Scheduler_CBS_Parameters rtems_cbs_parameters; |
---|
57 | |
---|
58 | #include <rtems/cbs.inl> |
---|
59 | |
---|
60 | #ifdef __cplusplus |
---|
61 | } |
---|
62 | #endif |
---|
63 | |
---|
64 | #endif |
---|
65 | /* end of include file */ |
---|