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

Fixed missing parentheses and added STM32F042x6 #65

Closed
wants to merge 1 commit into from

Conversation

tomvdb
Copy link
Contributor

@tomvdb tomvdb commented Jul 18, 2017

There is an error in pins_arduino.h. The macro is missing a bracket.

digitalPinToInterrupt(p) ((digitalPinIsValid(p) ? p : NOT_AN_INTERRUPT)

I also added the STM32F042x6 startup file define in stm32_def_build.h

Copy link
Member

@LMESTM LMESTM left a comment

Choose a reason for hiding this comment

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

Change looks good to me - it will be later reviewed and merged by maintainers

@tomvdb
Copy link
Contributor Author

tomvdb commented Jul 27, 2017

any updates to this? Want to use the stm32 core in a workshop, but would be easier if this fix/change is integrated in a new release.

@@ -49,7 +49,7 @@ uint32_t pinNametoDigitalPin(PinName p);
// Convert an analog pin number Axx to a PinName Pxy
#define analogInputToPinName(p) (digitalPinToPinName(analogInputToDigitalPin(p)))
// All pins could manage EXTI
#define digitalPinToInterrupt(p) ((digitalPinIsValid(p) ? p : NOT_AN_INTERRUPT)
#define digitalPinToInterrupt(p) ((digitalPinIsValid(p) ? p : NOT_AN_INTERRUPT))
Copy link

Choose a reason for hiding this comment

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

Delete the first parenthesis works too and it makes the code more readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, that works better :)

@ghost
Copy link

ghost commented Jul 27, 2017

@tomvdb
I will merge it as soon as you made the modification.
I don't know when the next release will be made.

@ghost ghost added the Bug 🐛 label Jul 27, 2017
@fpistm
Copy link
Member

fpistm commented Jul 28, 2017

Hi, @tomvdb,

thanks for the fix. I'm on vacation until 31th july. I will do a release with F401 RE next week.

@fpistm
Copy link
Member

fpistm commented Jul 31, 2017

I've manually merged the PR with minor corrections

@fpistm fpistm closed this Jul 31, 2017
@tomvdb
Copy link
Contributor Author

tomvdb commented Aug 1, 2017

Thanks! Sorry, still meant to fix the suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants