Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add platformio.ini #1

Merged
merged 1 commit into from
Mar 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions emonTxshield/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[platformio]
src_dir = Src
include_dir = Inc
env_default = stm32f303-dev

[common]
# Specify flags/variables commmon to all enviroments
# PlatfomIO common variables docs: http://docs.platformio.org/en/latest/projectconf/dynamic_variables.html
# PlatfomIO build_flags docs: http://docs.platformio.org/en/latest/projectconf/section_env_build.html
debug_flags = -D DEBUG=1
build_flags = -Wl,-u_printf_float
monitor_baud = 115200

# Dev build enviroment (default)
# $ pio run -t upload
[env:stm32f303-dev]
platform = ststm32
framework = stm32cube
board = nucleo_f303re
monitor_baud = ${common.monitor_baud}
src_build_flags =
${common.build_flags}
${common.debug_flags}

# Non dev build enviroment, specify enviroment using:
# $ pio run -t upload -e stm32f303
[env:stm32f303]
platform = ststm32
framework = stm32cube
board = nucleo_f303re
monitor_baud = ${common.monitor_baud}
src_build_flags = ${common.build_flags}