-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
139 lines (133 loc) · 4.36 KB
/
platformio.ini
File metadata and controls
139 lines (133 loc) · 4.36 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
; 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
[platformio]
default_envs = debug
[env]
extra_scripts =
pre:platformio.git.py
pre:platformio.convert_images.py
platformio.cargo.py
#platformio.upload_spiffs.py
rust_lib = bitcoin_hardware_wallet
build_flags =
-Os
-ffunction-sections
-fdata-sections
-Wl,--gc-sections
-L.
-I${PROJECT_DIR}/src
-Wno-error=maybe-uninitialized
-Wno-error
DISPLAY_SWAP_BYTES = yes
UPLOAD_SPIFFS = 0
[env:esp32]
platform = espressif32
framework = arduino
board = esp32-s3-wroom-1-n8
board_build.filesystem = spiffs
board_build.filesystem_size = 4M
board_build.sdkconfig_defaults = sdkconfig.defaults
board_build.arduino.memory_type = qio_opi
board_build.flash_mode = qio
board_build.mcu = esp32
board_build.f_cpu = 240000000L
board_upload.flash_size = 16MB
board_build.partitions = partitions.csv
rust_target = xtensa-esp32s3-espidf # xtensa-esp32s3-none-elf
lib_deps =
lovyan03/LovyanGFX@^1.1.7
tamctec/TAMC_GT911@^1.0.2
hideakitai/TCA9534@^0.1.1
dennis-ard/Arducam_Mega@^2.0.9
#arducam/ArduCAM@^1.0.0
bodmer/TJpg_Decoder@^1.1.0
build_flags =
${env.build_flags}
-DESP32S3
-DBOARD_HAS_PSRAM
-I${PROJECT_DIR}/lib/libtropic/include
-I${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto
-I${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/aes
-I${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/ed25519-donna
-DLT_USE_TREZOR_CRYPTO=1
-DLT_HELPERS=1
-DUNDEF_SPI_FLASH_SEC_SIZE
-DAES_RETURN=int
-DAES_VAR=1
-DFUNCS_IN_C=1
-DENC_KEYING_IN_C=1
-DDEC_KEYING_IN_C=1
-I${PROJECT_DIR}
-fexceptions
-Wno-error
-Wno-builtin-macro-redefined
src_build_flags =
-DTABLES_256=1
-DGCM_TABLES=1
-DAES_VAR=1
-DFUNCS_IN_C=1
-DENC_KEYING_IN_C=1
-DDEC_KEYING_IN_C=1
src_filter = +<*>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/aes/*.c>
-<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/aes/aestst.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/ed25519-donna/*.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/memzero.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/rand.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/sha2.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/hmac.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/hasher.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/aeskey.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/aestab.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/aescrypt.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/blake2b.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/blake2s.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/blake256.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/sha3.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/ripemd160.c>
+<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/groestl.c>
-<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/zkp_*.c>
-<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/bip*.c>
-<${PROJECT_DIR}/lib/libtropic/vendor/trezor_crypto/address.c>
debug_tool = esp-builtin
monitor_speed = 115200
monitor_filters = default
upload_protocol = esptool
upload_speed = 921600
[env:current]
board = ${env:esp32.board}
framework = ${env:esp32.framework}
board_build.filesystem = ${env:esp32.board_build.filesystem}
board_build.filesystem_size = ${env:esp32.board_build.filesystem_size}
board_build.arduino.memory_type = ${env:esp32.board_build.arduino.memory_type}
board_build.flash_mode = ${env:esp32.board_build.flash_mode}
board_build.partitions = ${env:esp32.board_build.partitions}
platform = ${env:esp32.platform}
rust_target = ${env:esp32.rust_target}
lib_deps =
${env:esp32.lib_deps}
build_flags =
${env:esp32.build_flags}
extra_scripts =
${env.extra_scripts}
debug_tool = ${env:esp32.debug_tool}
upload_protocol = ${env:esp32.upload_protocol}
upload_flags =
${env:esp32.upload_flags}
monitor_filters = ${env:esp32.monitor_filters}
monitor_speed = ${env:esp32.monitor_speed}
src_build_flags = ${env:esp32.src_build_flags}
src_filter = ${env:esp32.src_filter}
[env:release]
extends = env:current
build_type = release
[env:debug]
extends = env:current
build_type = debug