Skip to content
Snippets Groups Projects
Commit d73131a9 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #1477 from LudwigOrtmann/native_rtc_increase_realism

native: increase rtc realism
parents 8076468c 13bd2a2b
Branches
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment