Code: Select all
printf("ctr %x\n", I2C0.ctr.val);
I2C0.ctr.ms_mode = 1;
I2C0.ctr.clk_en = 1;
I2C0.ctr.trans_start = 1;
printf("ctr %x\n", I2C0.ctr.val);
Code: Select all
volatile uint32_t I2C0_RAM[32];
GPIO_REG_WRITE(I2C_FIFO_START_ADDR_REG(0), I2C0_RAM);
printf("fifo_start_addr_reg %x @ %x I2C0_RAM %x\n",
I2C_FIFO_START_ADDR_REG(0),
GPIO_REG_READ(I2C_FIFO_START_ADDR_REG(0)),
(uint32_t)I2C0_RAM);
fifo_start_addr 3ff53100 @ 0 I2C0_RAM 3ffb1dc4