diff options
author | Aaron Lindsay <aerialx@users.noreply.github.com> | 2019-03-25 19:17:37 -0700 |
---|---|---|
committer | Aaron Lindsay <aerialx@users.noreply.github.com> | 2019-03-25 20:33:58 -0700 |
commit | 1eca945e948f89cf8baf0bfc6f91c303985fefbf (patch) | |
tree | 9d47953d942fc4ede9a6585a08f6e392d2f79dd2 /lib | |
parent | a62033452796e7e0565450cf7733b748b008c8d7 (diff) |
systems: support TI MSP430 microcontrollers
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/examples.nix | 5 | ||||
-rw-r--r-- | lib/systems/inspect.nix | 1 | ||||
-rw-r--r-- | lib/systems/parse.nix | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index ac1633a1a15f6..27a32181df889 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -102,6 +102,11 @@ rec { riscv64 = riscv "64"; riscv32 = riscv "32"; + msp430 = { + config = "msp430-elf"; + libc = "newlib"; + }; + avr = { config = "avr"; }; diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix index 932f8fd1e536c..f8d5ca84d7aae 100644 --- a/lib/systems/inspect.nix +++ b/lib/systems/inspect.nix @@ -20,6 +20,7 @@ rec { isRiscV = { cpu = { family = "riscv"; }; }; isSparc = { cpu = { family = "sparc"; }; }; isWasm = { cpu = { family = "wasm"; }; }; + isMsp430 = { cpu = { family = "msp430"; }; }; isAvr = { cpu = { family = "avr"; }; }; isAlpha = { cpu = { family = "alpha"; }; }; diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index fab50bc0ebd71..8cc7d3ae271f2 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -109,6 +109,7 @@ rec { alpha = { bits = 64; significantByte = littleEndian; family = "alpha"; }; + msp430 = { bits = 16; significantByte = littleEndian; family = "msp430"; }; avr = { bits = 8; family = "avr"; }; }; |