-
Notifications
You must be signed in to change notification settings - Fork 36
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
Update the I2C test to use I2CEeprom driver API from github #98
Conversation
TESTS/API/I2C/I2C.cpp
Outdated
char test = 'A' + rand()%26; | ||
char read; | ||
int r = 0; | ||
int w = 0; | ||
w = memory.write(address,test); | ||
r = memory.read(address,read); | ||
w = memory.program((const void *)test, address, sizeof(test)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test
is not a pointer, why cast to void* ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARMmbed/i2cee-driver#6 is merged.
But this I2CEeprom did not pass, can you fixed the test? @rajkan01
@jamesbeyond good catch. fixed the issue
ARMmbed/i2cee-driver#6 is merged. |
a4eef21
to
a6c1c74
Compare
Qinghao suggested to change https://github.com/ARMmbed/ci-test-shield/blob/master/LM75B.lib pointing to https://github.com/ARMmbed/LM75B |
d6c4928
to
eb23f45
Compare
can you put the SHA of ARMmbed/LM75B@bf2c530 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code change is good now.
See other comment to update LM75B.
eb23f45
to
a267d3f
Compare
Ci test shield I2C test to use latest I2CEeprom driver API from GitHub instead of using legacy I2C Eeprom driver API from Mercurial.