mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-23 16:09:05 +00:00
Gpio modify v4 (#3266)
* Refactor GPIO handling for RFFC5072: update pin mappings and simplify initialization * Refactor GPIO handling: replace portapack::gpio_dfu with dfu_button and clean up unused GPIOs * Refactor MAX283x GPIO handling: update pin mappings and simplify initialization * Refactor GPIO handling: update MAX2831 shutdown pin configuration * Refactor GPIO handling: add MAX2831 RXHP and RXTX control, update related configurations * Refactor MAX2831 frequency setting to include reference divider parameter and improve validation checks * Refactor MAX2831 frequency setting to remove reference divider parameter and improve frequency validation * copilot
This commit is contained in:
@@ -82,11 +82,9 @@ void IO::init() {
|
||||
|
||||
gpio_dir.output();
|
||||
gpio_lcd_rdx.output();
|
||||
gpio_lcd_wrx.output();
|
||||
gpio_io_stbx.output();
|
||||
gpio_addr.output();
|
||||
gpio_rot_a.input();
|
||||
gpio_rot_b.input();
|
||||
}
|
||||
|
||||
void IO::lcd_backlight(const bool value) {
|
||||
@@ -166,7 +164,7 @@ uint32_t IO::io_update(const TouchPinsConfig write_value) {
|
||||
}
|
||||
gpio_addr.write(addr);
|
||||
|
||||
auto dfu_btn = portapack::io.dfu_read() & 0x01;
|
||||
uint32_t dfu_btn = gpio_control::dfu_button.read();
|
||||
return (switches_raw & 0x7f) | (dfu_btn << 7);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user