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

I2c #445

Merged
merged 5 commits into from Aug 23, 2017
Merged

I2c #445

merged 5 commits into from Aug 23, 2017

Conversation

ghost
Copy link

@ghost ghost commented Aug 23, 2017

No description provided.

@nfbot
Copy link
Member

nfbot commented Aug 23, 2017

Hi @MikroBusNet,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

@@ -40,6 +40,14 @@ int main(void) {
// HAL initialization, this also initializes the configured device drivers
// and performs the board-specific initializations.
halInit();

// check for valid CLR image
Copy link
Member

Choose a reason for hiding this comment

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

I believe that this is here in error... this code block is already bellow, executing only if the user button is NOT pressed.

Copy link
Author

@ghost ghost Aug 23, 2017

Choose a reason for hiding this comment

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

Whoops !
This code is indeed here on purpose so that I do not have to press the button to leave booter mode.
This was supposed to be private code.

Edit: btw, I should not have pushed this file either.

Copy link
Member

Choose a reason for hiding this comment

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

hum... you say you have to push the button to exit nanoBooter?! that's supposed to be the oposite!
Press it to REMAIN on booter.

I've been using the master code on this same board without any issues on this behaviour... please double check.

Copy link
Member

Choose a reason for hiding this comment

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

Anyways, if you don't have any changes just remove this file from the PR.

@@ -67,7 +67,7 @@
* @brief Enables the I2C subsystem.
*/
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
#define HAL_USE_I2C FALSE
#define HAL_USE_I2C TRUE
Copy link
Member

@josesimoes josesimoes Aug 23, 2017

Choose a reason for hiding this comment

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

The definition for HAL_USE_I2C has to depend on the CMake option API_Windows.Devices.I2c and it's already performed in the general CMake (line 262).

  • Please comment this block (and the equivalents on the others targets) adding a comment // this option is set at target_platform.h (from config file)

  • Please update target_platform.h.in and add the corresponding option to handle the HAL_USE_I2C

@josesimoes
Copy link
Member

@MikroBusNet please pull + rebase the changes from the master into your branch.

Christophe Gerbier added 3 commits August 23, 2017 12:56
This is the first try on Devices.I2c

Signed-off-by: Christophe Gerbier <[email protected]>
Error codes and number of bytes read/written are not implemented yet.
If an errors occurs, then it will return "UnknownError".

Signed-off-by: Christophe Gerbier <[email protected]>
Related to José's comment on the PR.

Signed-off-by: Christophe Gerbier <[email protected]>
Christophe Gerbier and others added 2 commits August 23, 2017 19:31
@josesimoes josesimoes merged commit 88ddb24 into nanoframework:master Aug 23, 2017
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.

2 participants