Skip to content

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Sep 21, 2019

Added return value to _interruptStatus. I'm not entirely confident we are returning all we should.

Here is example returning fault mask register as well.

Here is one of very few example sketches I could find that actually use the __interruptsStatus() call.

Also in this PR - Small changes to SPI.h. I decided to remove warnings to SS pin definition. I've never used a pin called 'SS' and use a GPIO for CS instead. Apollo3 doesn't have hardware support for SS so I think we can expunge it. Also, changed warning on 'CLK' to 'SCK'. I see SCK more often for SPI pins and this follows the pad map for Apollo3.

Fixes issue 55. Functions that don't return a value have caused unpredicatable behavior on Cortex-M3 in the past. Added comment to docs on ARM showing primask register.
Apollo3 doesn't use dedicated slave select pins for SPI. Any GPIO works so removed warning for no SS. Changed warning to SCK as the variants use 'SCK' nomencalture instead of 'CLK'.
@nseidle
Copy link
Member Author

nseidle commented Sep 21, 2019

Should have noted - this PR is an effort to fix warnings found in issue #55.

@oclyke oclyke merged commit a289272 into master Sep 23, 2019
@oclyke oclyke deleted the smallCleanup branch September 23, 2019 16:42
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