msp430-rt 0.2.2

Minimal runtime / startup for MSP430 microcontrollers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash


set -euxo pipefail


# cflags taken from cc 1.0.22


crate=msp430-rt

# remove existing blobs because otherwise this will append object files to the old blobs

rm -f bin/*.a


msp430-elf-as -mcpu=msp430 asm.s -o bin/$crate.o

ar crs bin/msp430-none-elf.a bin/$crate.o


rm bin/$crate.o