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

Adds a config level for SPI on ChibiOS targets #1622

Merged
merged 8 commits into from
May 4, 2020
Merged

Conversation

networkfusion
Copy link
Member

Description

Ensures the targets Port and Pins are correctly assigned for SPI.

Motivation and Context

SPI was not working properly on STM32 (ChibiOS) targets.

How Has This Been Tested?

Screenshots

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@nfbot
Copy link
Member

nfbot commented May 1, 2020

Hi @networkfusion,

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

A human will be reviewing it shortly. 😉

@networkfusion networkfusion added Platform: STM32 Everything related specifically with ChibiOS platform Area: Interpreter Everything related with the interpreter, execution engine and such Series: STM32xx Everything related specifically with STM32 targets Type: enhancement ⚠️ DO NOT MERGE ⚠️ labels May 1, 2020
@networkfusion
Copy link
Member Author

networkfusion commented May 1, 2020

Merge should only happen once community targets and orgpal branch have been updated to have the required config.

networkfusion and others added 8 commits May 1, 2020 20:27
ensures GPIO lines are allocated.
Signed-off-by: josesimoes <jose.simoes@eclo.solutions>
Signed-off-by: josesimoes <jose.simoes@eclo.solutions>
Signed-off-by: josesimoes <jose.simoes@eclo.solutions>
Signed-off-by: josesimoes <jose.simoes@eclo.solutions>
- Add to pull in board.c and .h to allow nf  config isolated from ChibiOS.

Signed-off-by: josesimoes <jose.simoes@eclo.solutions>
- GPIO port is now required.
- Switched to palSetPadMode API to allow setting all the required GPIO configs.
- Update SPI config declaration on all reference targets.

Signed-off-by: josesimoes <jose.simoes@eclo.solutions>
Copy link
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

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

Now LGTM!

@josesimoes
Copy link
Member

  • orgpal3 branch updated and changes commited
  • community targets updated, PR waiting fo review & merge

Copy link
Member

@piwi1263 piwi1263 left a comment

Choose a reason for hiding this comment

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

LGTM

@josesimoes josesimoes merged commit 2f6a57d into develop May 4, 2020
@josesimoes josesimoes deleted the develop-spifix branch May 4, 2020 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Interpreter Everything related with the interpreter, execution engine and such Platform: STM32 Everything related specifically with ChibiOS platform Series: STM32xx Everything related specifically with STM32 targets Type: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants