forked from M-Labs/artiq
libc: add minimal C types
This commit is contained in:
parent
daaf6c3401
commit
ad3037d0f6
5
artiq/firmware/libc/Cargo.toml
Normal file
5
artiq/firmware/libc/Cargo.toml
Normal file
@ -0,0 +1,5 @@
|
||||
[package]
|
||||
name = "libc"
|
||||
version = "0.1.0"
|
||||
authors = ["M-Labs"]
|
||||
edition = "2018"
|
8
artiq/firmware/libc/src/lib.rs
Normal file
8
artiq/firmware/libc/src/lib.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// Helper crate for dealing with c ffi
|
||||
#![allow(non_camel_case_types)]
|
||||
#![no_std]
|
||||
pub type c_char = i8;
|
||||
pub type c_int = i32;
|
||||
pub type size_t = usize;
|
||||
pub type uintptr_t = usize;
|
||||
pub type c_void = core::ffi::c_void;
|
Loading…
Reference in New Issue
Block a user