Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
25868d1e
Unverified
Commit
25868d1e
authored
6 years ago
by
Peter Kietzmann
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #9885 from dylad/sam0_fix_spi_mode
sam0/spi: fix SPI mode assignment
parents
04a6b754
4e6d3d1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/sam0_common/periph/spi.c
+1
-1
1 addition, 1 deletion
cpu/sam0_common/periph/spi.c
with
1 addition
and
1 deletion
cpu/sam0_common/periph/spi.c
+
1
−
1
View file @
25868d1e
...
...
@@ -137,7 +137,7 @@ int spi_acquire(spi_t bus, spi_cs_t cs, spi_mode_t mode, spi_clk_t clk)
dev
(
bus
)
->
CTRLA
.
reg
=
(
SERCOM_SPI_CTRLA_MODE
(
0x3
)
|
/* 0x3 -> master */
SERCOM_SPI_CTRLA_DOPO
(
spi_config
[
bus
].
mosi_pad
)
|
SERCOM_SPI_CTRLA_DIPO
(
spi_config
[
bus
].
miso_pad
)
|
(
mode
<<
SERCOM_SPI_CTRLA_CP
OL
_Pos
));
(
mode
<<
SERCOM_SPI_CTRLA_CP
HA
_Pos
));
/* also no synchronization needed here, as CTRLA is write-synchronized */
/* finally enable the device */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment