00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved. 00002 * 00003 * The information contained herein is confidential property of Nordic 00004 * Semiconductor ASA.Terms and conditions of usage are described in detail 00005 * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 00006 * 00007 * Licensees are granted free, non-transferable use of the information. NO 00008 * WARRENTY of ANY KIND is provided. This heading must NOT be removed from 00009 * the file. 00010 * 00011 * $LastChangedRevision: 171 $ 00012 */ 00013 00021 #ifndef CKLF_H__ 00022 #define CKLF_H__ 00023 00024 #include <stdint.h> 00025 00030 void cklf_regxc_write(uint8_t addr, uint16_t val); 00031 00036 uint16_t cklf_regxc_read(uint8_t addr); 00037 00041 void cklf_rtc_disable(void); 00042 00047 void cklf_rtc_init(uint8_t cnt_h, uint16_t cnt_l); 00048 00054 uint16_t cklf_rtc_read_lsw(void); 00055 00061 uint8_t cklf_rtc_read_msb(void); 00062 00068 void cklf_rtc_wait(void); 00069 00073 void cklf_wdog_init(uint16_t cnt); 00074 00079 void cklf_wdog_feed(void); 00080 00085 void cklf_gpio_wakeup(uint16_t wcon1, uint16_t wcon0); 00086 00087 #endif // CKLF_H__ 00088