1 /* 2 ** Copyright 2003, Jeff Ward, jeff@r2d2.stcloudstate.edu. All rights reserved. 3 ** Distributed under the terms of the OpenBeOS License. 4 */ 5 #ifndef KERNEL_ARCH_REAL_TIME_CLOCK_H 6 #define KERNEL_ARCH_REAL_TIME_CLOCK_H 7 8 9 #include <kernel.h> 10 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 void arch_rtc_set_hw_time(uint32 seconds); 17 // Set HW clock to 'seconds' since 1/1/1970 18 uint32 arch_rtc_get_hw_time(void); 19 // Returns number of seconds since 1/1/1970 as stored in HW 20 21 #ifdef __cplusplus 22 } 23 #endif 24 25 #endif /* KERNEL_ARCH_REAL_TIME_CLOCK_H */ 26