/* * Copyright 2006, Ingo Weinhold . * All rights reserved. Distributed under the terms of the MIT License. */ #include "real_time_clock.h" #include #include #include #include #include status_t init_real_time_clock(void) { // find RTC int rtcCookie = 0; if (of_get_next_device(&rtcCookie, 0, "rtc", gKernelArgs.platform_args.rtc_path, sizeof(gKernelArgs.platform_args.rtc_path)) != B_OK) { printf("init_real_time_clock(): Found no RTC device!"); return B_ERROR; } return B_OK; }