fix: add gpio_pad_hold on GPIO21 to prevent boot ROM from reconfiguring shift register enable pin
This commit is contained in:
@@ -140,9 +140,11 @@ pub(crate) fn create_v3(
|
||||
let mut general_fault = Output::new(peripherals.gpio6, Level::Low, OutputConfig::default());
|
||||
general_fault.set_low();
|
||||
|
||||
hold_disable(21);
|
||||
let mut shift_register_enable_invert =
|
||||
Output::new(peripherals.gpio21, Level::Low, OutputConfig::default());
|
||||
shift_register_enable_invert.set_low();
|
||||
hold_enable(21);
|
||||
|
||||
let signal_counter = peripherals.pcnt0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user