Skip to content

non-DMA SPI working; adding this now for testing; will continue with DMA #443

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

Merged
merged 1 commit into from
Nov 17, 2017

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Nov 16, 2017

Tested with BMP280 SPI on '21 and '51

needs corresponding ASF4 PR as well

Also, fixed pin mappings for rev B Metro M4:
swap PA12 and PA13 on SPI 2x3 header
swap A3 and A5

Comment out all frozen modules in CPX again to make room while waiting
for SPI flash.

@dhalbert dhalbert requested a review from tannewt November 16, 2017 22:16
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks really good! One minor thing plus you'll need to update the asf4 module to the real commit now that its pulled.

#include "hal/include/hal_spi_m_sync.h"
#include "hal/include/hpl_spi_m_sync.h"

#include "peripherals.h"
Copy link
Member

Choose a reason for hiding this comment

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

This change has two _peripherals.h files. Did you mean to merge them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi - peripherals.h includes either samd21_peripherals.h or samd51_peripherals.h. They are slightly different. Is that what you mean?

Copy link
Member

Choose a reason for hiding this comment

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

I don't see peripherals.h in the diff.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added it in the previous PR when I did I2C. It hasn't changed: it's just conditional #includes.

@tannewt
Copy link
Member

tannewt commented Nov 17, 2017

Ah ok! You'll need to fix the build because CircuitPlayground is out of space.

tannewt
tannewt previously approved these changes Nov 17, 2017
Also, fixed pin mappings for rev B Metro M4:
swap PA12 and PA13 on SPI 2x3 header
swap A3 and A5

Comment out all frozen modules in CPX again to make room while waiting
for SPI flash.
@dhalbert dhalbert merged commit a9f75a7 into adafruit:master Nov 17, 2017
@dhalbert dhalbert deleted the 3.0_spi branch November 17, 2017 03:24
@dhalbert dhalbert mentioned this pull request Nov 29, 2017
5 tasks
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