Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (52 sloc) 1.49 KB
--[[
=============================================================================
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;
}
Something went wrong with that request. Please try again.