-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.rs
More file actions
14 lines (11 loc) · 729 Bytes
/
build.rs
File metadata and controls
14 lines (11 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
let mut b = freertos_cargo_build::Builder::new();
// Path to FreeRTOS kernel or set ENV "FREERTOS_SRC" instead
b.freertos("FreeRTOS-Kernel");
b.freertos_config("include"); // Location of `FreeRTOSConfig.h`
b.freertos_port("GCC/ARM_CM4F".to_string()); // Port dir relativ to 'FreeRTOS-Kernel/portable'
// b.heap("heap4.c".to_string()); // Set the heap_?.c allocator to use from
// 'FreeRTOS-Kernel/portable/MemMang' (Default: heap_4.c)
// b.get_cc().file("More.c"); // Optional additional C-Code to be compiled
b.compile().unwrap_or_else(|e| panic!("{}", e.to_string()));
}