mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-19 01:03:22 +00:00
1bec8dd23a
* Install Rust in docker image * Also install thumbv7em-none-eabi target * Install Rust in docker image * Also install thumbv7em-none-eabi target * Add Rust example * Link to the Rust example * Call function from the Rust lib * Move PROJECT_DIR to the 'paths' section * Fix target_f1 build * Link to the Rust library in target_f1 * Generate cbindgen bindings * Add forgotten dependency line * Use panic=abort instead of eh_personality lang item * Install Rust in docker image * Also install thumbv7em-none-eabi target * Add Rust example * Link to the Rust example * Call function from the Rust lib * Move PROJECT_DIR to the 'paths' section * Link to the Rust library in target_f1 * Generate cbindgen bindings * Add forgotten dependency line * Use panic=abort instead of eh_personality lang item * add rust call test Co-authored-by: aanper <mail@s3f.ru>
15 lines
No EOL
175 B
C
15 lines
No EOL
175 B
C
/*
|
|
Flipper devices inc.
|
|
|
|
Local fw build entry point.
|
|
*/
|
|
|
|
void app();
|
|
unsigned int add(unsigned int a, unsigned int b);
|
|
|
|
int main() {
|
|
add(2, 2);
|
|
app();
|
|
|
|
return 0;
|
|
} |