Hi everyone. My name is Pedro Bertoleti and I'm from Brazil. I'm learning about the PRUs on BeagleBone (I'm using BeagleBone Black board) and I wanna read IMU and another I2C sensors in PRU firmware (to be able to implement some motion algorithms and stuffs like that in PRU firmware, due to its real-time scope).
However, I'm not sure on how to use I2C in PRU. Per my understanding: A) PRUs have no hardware dedicated to I2C (nor SPI) B) I've seen some SPI examples with PRU on Internet, however in all of them SPI communication was made using bit-bang technique. So, would you help me answering the following questions? 1) Do I need bit-banging to communicate PRU to I2C devices? I mean, isn't there another way to use I2C in PRU? 2) If answer above is yes, is there an way to change gpio direction (input to outut and vice versa) inside PRU firmware? I ask this because, as I read so far, only config-pin (Linux side) can "enable" a gpio to PRU and set its direction, and glio direction change will be needed if I need to make I2C using bit-bang technique. Please, would anyone shed some light on it? Thanks in advance. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAJK9pqfpzE1n7ZY%2BFN2px7uKyYtBVEaj3Acg2dAw7qOb0bUwhA%40mail.gmail.com.
