#arinc #avionics #aerospace #no-std #xng

no-std a653rs-xng

针对xng虚拟机的a653rs分区库

1个不稳定版本

0.1.0 2024年6月19日

#336嵌入式开发

MIT/Apache

74KB
2K SLoC

生成ABI绑定

要生成它们,我们使用了以下命令

bindgen --use-core \
        --allowlist-function '[A-Z][A-Z_]+' \
        --allowlist-type '[A-Z][A-Z_]+' \
        --allowlist-var '[A-Z][A-Z_]+' \
        --blocklist-type '_.*' \
        --ctypes-prefix cty wrapper.h

以下 wrapper.h

#include <apex_blackboard.h>
#include <apex_buffer.h>
#include <apex_error.h>
#include <apex_event.h>
#include <apex_irq_event_np.h>
#include <apex_multiple_schedules.h>
#include <apex_partition.h>
#include <apex_partition_np.h>
#include <apex_process.h>
#include <apex_queuing.h>
#include <apex_sampling.h>
#include <apex_semaphore.h>
#include <apex_system_np.h>
#include <apex_time.h>
#include <apex_types.h>

lib.rs:

将ARINC653 P1/P2/P4 API绑定到XNG MonoCore实现

依赖关系

~0.6–1.2MB
~27K SLoC