Skip to content

Commit

Permalink
Added MSP430 architecture support.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Wygle <awygle@gmail.com>
  • Loading branch information
awygle committed Jun 2, 2017
1 parent 259173b commit 68d0cfd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/arch/msp430.in
@@ -0,0 +1,8 @@
# MSP430 specific config options

## select ARCH_SUPPORTS_16
## select ARCH_DEFAULT_16
## select ARCH_REQUIRES_MULTILIB
##
## help The 16-bit MSP430 architecture, as defined by:
## help http://www.ti.com/lsds/ti/microcontrollers-16-bit-32-bit/msp/overview.page?HQS=msp430
8 changes: 8 additions & 0 deletions config/target.in
Expand Up @@ -132,6 +132,9 @@ config ARCH_ENDIAN
config ARCH_SUPPORTS_8
bool

config ARCH_SUPPORTS_16
bool

config ARCH_SUPPORTS_32
bool

Expand Down Expand Up @@ -165,6 +168,11 @@ config ARCH_8
prompt "8-bit"
depends on ARCH_SUPPORTS_8

config ARCH_16
bool
prompt "16-bit"
depends on ARCH_SUPPORTS_16

config ARCH_32
bool
prompt "32-bit"
Expand Down
6 changes: 6 additions & 0 deletions scripts/build/arch/msp430.sh
@@ -0,0 +1,6 @@
# Compute MSP430-specific values

CT_DoArchTupleValues() {
CT_TARGET_ARCH="${CT_ARCH}"
CT_TARGET_SKIP_CONFIG_SUB="y"
}

0 comments on commit 68d0cfd

Please sign in to comment.