Thank you so much, Matt and Tim. If someone reads...
# caravel
e
Thank you so much, Matt and Tim. If someone reads this in the future, as Tim said, you need to set the GPIO port as a bidirectional port. e.g. "reg_mprj_io_18 = GPIO_MODE_MGMT_STD_BIDIRECTIONAL;"