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
f2466fb8
Commit
f2466fb8
authored
8 years ago
by
Vincent Dupont
Browse files
Options
Downloads
Patches
Plain Diff
periph/rtc: move init from auto_init to periph_init
parent
87b0477b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/periph_common/init.c
+8
-0
8 additions, 0 deletions
drivers/periph_common/init.c
sys/auto_init/auto_init.c
+0
-8
0 additions, 8 deletions
sys/auto_init/auto_init.c
with
8 additions
and
8 deletions
drivers/periph_common/init.c
+
8
−
0
View file @
f2466fb8
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
#ifdef MODULE_PERIPH_SPI
#ifdef MODULE_PERIPH_SPI
#include
"periph/spi.h"
#include
"periph/spi.h"
#endif
#endif
#ifdef MODULE_PERIPH_RTC
#include
"periph/rtc.h"
#endif
void
periph_init
(
void
)
void
periph_init
(
void
)
{
{
...
@@ -32,4 +35,9 @@ void periph_init(void)
...
@@ -32,4 +35,9 @@ void periph_init(void)
spi_init
(
SPI_DEV
(
i
));
spi_init
(
SPI_DEV
(
i
));
}
}
#endif
#endif
/* Initialize RTC */
#ifdef MODULE_PERIPH_RTC
rtc_init
();
#endif
}
}
This diff is collapsed.
Click to expand it.
sys/auto_init/auto_init.c
+
0
−
8
View file @
f2466fb8
...
@@ -32,10 +32,6 @@
...
@@ -32,10 +32,6 @@
#include
"xtimer.h"
#include
"xtimer.h"
#endif
#endif
#ifdef MODULE_RTC
#include
"periph/rtc.h"
#endif
#ifdef MODULE_GNRC_SIXLOWPAN
#ifdef MODULE_GNRC_SIXLOWPAN
#include
"net/gnrc/sixlowpan.h"
#include
"net/gnrc/sixlowpan.h"
#endif
#endif
...
@@ -105,10 +101,6 @@ void auto_init(void)
...
@@ -105,10 +101,6 @@ void auto_init(void)
DEBUG
(
"Auto init xtimer module.
\n
"
);
DEBUG
(
"Auto init xtimer module.
\n
"
);
xtimer_init
();
xtimer_init
();
#endif
#endif
#ifdef MODULE_RTC
DEBUG
(
"Auto init rtc module.
\n
"
);
rtc_init
();
#endif
#ifdef MODULE_SHT11
#ifdef MODULE_SHT11
DEBUG
(
"Auto init SHT11 module.
\n
"
);
DEBUG
(
"Auto init SHT11 module.
\n
"
);
sht11_init
();
sht11_init
();
...
...
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