initial commit of kl25z rtc code. local changes for debug

Dependents:   demo_FRDM_RTC

Fork of KL25Z_RTC by clemente di caprio

Revision:
4:3bd0dc0c2b2e
Parent:
3:2cee0b9ac1ff
--- a/KL25Z_RTC.h	Fri Jun 21 02:22:00 2013 +0000
+++ b/KL25Z_RTC.h	Sun Aug 25 22:13:55 2013 +0000
@@ -66,7 +66,14 @@
      */
     KL25Z_RTC( unsigned int alarm);
     
-    /** Start the RTC module
+    /** Desctructor
+    */
+    ~KL25Z_RTC();
+    
+    /** Start the RTC module, using IRQ but without registering user defined callback functions.
+     * Access to the elapsed time is possible using the "Read" methid.
+     * The IRQ transaction is visible through "RTC_isIRQxxxxDone" methods.
+     *
      * @param none
      * @return none
      */
@@ -95,6 +102,24 @@
      * @return  the second elapsed
      */
     unsigned int RTC_Read( void);
+
+    /** Return the status of the IRQ for seconds elapsed.
+     * Use this function for a polling like method, using the IRQ internally the module but without callbacks define.
+     * The flag is reset after the read.
+     *
+     * @param   none
+     * @return  1 if the IRQ is done. 
+     */    
+    unsigned int RTC_isIRQSecondDone( void);
+    
+    /** Return the status of the IRQ for the alarm.
+     * Use this function for a polling like method, using the IRQ internally the module but without callbacks define.
+     * The flag is reset after the read.
+     *
+     * @param   none
+     * @return  1 if the IRQ is done.
+     */        
+    unsigned int RTC_isIRQAlarmDone( void);
     
 private: