-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge in related repos, and no more building the compiler
- Loading branch information
1 parent
a0e9ab8
commit f6001b4
Showing
25 changed files
with
743 additions
and
701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[build] | ||
target = "arduboy.json" | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
lto = "fat" | ||
opt-level = "z" | ||
panic = "abort" | ||
|
||
[unstable] | ||
build-std = ["core", "compiler_builtins"] | ||
build-std-features = ["compiler-builtins-mem"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
ArduboyRustHost/lib/*.a | ||
/target | ||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.pio | ||
.vscode/.browse.c_cpp.db* | ||
.vscode/c_cpp_properties.json | ||
.vscode/launch.json | ||
.vscode/ipch | ||
lib/*.a |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"platformio.platformio-ide" | ||
] | ||
} | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"platformio.platformio-ide" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[workspace] | ||
members = ["arduboy-rs", "examples/pong"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "arduboy" | ||
version = "0.1.0" | ||
authors = ["Brian Bowman <[email protected]>"] | ||
license = "MIT OR Apache-2.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
panic-halt = "0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# arduboy-rs | ||
|
||
A Rust library that exposes Arduboy functionality. | ||
|
||
Crates that use this library must compile to a static library which is then linked into the PlatformIO project provided in the `ArduboyRust` directory of this repo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
use self::types::*; | ||
|
||
pub mod types; | ||
|
||
extern "C" { | ||
pub fn strlen(cstr: *const c_char) -> c_size_t; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// https://gcc.gnu.org/wiki/avr-gcc#Type_Layout | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_char = i8; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_uchar = u8; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_size_t = u16; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_int = i16; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_uint = u16; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_long = i32; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_ulong = u32; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_longlong = i64; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_ulonglong = u64; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_float = f32; | ||
|
||
#[allow(non_camel_case_types)] | ||
pub type c_double = f32; |
Oops, something went wrong.