-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvcos.lua
65 lines (52 loc) · 1.49 KB
/
vcos.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--[[
=============================================================================
VideoCore OS Abstraction Layer - public header file
=============================================================================*/
--]]
local ffi = require "ffi"
--[[
\file vcos.h
This is the top level header file. Clients include this. It pulls in the platform-specific
header file (vcos_platform.h) together with header files defining the expected APIs, such
as vcos_mutex.h, vcos_semaphore.h, etc. It is also possible to include these header files
directly.
--]]
require "vcos_assert"
require "vcos_types"
require "vcos_platform"
require "vcos_init"
--require "vcos_semaphore"
--[[
require "vcos_thread"
require "vcos_mutex"
require "vcos_mem"
require "vcos_logging"
require "vcos_string"
require "vcos_event"
require "vcos_thread_attr"
require "vcos_tls"
require "vcos_reentrant_mutex"
require "vcos_named_semaphore"
require "vcos_quickslow_mutex"
--]]
--[[
-- Headers with predicates
require "../vcos/vcos_event_flags.h"
require "../vcos/vcos_queue.h"
require "../vcos/vcos_legacy_isr.h"
require "../vcos/vcos_timer.h"
require "../vcos/vcos_mempool.h"
require "../vcos/vcos_isr.h"
require "../vcos/vcos_atomic_flags.h"
require "../vcos/vcos_once.h"
require "../vcos/vcos_blockpool.h"
require "../vcos/vcos_file.h"
require "../vcos/vcos_cfg.h"
require "../vcos/vcos_cmd.h"
--]]
local vcos_Lib = ffi.load("vcos");
local result = vcos_Lib.vcos_init();
print("VCOS INIT: ", result);
return {
Lib = vcos_Lib;
}