2015-02-03 14:24:15 +02:00
|
|
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
|
|
|
|
# See LICENSE for details.
|
|
|
|
|
|
|
|
|
|
from platformio.platforms.base import BasePlatform
|
|
|
|
|
|
|
|
|
|
|
2015-03-09 12:18:46 +02:00
|
|
|
class Ststm32Platform(BasePlatform):
|
2015-02-03 14:32:12 +02:00
|
|
|
|
2015-02-03 14:24:15 +02:00
|
|
|
"""
|
2015-03-11 18:12:58 +02:00
|
|
|
The STM32 family of 32-bit Flash MCUs based on the ARM Cortex-M
|
|
|
|
|
processor is designed to offer new degrees of freedom to MCU users.
|
|
|
|
|
It offers a 32-bit product range that combines very high performance,
|
|
|
|
|
real-time capabilities, digital signal processing, and low-power,
|
|
|
|
|
low-voltage operation, while maintaining full integration and ease of
|
|
|
|
|
development.
|
|
|
|
|
|
|
|
|
|
http://www.st.com/web/en/catalog/mmc/FM141/SC1169?sc=stm32
|
2015-02-03 14:24:15 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
PACKAGES = {
|
|
|
|
|
|
|
|
|
|
"toolchain-gccarmnoneeabi": {
|
|
|
|
|
"alias": "toolchain",
|
|
|
|
|
"default": True
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"ldscripts": {
|
|
|
|
|
"default": True
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"tool-stlink": {
|
|
|
|
|
"alias": "uploader",
|
|
|
|
|
"default": True
|
2015-02-03 14:32:12 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"framework-cmsis": {
|
|
|
|
|
"default": True
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"framework-spl": {
|
|
|
|
|
"default": True
|
|
|
|
|
},
|
|
|
|
|
|
2015-03-16 17:34:52 +02:00
|
|
|
"framework-libopencm3": {
|
2015-02-03 14:32:12 +02:00
|
|
|
"default": True
|
2015-03-09 12:18:46 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"framework-mbed": {
|
|
|
|
|
"default": True
|
2015-02-03 14:24:15 +02:00
|
|
|
}
|
|
|
|
|
}
|
2015-03-16 14:15:57 +02:00
|
|
|
|
|
|
|
|
def get_name(self):
|
|
|
|
|
return "ST STM32"
|