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 TitivaPlatform(BasePlatform):
|
2014-06-12 23:29:47 +03:00
|
|
|
"""
|
|
|
|
|
An embedded platform for TI TIVA C ARM microcontrollers
|
|
|
|
|
(with Energia Framework)
|
|
|
|
|
"""
|
2014-06-07 13:34:31 +03:00
|
|
|
|
|
|
|
|
PACKAGES = {
|
|
|
|
|
|
2014-06-11 21:31:36 +03:00
|
|
|
"toolchain-gccarmnoneeabi": {
|
2014-06-07 13:34:31 +03:00
|
|
|
"path": join("tools", "toolchain"),
|
|
|
|
|
"default": True
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"tool-lm4flash": {
|
|
|
|
|
"path": join("tools", "lm4flash"),
|
|
|
|
|
"default": True,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"framework-energiativa": {
|
|
|
|
|
"path": join("frameworks", "energia"),
|
2014-06-11 21:31:36 +03:00
|
|
|
"default": True
|
2014-06-07 13:34:31 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def get_name(self):
|
|
|
|
|
return "titiva"
|