Forums

spra836: I2c implementation on DSP

Started by nicolaborgonovi October 18, 2010
Hi all,
I tried to use source code available in spra836 document (i2c bus on mcbsp port) on my TMS320c5416 DSK.
In this documents I understood that all funtions (init_gpio,i2c_init etc...) are C callable.
Someone tried to call these function in a simple C source code ?
I tried it, but when I call for example init_gpio, the function seems works good, but at the exit I don't eturn at the correct point in the main program ?
Someone can post a simple project where these functions are used ?
Many Thanks !!!!

OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x
Nicola-

> I tried to use source code available in spra836 document
> (i2c bus on mcbsp port) on my TMS320c5416 DSK.
> In this documents I understood that all funtions
> (init_gpio,i2c_init etc...) are C callable.
> Someone tried to call these function in a simple C source
> code ?
> I tried it, but when I call for example init_gpio, the
> function seems works good, but at the exit I don't eturn at the
> correct point in the main program ?
> Someone can post a simple project where these functions are
> used ?

Can you show your main.c file? If you can take out unrelated code and make it straightforward to see what you're
doing with GPIO, that would be helpful.

-Jeff

OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x