From: Linus C. <li...@li...> - 2011-11-27 18:56:54
|
Sorry, just a misspelling on enabling the clock of the i2c. On Sun, Nov 27, 2011 at 3:43 PM, Linus Casassa <li...@li...> wrote: > Hi > > Very awesome how the project has grown! Thanks for the hard work! > > I am using a STM-H103 board and trying to make the i2c to work. > After I configure the i2c I try to send a start but it gets stuck > waiting for the flags: > > while (!((I2C_SR1(I2C1) & I2C_SR1_SB) > & (I2C_SR2(I2C1) & (I2C_SR2_MSL | I2C_SR2_BUSY)))); > > Some help would be very good for me. > > I have attached the code. You can put it on > libopencm3/examples/stm32/f1/stm32-h103 so that it can compile. > > Thanks in advance. > Regards. > > > -- > Linus Casassa > Estudiante Ingeniería Civil Electrónica > Universidad Técnica Federico Santa María > Fono: 56-9-97776941 > -- Linus Casassa Estudiante Ingeniería Civil Electrónica Universidad Técnica Federico Santa María Fono: 56-9-97776941 |