projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix callback type.
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
timer_mega.c
diff --git
a/bertos/cpu/avr/drv/timer_mega.c
b/bertos/cpu/avr/drv/timer_mega.c
index ee63e76f8d419846eca22e64845a8f3d527a4556..8b76045462a717c3c63866e0ed25025b674057be 100644
(file)
--- a/
bertos/cpu/avr/drv/timer_mega.c
+++ b/
bertos/cpu/avr/drv/timer_mega.c
@@
-34,14
+34,14
@@
* \author Francesco Sacchi <batt@develer.com>
* \author Luca Ottaviano <lottaviano@develer.com>
*
* \author Francesco Sacchi <batt@develer.com>
* \author Luca Ottaviano <lottaviano@develer.com>
*
- * \brief Low-level timer module for AVR (implementation).
+ * \brief Low-level timer module for AVR
MEGA
(implementation).
*
* This module is automatically included so no need to include
* in test list.
* notest: avr
*/
*
* This module is automatically included so no need to include
* in test list.
* notest: avr
*/
-#include <drv/timer_
avr
.h>
+#include <drv/timer_
mega
.h>
#include <cfg/macros.h> // BV()
#include <cpu/types.h>
#include <cfg/macros.h> // BV()
#include <cpu/types.h>
@@
-126,8
+126,6
@@
REG_TIFR0 = BV(BIT_OCF0A) | BV(TOV0);
/* Setup Timer/Counter interrupt */
REG_TIFR0 = BV(BIT_OCF0A) | BV(TOV0);
/* Setup Timer/Counter interrupt */
- ASSR = 0x00; /* Internal system clock */
-
REG_TCCR0A = 0; // TCCR2 reg could be separate or a unique register with both A & B values, this is needed to
REG_TCCR0B = 0;
REG_TCCR0A = 0; // TCCR2 reg could be separate or a unique register with both A & B values, this is needed to
REG_TCCR0B = 0;