Skip to content

PIO ini file cleanup/simplification - #3586

Merged
pkendall64 merged 7 commits into
ExpressLRS:masterfrom
pkendall64:4.1/ini-files
Apr 14, 2026
Merged

pkendall64 merged 7 commits into
ExpressLRS:masterfrom
pkendall64:4.1/ini-files

Conversation

@pkendall64

Copy link
Copy Markdown
Collaborator

This is part 2 of 3 in preparation for supporting new radios and/or MCUs.

In this part we are splitting up unified.ini into files based on the MCU and device type, so we end up with

  • targets/esp32-tx.ini
  • targets/esp32s3-tx.ini
  • targets/esp32c3-tx.ini
  • targets/esp8285-tx.ini
  • targets/esp32-rx.ini
  • targets/esp32s3-rx.ini
  • targets/esp32c3-rx.ini
  • targets/esp8285-rx.ini

This will make it simpler in future when adding new MCU support or radio support.

All the common libraries used are handled in the base environment in common.ini. TX and/or RX specific libraries are added in the appropriate .ini files.

The radio band environments radio_900 and radio_2400 have been renamed to the chip supported i.e. radio_SX127X and radio_SX128X accordingly, this will reduce confusion when adding new radio chips. This was previously half done when the LR1121 was added.

@pkendall64 pkendall64 added house keeping 🧹 Cleanup of code and house keeping V4.1 🍑 labels Mar 25, 2026

@mha1 mha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ok building a variety of different targets with VSCode

@CapnBry CapnBry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah the way it probably should have been done all along, momentum is hard to stop.

Only regression I see is that ESP8285 TXes used to be 80MHz F_CPU but now are 160MHz. 80MHz was intentional due to me trying to make the case several years ago that we don't need 240MHz or even 160MHz for how simple what we do is. I don't think anyone cares about the 50-10mA difference in power so I'm ok with this discrepancy.

@pkendall64
pkendall64 merged commit 4df44b9 into ExpressLRS:master Apr 14, 2026
26 checks passed
@pkendall64
pkendall64 deleted the 4.1/ini-files branch April 14, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

house keeping 🧹 Cleanup of code and house keeping V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants