Analog GS jumpers and M2B0

This commit is contained in:
David Kuder 2023-04-28 23:18:42 -04:00
parent 006ff637a6
commit 8531bb7881

View File

@ -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);