
Add support for running RadioLib on Tock. Tock is an embedded operating system designed for running multiple concurrent, mutually distrustful applications on Cortex-M and RISC-V based embedded platforms (https://github.com/tock/tock). This PR uses libtock-c (https://github.com/tock/libtock-c) to add support to running RadioLib as a Tock userspace application. This has been tested on the SparkFun LoRa Thing Plus - expLoRaBLE board (https://github.com/tock/tock/tree/master/boards/apollo3/lora_things_plus) but will work on any LoRa compatible Tock board (currently only the expLoRaBLE board). Signed-off-by: Alistair Francis <alistair@alistair23.me>
16 lines
252 B
Bash
Executable file
16 lines
252 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
rm -rf ./build
|
|
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake -G "CodeBlocks - Unix Makefiles" ..
|
|
make -j4
|
|
|
|
cd ..
|
|
|
|
elf2tab -n radio-lib --stack 4096 --app-heap 2048 --kernel-heap 2048 \
|
|
--kernel-major 2 --kernel-minor 1 \
|
|
-v ./build/tock-sx1261
|