Steven A. Falco
unread,Jun 21, 2024, 12:19:05 PM (8 days ago) Jun 21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PiDP-10
I'm curious as to why in /opt/pidp10/src/pidp10/src/pdp10/PDP10/ka10_pipanel.c around line 344, we only have 10 columns initialized:
for (col = 0; col < 10; col++) {
gpio_set_fsel(cols[col], GPIO_FSEL_INPUT);
gpio_set_pull(cols[col], PULL_UP);
}
I would expect the upper bound to instead be 18, like so:
for (col = 0; col < 18; col++) {
gpio_set_fsel(cols[col], GPIO_FSEL_INPUT);
gpio_set_pull(cols[col], PULL_UP);
}
I recognize that there are only 10 switches in row 3 and row 4, but there are 18 switches in the other rows, so I'd expect to initialize all 18, especially when someone tries to use the stick/button options or the maintenance panel option.
Is this a typo, or is there a reason not to init all the columns?
Steve