forked from cmengler/pidflight-lap-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
45 lines (40 loc) · 1.2 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
[release]
version = 2.6.0
[common]
platform = atmelavr
framework = arduino
board = nanoatmega328
upload_port = /dev/ttyUSB*
extra_scripts = pre:pre_rename_firmware.py
build_flags = -D VERSION=${release.version}
;build_flags = -D VERSION=${release.version} -D SERIAL_RX_BUFFER_SIZE=256 -D SERIAL_TX_BUFFER_SIZE=256 -D SERIAL_BUFFER_SIZE=256
[platformio]
build_dir=build
src_dir=pidflight_lap
# PDFL - PIDflight
[env:pdfl]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
upload_port = ${common.upload_port}
build_flags = ${common.build_flags} -D VARIANT=PDFL
extra_scripts = ${common.extra_scripts}
src_build_flags = -DPDFL
# CHRF - Chorus RF
[env:chrf]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
upload_port = ${common.upload_port}
build_flags = ${common.build_flags} -D VARIANT=CHRF
extra_scripts = ${common.extra_scripts}
src_build_flags = -DCHRF
# ERLT - EasyRaceLapTimer Pocket Edition
[env:erlt]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
upload_port = ${common.upload_port}
build_flags = ${common.build_flags} -D VARIANT=ERLT
extra_scripts = ${common.extra_scripts}
src_build_flags = -DERLT