-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
49 lines (46 loc) · 1.67 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env]
platform = ststm32
framework = mbed
upload_protocol = jlink
debug_tool = jlink
extra_scripts = pre:mbedignore.py
lib_deps =
https://github.com/rhoban/mbed-shell.git
https://github.com/NAELIC/serial-debug.git
[env:master]
board = zest_core_stm32l4a6rg
src_filter =
+<common/*>
+<master/*>
+<../lib_nRF24L01/*>
+<../TARGET_STM/TARGET_STM32L4/TARGET_STM32L4A6xG/*>
board_build.mbed.ldscript = $PROJECT_DIR/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4A6xG/TOOLCHAIN_GCC_ARM/stm32l4a6xg.ld
build_flags =
-I$PROJECT_DIR/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4A6xG/TARGET_ZEST_CORE_STM32L4A6RG
-I$PROJECT_DIR/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4A6xG
-Ilib_nRF24L01/
-D CARD="Master"
!echo "-DCOMMIT="$(echo `git rev-parse HEAD`_`whoami`)
[env:robot]
board = zest_core_stm32l4a6rg
src_filter =
+<robot/*>
+<common/*>
+<../lib_nRF24L01/*>
+<../TARGET_STM/TARGET_STM32L4/TARGET_STM32L4A6xG/*>
board_build.mbed.ldscript = $PROJECT_DIR/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4A6xG/TOOLCHAIN_GCC_ARM/stm32l4a6xg.ld
build_flags =
-I$PROJECT_DIR/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4A6xG/TARGET_ZEST_CORE_STM32L4A6RG
-I$PROJECT_DIR/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4A6xG
-Ilib_nRF24L01/
-D CARD="Robot"
!echo "-DCOMMIT="$(echo `git rev-parse HEAD`_`whoami`)