I am studuying how to develop low-level drivers for android on iMX6 based platform. How can i control PWM, CAN, SPI etc from android? Can i do it from android application or i must rewrite android sources? Where i must read data, received in interrupts? Give me advice, where to read full information about interaction between kernel drivers and android/android applications, please.