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

[NUCLEO_F401RE] add I2C master asynch #1791

Closed
wants to merge 3 commits into from

Conversation

dbestm
Copy link
Contributor

@dbestm dbestm commented May 26, 2016

set with DMA by default in device.h
@dbestm
Copy link
Contributor Author

dbestm commented May 27, 2016

__HAL_UNLOCK(&t_I2cHandle[i2c_module_lookup(obj)]);
}

__HAL_I2C_DISABLE_IT(&t_I2cHandle[i2c_module_lookup(obj)], I2C_IT_EVT|I2C_IT_ERR|I2C_IT_BUF);
Copy link
Contributor

@0xc0170 0xc0170 Jun 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are some misalignment in the file like on this line, are there tabs ?

Look at line 1080 for instance, and others, please align the code properly. Use 4 spaces (reason: mbed style, it has been applied to this file)

int use_tx = (tx != NULL && tx_length > 0);
int use_rx = (rx != NULL && rx_length > 0);

obj->tx_buff.buffer = (uint8_t *)malloc(8*tx_length);
Copy link
Contributor

@0xc0170 0xc0170 Jun 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate ? why do you allocate a new buffer and copy the data? And only for TX?

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 21, 2016

@dbestm Is there any update for this, I left some comments above.

There is a conflict with master now, will require a rebase to resolve them.

@erwango
Copy link
Contributor

erwango commented Jul 21, 2016

Hi Martin,

I'm taking the point back. Most likely we'll close this PR and submit brand new PR.
I will let you know what way we chose. Not sure I can close the PR myself, btw.

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 21, 2016

You should be able to close it ;) IF not ,let us know

@bcostm
Copy link
Contributor

bcostm commented Sep 27, 2016

This PR is obsolete and can be closed. PR #2622 replaces this one.

@sg-
Copy link
Contributor

sg- commented Sep 28, 2016

Closing give #2622 has been merged

@sg- sg- closed this Sep 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants