mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
board/native: add periph_hwrng and init
This commit is contained in:
parent
c13426f688
commit
d94edad1bd
@ -16,6 +16,7 @@
|
||||
#include <stdio.h>
|
||||
#include "board.h"
|
||||
#include "periph/rtc.h"
|
||||
#include "periph/hwrng.h"
|
||||
|
||||
#include "board_internal.h"
|
||||
|
||||
@ -33,6 +34,9 @@ void board_init(void)
|
||||
LED1_ON;
|
||||
#ifdef MODULE_PERIPH_RTC
|
||||
rtc_init();
|
||||
#endif
|
||||
#ifdef MODULE_PERIPH_HWRNG
|
||||
hwrng_init();
|
||||
#endif
|
||||
puts("RIOT native board initialized.");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user