Table of Contents
This code depends only on:
-
msp430-elf-
GCC 9.x toolchain, found at www.ti.com -
mspdebug
programmer, found at github.com/dlbeer/mspdebug -
cmake
, found in your distribution’s repository.
All device drivers are data-less template classes with inline methods, so they take no memory and usually compile to a single assembly instruction:
#include "lib/msp430fr5994.h"
int main()
{
using namespace MSP430::FR5994;
wdt_a.stop();
}
is compiled into
mov #0x5a80, &0x015c