-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
75 lines (70 loc) · 2.21 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/en/stable/projectconf.html
[common]
lib_deps_common =
https://github.com/frankleonrose/Respire
https://github.com/frankleonrose/Arduino-logging-library
lib_deps_test =
https://github.com/frankleonrose/Arduino-Stub
lib_deps_builtin =
Wire
SPI
lib_deps_external =
https://github.com/greiman/SdFat
https://github.com/adafruit/RTClib
https://github.com/JChristensen/Timer
https://github.com/PaulStoffregen/Time
https://github.com/frankleonrose/LoraStack
https://github.com/adafruit/Adafruit_GPS
https://github.com/adafruit/Adafruit-GFX-Library
https://github.com/adafruit/Adafruit_SSD1306
https://github.com/adafruit/Adafruit_FeatherOLED
https://github.com/adafruit/Adafruit_ZeroTimer#1.0.1
build_flags_common =
-DCFG_us915
-std=gnu++11
[platformio]
; src_dir = ManhattanMapper
; src_filter = +<*>
; lib_dir=
env_default = adafruit_feather_m0
[env:adafruit_feather_m0]
platform = atmelsam
board = adafruit_feather_m0
framework = arduino
; src_filter = +<src/*.ino> +<src/*.cpp> -<../src_native/> -<.git/> -<example/> -<examples/> -<test/> -<tests/>
build_flags =
${common.build_flags_common}
-DLOGLEVEL=LOG_LEVEL_DEBUG
-DLOGGING_ARDUINO
-DLMIC_DEBUG_LEVEL=3
-DLMIC_DEBUG_PRINTF_FN=LmicDebug
-DSPI_FREQ=1000000
-DUSE_SPI_LIB
-Os
-DSDCARD_SPI=SPI
; -DMM_DEBUG_SERIAL
lib_deps = ${common.lib_deps_builtin} ${common.lib_deps_common} ${common.lib_deps_external}
extra_scripts = post:/Users/frank/bin/platformio_upload_wait.py
[env:native_test]
; Used for unit testing
platform = native
; Recommended alternative to `test_build_project_src=true` is to put common code in ./lib/common/src
test_build_project_src = true
lib_deps = ${common.lib_deps_common} ${common.lib_deps_test}
build_flags =
${common.build_flags_common}
-DUNIT_TEST
-DPLATFORM_NATIVE
-DLOGGING_PRINTF
-DLOGLEVEL=LOG_LEVEL_WARNINGS
-DARDUINO=100
-Wno-format-extra-args
-DLMIC_DEBUG_PRINTF_FN=LmicDebug
-DMOCK_ACTIONS