1 #ifndef CLOCK_H 2 #define CLOCK_H 3 4 // CHDK interface to firmware timer / clock functions 5 6 // Note: used in modules and platform independent code. 7 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values) 8 9 extern long get_tick_count(); 10 11 extern int SetHPTimerAfterNow(int delay, int(*good_cb)(int, int), int(*bad_cb)(int, int), int param); 12 extern int CancelHPTimer(int handle); 13 14 /* 15 sets camera clock, including RTC 16 values are as they appear in camera UI, full year, month and day start at 1 17 does not change DST state, time set is time displayed 18 also updates tick_count_offset 19 no validation in CHDK 20 */ 21 extern void set_clock(int year, int month, int day, int hour, int minute, int second); 22 23 #endif