James A
04/14/2022, 7:59 AMli s3, 0x0402
// 8 to 18 inputs
sw s3, IOCONF_OFS(8)
// … <9 to 17>
sw s3, IOCONF_OFS(18)
li s3, 0x1808
// 19 to 27 outputs
sw s3, IOCONF_OFS(19)
// … <10 to 26>
sw s3, IOCONF_OFS(27)
Can you help explain the bit shifting needed in the actual sources?