Skip to content
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

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

rajkan01
Copy link
Contributor

@rajkan01 rajkan01 commented Mar 6, 2020

Ci test shield I2C test to use latest I2CEeprom driver API from GitHub instead of using legacy I2C Eeprom driver API from Mercurial.

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));
Copy link
Contributor

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* ?

Copy link
Contributor Author

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

@jamesbeyond
Copy link
Contributor

jamesbeyond commented Mar 6, 2020

ARMmbed/i2cee-driver#6 is merged.
But this I2CEeprom did not pass, can you fixed the test? @rajkan01

@jamesbeyond
Copy link
Contributor

#96

TESTS/API/I2C/I2C.cpp Outdated Show resolved Hide resolved
@evedon
Copy link

evedon commented Mar 10, 2020

@rajkan01 rajkan01 force-pushed the i2ceeprom_api_adaption branch 2 times, most recently from d6c4928 to eb23f45 Compare March 10, 2020 18:01
@jamesbeyond
Copy link
Contributor

jamesbeyond commented Mar 11, 2020

can you put the SHA of ARMmbed/LM75B@bf2c530
@rajkan01

Copy link

@evedon evedon left a 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.

@jamesbeyond jamesbeyond merged commit fc196f8 into ARMmbed:master Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants