projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sistema l'errore da me commesso in fase di conversione...
[bertos.git]
/
drv
/
at91
/
timer.c
diff --git
a/drv/at91/timer.c
b/drv/at91/timer.c
old mode 100755
(executable)
new mode 100644
(file)
index
2b396fa
..
d4de6a3
--- a/
drv/at91/timer.c
+++ b/
drv/at91/timer.c
@@
-23,12
+23,16
@@
#warning Very untested!
INLINE static void timer_hw_irq(void)
{
#warning Very untested!
INLINE static void timer_hw_irq(void)
{
- /* Reset counters, this is needed to
star
t timer and interrupt flags */
+ /* Reset counters, this is needed to
rese
t timer and interrupt flags */
volatile uint32_t dummy = PIT_PIVR;
}
volatile uint32_t dummy = PIT_PIVR;
}
+ INLINE static bool timer_hw_triggered(void)
+ {
+ return PIT_SR & BV(PITS);
+ }
- static void timer_hw_init(void)
+
INLINE
static void timer_hw_init(void)
{
cpuflags_t flags;
IRQ_SAVE_DISABLE(flags);
{
cpuflags_t flags;
IRQ_SAVE_DISABLE(flags);
@@
-47,7
+51,7
@@
IRQ_RESTORE(flags);
}
IRQ_RESTORE(flags);
}
- INLINE hptime_t timer_hw_hpread(void)
+ INLINE
static
hptime_t timer_hw_hpread(void)
{
/* In the upper part of PIT_PIIR there is unused data */
return PIT_PIIR & 0xfffff;
{
/* In the upper part of PIT_PIIR there is unused data */
return PIT_PIIR & 0xfffff;