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
3ebcdfd4
Commit
3ebcdfd4
authored
7 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
drivers/periph_common: guard spi_init() by spi module
parent
5c6c4399
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
drivers/periph_common/init.c
+5
-1
5 additions, 1 deletion
drivers/periph_common/init.c
with
5 additions
and
1 deletion
drivers/periph_common/init.c
+
5
−
1
View file @
3ebcdfd4
/*
/*
* Copyright (C) 2017 Freie Universität Berlin
* Copyright (C) 2017 Freie Universität Berlin
* 2017 Kaspar Schleiser <kaspar@schleiser.de>
*
*
* This file is subject to the terms and conditions of the GNU Lesser General
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* Public License v2.1. See the file LICENSE in the top level directory for more
...
@@ -14,16 +15,19 @@
...
@@ -14,16 +15,19 @@
* @brief Common static peripheral driver initialization implementation
* @brief Common static peripheral driver initialization implementation
*
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
* @author Kaspar Schleiser <kaspar@schleiser.de>
*
*
* @}
* @}
*/
*/
#ifdef MODULE_PERIPH_SPI
#include
"periph/spi.h"
#include
"periph/spi.h"
#endif
void
periph_init
(
void
)
void
periph_init
(
void
)
{
{
/* initialize configured SPI devices */
/* initialize configured SPI devices */
#ifdef
SPI_NUMOF
#ifdef
MODULE_PERIPH_SPI
for
(
unsigned
i
=
0
;
i
<
SPI_NUMOF
;
i
++
)
{
for
(
unsigned
i
=
0
;
i
<
SPI_NUMOF
;
i
++
)
{
spi_init
(
SPI_DEV
(
i
));
spi_init
(
SPI_DEV
(
i
));
}
}
...
...
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