projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comment
[bertos.git]
/
bertos
/
cpu
/
arm
/
drv
/
timer_at91.c
diff --git
a/bertos/cpu/arm/drv/timer_at91.c
b/bertos/cpu/arm/drv/timer_at91.c
index a4375335d0d88527535935e2ce0f4de9cd584479..f1c2887e2b0fe47b850a9ba803b1b2b7a6e91251 100644
(file)
--- a/
bertos/cpu/arm/drv/timer_at91.c
+++ b/
bertos/cpu/arm/drv/timer_at91.c
@@
-49,23
+49,12
@@
/** HW dependent timer initialization */
#if (CONFIG_TIMER == TIMER_ON_PIT)
/** HW dependent timer initialization */
#if (CONFIG_TIMER == TIMER_ON_PIT)
- INLINE void timer_hw_irq(void)
- {
- /* Reset counters, this is needed to reset timer and interrupt flags */
- uint32_t dummy = PIVR;
- (void) dummy;
- }
-
- INLINE bool timer_hw_triggered(void)
- {
- return PIT_SR & BV(PITS);
- }
-
INLINE
void timer_hw_init(void)
+ void timer_hw_init(void)
{
sysirq_init();
{
sysirq_init();
- cpuflags_t flags;
+ cpu
_
flags_t flags;
MOD_CHECK(sysirq);
MOD_CHECK(sysirq);
@@
-86,12
+75,6
@@
IRQ_RESTORE(flags);
}
IRQ_RESTORE(flags);
}
- INLINE hptime_t timer_hw_hpread(void)
- {
- /* In the upper part of PIT_PIIR there is unused data */
- return PIIR & CPIV_MASK;
- }
-
#else
#error Unimplemented value for CONFIG_TIMER
#endif /* CONFIG_TIMER */
#else
#error Unimplemented value for CONFIG_TIMER
#endif /* CONFIG_TIMER */