/* This register is responsible for the function parameters of the GPIO/INT present on the device. */
static int32_t can_ctrl_gpio_config(struct can_ctrl_dev *dev)
/* This register is responsible for the function parameters of the GPIO/INT present on the device. */
static int32_t can_ctrl_gpio_config(struct can_ctrl_dev *dev)
{
	int32_t ret;
	uint32_t temp;
	ret = can_ctrl_sfr_word_read(dev, CAN_CTRL_REG_IOCON, &temp);
	if(ret != 0)
		return ret;
	temp &= ~(IOCON_PM1_MODE(WORD_MASK) | IOCON_PM0_MODE(WORD_MASK) |
		  IOCON_XSTBYEN_MODE(WORD_MASK) |
		  IOCON_TRIS0_MODE(WORD_MASK));
	temp |= (IOCON_PM1_MODE(false) | IOCON_PM0_MODE(true) |
		 IOCON_XSTBYEN_MODE(false) | IOCON_TRIS0_MODE(false));
	return can_ctrl_sfr_word_write(dev, CAN_CTRL_REG_IOCON, temp);
}