POK
time.c
1 /*
2  * POK header
3  *
4  * The following file is a part of the POK project. Any modification should
5  * made according to the POK licence. You CANNOT use this file or a part of
6  * this file is this part of a file for your own project
7  *
8  * For more information on the POK licence, please see our LICENCE FILE
9  *
10  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
11  *
12  * Copyright (c) 2007-2009 POK team
13  *
14  * Created by julien on Thu Jan 15 23:34:13 2009
15  */
16 
17 
18 #ifdef POK_NEEDS_ARINC653_TIME
19 
20 #include <arinc653/types.h>
21 #include <arinc653/time.h>
22 
23 #include <core/thread.h>
24 #include <types.h>
25 
26 
27 #ifndef POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE
28 void TIMED_WAIT (SYSTEM_TIME_TYPE delay_time, RETURN_CODE_TYPE *return_code)
29 {
30  (void) delay_time;
31  *return_code = NOT_AVAILABLE;
32 }
33 #endif
34 
35 void PERIODIC_WAIT (RETURN_CODE_TYPE *return_code)
36 {
37  pok_ret_t core_ret;
38  core_ret = pok_thread_period ();
39  *return_code = core_ret;
40 }
41 
42 #ifndef POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE
43 void GET_TIME (SYSTEM_TIME_TYPE *system_time, RETURN_CODE_TYPE *return_code)
44 {
45  (void) system_time;
46  *return_code = NOT_AVAILABLE;
47 }
48 
49 void REPLENISH (SYSTEM_TIME_TYPE budget_time, RETURN_CODE_TYPE *return_code)
50 {
51  (void) budget_time;
52  *return_code = NOT_AVAILABLE;
53 }
54 #endif
55 
56 #endif
57