-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status I2C_ - Type 'Status' could not be resolved #4
Comments
it's defined in I2C.h #ifndef I2C_H#define I2C_H #include <stm32f10x_i2c.h> typedef enum {Error = On Sat, Oct 4, 2014 at 9:20 AM, Stephan Goldenberg <notifications@github.com
|
Ah, OK. This is not in the text I have. |
Hmm, does not compile. It's choking on this 'Timed(x)' construct and doesn't seem to like lables. Edit: Ooops, that was me. I forgot the lines '// Wait for stop' and on in I2C_Read(). Compiles now :)
|
Hmm, no errors, no warnings - not working. ;( Using an LA I can see START - 0xEE (SlaveAddress) - ACK - 0xAA (RegisterAddress) - ACK - STOP. Now 2 bytes should be read: I see START and nothing more (SDA and SCL stay low), the SlaveAddress gets never send. MCU is trapped in exit.c. Hardware is working fine with Tiva Launchpad. |
I'm not sure I have enough info to help. When I get back home from Geoffrey On Tuesday, October 7, 2014, Stephan Goldenberg notifications@github.com
|
Oooh, sorry. Enjoy your off time ! I got fishy and removed the Timed(... line after generate start and now anything is fine. MCU doesn't get trapped and I get sane values from the sensor. 26C, 989hPa - 1003hPa reported for my area. I don't know why waiting for I2C_EVENT_MASTER_MODE_SELECT fails.
Enjoy your vacation, |
Hi,
I'm using Eclipse with gnuarm plugin http://gnuarmeclipse.sourceforge.net/, trying to read BMP085 pressure sensors. Where is Status defined ? I'll try uint32_t for now.
Have a nice weekend,
Stephan
The text was updated successfully, but these errors were encountered: