Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Astro
rust-card10
Commits
c01d16f9
Commit
c01d16f9
authored
Aug 22, 2019
by
Astro
⚙
Browse files
nix fixes
parent
7ab69f31
Changes
2
Hide whitespace changes
Inline
Side-by-side
default.nix
View file @
c01d16f9
...
...
@@ -27,7 +27,7 @@ let
version
=
"0.0.0"
;
src
=
./.
;
cargoSha256
=
"10qv30p3kr570glnyn37b6r8pgx48zj0mr9qf84m4wk4sjp3wxsd"
;
buildInputs
=
[
pkgsCross
.
armhf-embedded
.
stdenv
.
cc
];
buildInputs
=
[
pkgsCross
.
armhf-embedded
.
stdenv
.
cc
glibc_multi
];
prePatch
=
''
cp
${
epic-stubs
}
/client.c l0dable/src/
''
;
...
...
l0dable/src/lib.rs
View file @
c01d16f9
...
...
@@ -44,6 +44,8 @@ pub unsafe extern "C" fn Reset_Handler() -> ! {
pub
mod
ctypes
{
#![allow(non_camel_case_types)]
pub
type
c_short
=
i16
;
pub
type
c_ushort
=
u16
;
pub
type
c_int
=
i32
;
pub
type
c_uint
=
u32
;
pub
type
c_long
=
i32
;
...
...
@@ -51,6 +53,8 @@ pub mod ctypes {
pub
type
c_longlong
=
i64
;
pub
type
c_ulonglong
=
u64
;
pub
type
c_char
=
u8
;
pub
type
c_schar
=
i8
;
pub
type
c_uchar
=
u8
;
pub
use
core
::
ffi
::
c_void
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment