1 /*""FILE COMMENT""******************************************************* 2 * System Name : Real-time clock API for RX62Nxx 3 * File Name : r_pdl_rtc_RX62Nxx.h 4 * Version : 1.02 5 * Contents : RTC header 6 * Customer : 7 * Model : 8 * Order : 9 * CPU : RX 10 * Compiler : RXC 11 * OS : Nothing 12 * Programmer : 13 * Note : 14 ************************************************************************ 15 * Copyright, 2011. Renesas Electronics Corporation 16 * and Renesas Solutions Corporation 17 ************************************************************************ 18 * History : 2011.04.08 19 * : Ver 1.02 20 * : CS-5 release. 21 *""FILE COMMENT END""**************************************************/ 22 23 #ifndef R_PDL_RTC_RX62Nxx_H 24 #define R_PDL_RTC_RX62Nxx_H 25 26 extern VoidCallBackFunc rpdl_RTC_Periodic_callback_func; 27 extern VoidCallBackFunc rpdl_RTC_Alarm_callback_func; 28 29 /* Library prototypes */ 30 bool R_RTC_CreateAll( 31 const uint32_t, 32 const uint32_t, 33 const uint32_t, 34 const uint32_t, 35 const uint32_t, 36 VoidCallBackFunc const, 37 const uint8_t, 38 VoidCallBackFunc const, 39 const uint8_t 40 ); 41 bool R_RTC_ControlAll( 42 const uint32_t, 43 const uint16_t, 44 const uint32_t, 45 const uint32_t, 46 const uint32_t, 47 const uint32_t 48 ); 49 bool R_RTC_ReadAll( 50 volatile uint8_t * const, 51 volatile uint32_t * const, 52 volatile uint32_t * const 53 ); 54 bool ReturnFalse(void); 55 56 /* Macro definitions */ 57 58 #define R_RTC_Create(a, b, c, d, e, f, g, h, i) \ 59 ( \ 60 ( ((g) <= IPL_MAX) && ((i) <= IPL_MAX) ) ? \ 61 R_RTC_CreateAll( (a), (b), (c), (d), (e), (f), (g), (h), (i) ): \ 62 ReturnFalse() \ 63 ) 64 65 #define R_RTC_Control(a, b, c, d, e, f) \ 66 ( \ 67 R_RTC_ControlAll( (a), (b), (c), (d), (e), (f) ) \ 68 ) 69 70 #define R_RTC_Read(a, b, c) \ 71 ( \ 72 R_RTC_ReadAll( (a), (b), (c) ) \ 73 ) 74 75 #endif 76 /* End of file */ 77