Basic proof of concept - has light indexed by rust code
parent
2a6e36bf62
commit
8268e7a8c7
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd /qmk_firmware/
|
||||||
|
rustc --emit=obj --target=thumbv7em-none-eabihf --codegen panic=abort -o test.o ./keyboards/massdrop/alt/keymaps/ashe/test.rs
|
||||||
|
|
||||||
|
cd /qmk_firmware
|
||||||
|
qmk compile -kb massdrop/alt -km ashe
|
||||||
|
cp massdrop_alt_ashe.bin /out
|
@ -0,0 +1,14 @@
|
|||||||
|
#![no_std]
|
||||||
|
#![no_builtins]
|
||||||
|
#![crate_type = "staticlib"]
|
||||||
|
#![allow(dead_code)]
|
||||||
|
|
||||||
|
#[panic_handler]
|
||||||
|
fn my_panic(_info: &core::panic::PanicInfo) -> ! {
|
||||||
|
loop {}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub extern "C" fn test_function() -> u8 {
|
||||||
|
2
|
||||||
|
}
|
Loading…
Reference in New Issue