mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-01 11:25:44 +00:00

* Update platformio inis for stm32 platform and wio-e5 variant for enabling i2c * Don't reference timezone functions if MESHTASTIC_EXCLUDE_TZ is defined * Use custom pow_of_two in RadioInterface instead of floating-point pow() * First pass: enable sensors for STM32wL * Fix AirQualityTelemetryModule being created if the PM25AQI header is missing * Link in power sensor libraries * more ini tweaks * Add =1 to EXCLUDE defines, fix indentation. * Drop HAS_WIRE in ini, it's defined in architecture.h * Fix build when power sensor libraries are missing Make MAX sensor integration into Power.cpp optional based on its library header existing. Also make NullSensor expose a voltage and current sensor, because Power calls directly into these for INA sensors. This lets us remove all the deps for the STM32WL platform. * Change default I2C for RAK3172 to be I2C1, not I2C2 * Respect the laws of mathematics (oops)
25 lines
682 B
INI
25 lines
682 B
INI
[env:rak3172]
|
|
extends = stm32_base
|
|
board = wiscore_rak3172
|
|
board_upload.maximum_size = 233472 ; reserve the last 28KB for filesystem
|
|
build_flags =
|
|
${stm32_base.build_flags}
|
|
-Ivariants/rak3172
|
|
-DPIN_WIRE_SDA=PA11
|
|
-DPIN_WIRE_SCL=PA12
|
|
-DHAL_DAC_MODULE_ONLY
|
|
-DHAL_RNG_MODULE_ENABLED
|
|
-DRADIOLIB_EXCLUDE_SX128X=1
|
|
-DRADIOLIB_EXCLUDE_SX127X=1
|
|
-DRADIOLIB_EXCLUDE_LR11X0=1
|
|
-DMESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
|
|
-DMESHTASTIC_EXCLUDE_I2C=1
|
|
-DMESHTASTIC_EXCLUDE_WIFI=1
|
|
-DMESHTASTIC_EXCLUDE_BLUETOOTH=1
|
|
-DMESHTASTIC_EXCLUDE_GPS=1
|
|
-DMESHTASTIC_EXCLUDE_SCREEN=1
|
|
-DMESHTASTIC_EXCLUDE_MQTT=1
|
|
-DMESHTASTIC_EXCLUDE_POWERMON=1
|
|
;-DCFG_DEBUG
|
|
upload_port = stlink
|