From 8531bb7881afa9af3f705607eaecd45586d6b7d9 Mon Sep 17 00:00:00 2001 From: David Kuder Date: Fri, 28 Apr 2023 23:18:42 -0400 Subject: [PATCH] Analog GS jumpers and M2B0 --- common/abus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/abus.c b/common/abus.c index a33145d..daf16e4 100644 --- a/common/abus.c +++ b/common/abus.c @@ -57,8 +57,13 @@ static void abus_main_setup(PIO pio, uint sm) { // map the SET pin group to the bus transceiver enable signals sm_config_set_set_pins(&c, CONFIG_PIN_APPLEBUS_CONTROL_BASE+1, 3); +#ifdef ANALOG_GS + // configure left shift into ISR & autopush every 32 bits + sm_config_set_in_shift(&c, false, true, 32); +#else // configure left shift into ISR & autopush every 26 bits sm_config_set_in_shift(&c, false, true, 26); +#endif pio_sm_init(pio, sm, program_offset, &c);