diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-08-31 17:17:57 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-08-31 17:17:57 -0400 |
commit | e03d58f4dab4176514924baa3a1ff430bf5819b8 (patch) | |
tree | b5c8269c34ab3bb4da0f7c52dea7049966753fb3 /wirish/HardwareTimer.h | |
parent | 01c38f5567bf624413d901c2b287e63cdccd03a6 (diff) | |
download | librambutan-e03d58f4dab4176514924baa3a1ff430bf5819b8.tar.gz librambutan-e03d58f4dab4176514924baa3a1ff430bf5819b8.zip |
Further wirish portability progress
Sort of ugly changes. Compiles but untested.
Diffstat (limited to 'wirish/HardwareTimer.h')
-rw-r--r-- | wirish/HardwareTimer.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wirish/HardwareTimer.h b/wirish/HardwareTimer.h index c79f54f..3f986e4 100644 --- a/wirish/HardwareTimer.h +++ b/wirish/HardwareTimer.h @@ -62,12 +62,26 @@ class HardwareTimer { void detachCompare2Interrupt(void); void detachCompare3Interrupt(void); void detachCompare4Interrupt(void); + #if NR_TIMERS >= 8 + void setChannel5Mode(uint8 mode); + void setChannel8Mode(uint8 mode); + void setCompare5(uint16 val); // truncates to overflow + void setCompare8(uint16 val); // truncates to overflow + void attachCompare5Interrupt(voidFuncPtr handler); + void attachCompare8Interrupt(voidFuncPtr handler); + void detachCompare5Interrupt(void); + void detachCompare8Interrupt(void); + #endif }; extern HardwareTimer Timer1; extern HardwareTimer Timer2; extern HardwareTimer Timer3; extern HardwareTimer Timer4; +#if NR_TIMERS >= 8 +extern HardwareTimer Timer5; +extern HardwareTimer Timer8; +#endif #endif |