Kevin Lin
12/17/2023, 9:30 PMTim Edwards
12/17/2023, 9:52 PMKevin Lin
12/18/2023, 4:57 AMKevin Lin
12/18/2023, 6:43 AMTim Edwards
12/18/2023, 2:39 PMreg_mprj_io_0 = GPIO_MODE_MGMT_STD_OUTPUT;
) (followed by setting reg_mprj_xfer
low bit and waiting for it to self-reset to zero) and then apply data through, e.g., reg_mprj_datal = 0x00000001;
and reg_mprj_datal = 0x00000000;
.Kevin Lin
12/18/2023, 3:25 PMTim Edwards
12/18/2023, 3:30 PMreg_mprj_xfer
initiates the full configuration of the GPIO. There are defaults that get used if you don't set a value for any GPIO, which should be "sane" values, but it's best just to make sure you've set all the GPIOs the way you want them before you toggle reg_mprj_xfer
(FYI, if you don't set GPIO 1 to 4 within your program, then the defaults are correct for using the housekeeping SPI).Kevin Lin
12/18/2023, 3:37 PMKevin Lin
12/18/2023, 3:38 PMKevin Lin
12/18/2023, 3:39 PMTim Edwards
12/18/2023, 6:47 PM