RIT (Repetitive Interrupt Timer) Library.
Dependents: ORTP-L_SensorTest ORTP-L_V01 ORTP-L_V01 RIT_Demo
Revision 4:64198265f56f, committed 2011-03-11
- Comitter:
- wvd_vegt
- Date:
- Fri Mar 11 11:00:13 2011 +0000
- Parent:
- 3:682b29493aa0
- Commit message:
- Removed Breaks from Documentation.
Changed in this revision
RIT.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 682b29493aa0 -r 64198265f56f RIT.h --- a/RIT.h Fri Mar 11 10:37:04 2011 +0000 +++ b/RIT.h Fri Mar 11 11:00:13 2011 +0000 @@ -30,26 +30,26 @@ #define RIT_FREQ 96*1000L #define RIT_DIV (SYSCLK/RIT_FREQ)-1 -/** Repetitive Interrupt Timer (RIT) class.<br/> -* <br/> -* Sample Code:<br/> -* <br/> -* DigitalOut rit_led(LED3); <br/> -* <br/> -* //Our function isr. <br/> -* void RIT_IRQHandler(void) { <br/> -* rit_led=!rit_led; // Flash a Led <br/> -* } <br/> -* <br/> -* RIT rit(1000); //Set interval to 1000 ms or 1 second. <br/> -* <br/> -* rit.append(RIT_IRQHandler); //Append our own function ISR. <br/> -* rit.enable(); <br/> -* <br/> -* wait(10); //wait 10 seconds (and watch the led flashing). <br/> -* <br/> -* rit.disable(); <br/> -* rit.unappend(); <br/> +/** Repetitive Interrupt Timer (RIT) class. +* +* Sample Code: +* +* DigitalOut rit_led(LED3); +* +* //Our function isr. +* void RIT_IRQHandler(void) { +* rit_led=!rit_led; // Flash a Led +* } +* +* RIT rit(1000); //Set interval to 1000 ms or 1 second. +* +* rit.append(RIT_IRQHandler); //Append our own function ISR. +* rit.enable(); +* +* wait(10); //wait 10 seconds (and watch the led flashing). +* +* rit.disable(); +* rit.unappend(); */ class RIT { public: