18 #ifdef POK_NEEDS_ARINC653_BLACKBOARD
20 #include <arinc653/types.h>
21 #include <arinc653/blackboard.h>
22 #include <middleware/blackboard.h>
25 void CREATE_BLACKBOARD (
26 BLACKBOARD_NAME_TYPE BLACKBOARD_NAME,
27 MESSAGE_SIZE_TYPE MAX_MESSAGE_SIZE,
28 BLACKBOARD_ID_TYPE *BLACKBOARD_ID,
29 RETURN_CODE_TYPE *RETURN_CODE )
31 pok_blackboard_id_t core_id;
34 core_ret = pok_blackboard_create (BLACKBOARD_NAME, MAX_MESSAGE_SIZE, &core_id);
35 *RETURN_CODE = core_ret;
38 void DISPLAY_BLACKBOARD (
39 BLACKBOARD_ID_TYPE BLACKBOARD_ID,
40 MESSAGE_ADDR_TYPE MESSAGE_ADDR,
41 MESSAGE_SIZE_TYPE LENGTH,
42 RETURN_CODE_TYPE *RETURN_CODE )
45 core_ret = pok_blackboard_display (BLACKBOARD_ID, MESSAGE_ADDR, LENGTH);
46 *RETURN_CODE = core_ret;
49 void READ_BLACKBOARD (
50 BLACKBOARD_ID_TYPE BLACKBOARD_ID,
51 SYSTEM_TIME_TYPE TIME_OUT,
52 MESSAGE_ADDR_TYPE MESSAGE_ADDR,
53 MESSAGE_SIZE_TYPE *LENGTH,
54 RETURN_CODE_TYPE *RETURN_CODE )
57 core_ret = pok_blackboard_read (BLACKBOARD_ID, TIME_OUT, MESSAGE_ADDR, LENGTH);
58 *RETURN_CODE = core_ret;
61 void CLEAR_BLACKBOARD (
62 BLACKBOARD_ID_TYPE BLACKBOARD_ID,
63 RETURN_CODE_TYPE *RETURN_CODE )
66 *RETURN_CODE = NOT_AVAILABLE;
69 void GET_BLACKBOARD_ID (
70 BLACKBOARD_NAME_TYPE BLACKBOARD_NAME,
71 BLACKBOARD_ID_TYPE *BLACKBOARD_ID,
72 RETURN_CODE_TYPE *RETURN_CODE )
74 (void) BLACKBOARD_NAME;
76 *RETURN_CODE = NOT_AVAILABLE;
79 void GET_BLACKBOARD_STATUS (
80 BLACKBOARD_ID_TYPE BLACKBOARD_ID,
82 RETURN_CODE_TYPE *RETURN_CODE )
85 (void) BLACKBOARD_STATUS;
86 *RETURN_CODE = NOT_AVAILABLE;