mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Merge pull request #1477 from LudwigOrtmann/native_rtc_increase_realism
native: increase rtc realism
This commit is contained in:
commit
d73131a9c6
@ -30,17 +30,24 @@
|
||||
#include "native_internal.h"
|
||||
|
||||
static int native_rtc_enabled;
|
||||
static int native_rtc_initialized;
|
||||
|
||||
void rtc_init(void)
|
||||
{
|
||||
native_rtc_enabled = 0;
|
||||
native_rtc_initialized = 1;
|
||||
printf("native rtc initialized\n");
|
||||
}
|
||||
|
||||
void rtc_enable(void)
|
||||
{
|
||||
DEBUG("rtc_enable\n");
|
||||
native_rtc_enabled = 1;
|
||||
if (native_rtc_initialized == 1) {
|
||||
native_rtc_enabled = 1;
|
||||
}
|
||||
else {
|
||||
DEBUG("rtc not initialized, not enabling\n");
|
||||
}
|
||||
}
|
||||
|
||||
void rtc_disable(void)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user