Support and General Use > Plugins/Viewers

Ipod i2c commands

(1/2) > >>

mssc:
Hi!
I'm planning on making this famous "bluetooth in ipod classic" mod in my own u2 5g. I don't like the idea of making holes in device housing, but I need a way to turn module and pairing mode on/off. My idea is to use some kind of i2c gpio expander (like SC16IS752), connect it to the ipods' i2c dataline (propably TEA1211 pins) and control it using rockbox plugin. I'm unsure whether plugin can even do something like this, I've found i2c_begin(), i2c_end() and i2c_write() functions in plugin.h but I don't know if they will work or not. Can someone from dev team shed light on this subject?

saratoga:
Assuming you have access to an i2c line on the device, you could add whatever driver functions you wanted to the plugin API, or even just put the i2c code directly into your plugin.  On simple devices like the ipods there is no memory management unit, and hardware registers can be directly accessed by anything.

mssc:
Great, I have one more question, how to interact with CPU register with plugin code? Is there even such functionality or I need to extend plugin library?

__builtin:
Most registers are memory-mapped. See your target's header files. Ex: https://github.com/Rockbox/rockbox/blob/master/firmware/export/pp5020.h

mssc:
Thanks, but how can I interact with these adresses using plugin code? Is it even possible or do I need to write additional middleware myself?

Navigation

[0] Message Index

[#] Next page

Go to full version