periph_common: call rtt_init from common init
This commit is contained in:
parent
6840c15db0
commit
bb8c2df413
@ -26,6 +26,9 @@
|
|||||||
#ifdef MODULE_PERIPH_RTC
|
#ifdef MODULE_PERIPH_RTC
|
||||||
#include "periph/rtc.h"
|
#include "periph/rtc.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef MODULE_PERIPH_RTT
|
||||||
|
#include "periph/rtt.h"
|
||||||
|
#endif
|
||||||
#ifdef MODULE_PERIPH_HWRNG
|
#ifdef MODULE_PERIPH_HWRNG
|
||||||
#include "periph/hwrng.h"
|
#include "periph/hwrng.h"
|
||||||
#endif
|
#endif
|
||||||
@ -44,6 +47,11 @@ void periph_init(void)
|
|||||||
rtc_init();
|
rtc_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Initialize RTT */
|
||||||
|
#ifdef MODULE_PERIPH_RTT
|
||||||
|
rtt_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MODULE_PERIPH_HWRNG
|
#ifdef MODULE_PERIPH_HWRNG
|
||||||
hwrng_init();
|
hwrng_init();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user