2014-06-07 13:34:31 +03:00
|
|
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
|
|
|
|
# See LICENSE for details.
|
|
|
|
|
|
|
|
|
|
from os.path import join
|
|
|
|
|
|
2014-07-30 22:40:11 +03:00
|
|
|
from platformio.platforms.base import BasePlatform
|
2014-06-07 13:34:31 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class Timsp430Platform(BasePlatform):
|
2014-06-12 23:29:47 +03:00
|
|
|
"""
|
|
|
|
|
An embedded platform for TI MSP430 microcontrollers
|
|
|
|
|
(with Energia Framework)
|
|
|
|
|
"""
|
2014-06-07 13:34:31 +03:00
|
|
|
|
|
|
|
|
PACKAGES = {
|
|
|
|
|
|
|
|
|
|
"toolchain-timsp430": {
|
|
|
|
|
"path": join("tools", "toolchain"),
|
|
|
|
|
"default": True
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"tool-mspdebug": {
|
|
|
|
|
"path": join("tools", "mspdebug"),
|
|
|
|
|
"default": True,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"framework-energiamsp430": {
|
|
|
|
|
"path": join("frameworks", "energia"),
|
2014-06-14 12:35:37 +03:00
|
|
|
"default": True
|
2014-06-07 13:34:31 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def get_name(self):
|
|
|
|
|
return "timsp430"
|