I2c tutorial learn code missing function.
sir_hacksalot
Posts: 15
Hi,
Where: Learn, Simple Protocols, DIY I2C, file ' test24LC512with I2C.side '
issue: Propeller-elf-gcc.exe Error: 1
" Check Source for bad function call or global variable name '_i2c_busy'
I checked the library simpletools.h and simplei2c.h and cant find the function mentioned above.
Did I screw something up or am I the first to notice this?
I'm going to head to the next section about creating libraries and try to make my own i2c_busy function. I hope I dont let the smoke out...
thanks.
Where: Learn, Simple Protocols, DIY I2C, file ' test24LC512with I2C.side '
issue: Propeller-elf-gcc.exe Error: 1
" Check Source for bad function call or global variable name '_i2c_busy'
I checked the library simpletools.h and simplei2c.h and cant find the function mentioned above.
Did I screw something up or am I the first to notice this?
I'm going to head to the next section about creating libraries and try to make my own i2c_busy function. I hope I dont let the smoke out...
thanks.
Comments
i2c_busy() is in the latest workspace posted to googlecode.
https://propsideworkspace.googlecode.com/archive/a94a43f0cfcf636d0e27c9d87af993e098909374.zip
Ignore the leading underscore (it is added by the compiler).
Utility/libsimpletools/simpletools.h:HUBTEXT int i2c_busy(i2c *busID, int i2cAddr);
Utility/libsimpletools/source/i2c_busy.c:HUBTEXT int i2c_busy(i2c *busID, int i2cAddr)
Make sure that the properties general tab "Auto Include Libraries" checkbox is checked.