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
TARGET_HOST := "pi@rpi-4" | |
TARGET_PATH := "/home/pi/kalibrator/kalibrator-fw" | |
TARGET_ARCH := "thumbv7em-none-eabihf" | |
SOURCE_PATH := "./target/" + TARGET_ARCH + "/release/kalibrator-fw" | |
default: build erase upload run | |
local: build erase-local run-local | |
build: | |
cargo build --release |
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
#![no_std] | |
#![no_main] | |
#![feature(type_alias_impl_trait)] | |
#![feature(alloc_error_handler)] | |
#![allow(incomplete_features)] | |
#![macro_use] | |
use alloc_cortex_m::CortexMHeap; | |
use core::alloc::Layout; | |
use core::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
scp username@b:/path/to/file /path/to/destination |
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
scp /path/to/file username@a:/path/to/destination |