Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHello, I was curious if you were ever able to to switch the I2C multiplexer.
I am currently trying using the following commands. # define HPS_I2C_CONTROL ( 0x00080000 ) alt_setbits_word( ( virtual_base + ( ( uint32_t )( ALT_GPIO1_SWPORTA_DDR_ADDR ) & ( uint32_t )( HW_REGS_MASK ) ) ), HPS_I2C_CONTROL ); //output alt_clrbits_word( ( virtual_base + ( ( uint32_t )( ALT_GPIO1_SWPORTA_DR_ADDR ) & ( uint32_t )( HW_REGS_MASK ) ) ), HPS_I2C_CONTROL ); Yet the LED I have assigned to HPS_I2C_CONTROL indicates it is still active.