Module: xenomai-head Branch: master Commit: 5e7aab71e6e035317a91fe6c96e5dc75a1349453 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=5e7aab71e6e035317a91fe6c96e5dc75a1349453
Author: Philippe Gerum <r...@xenomai.org> Date: Tue Jun 16 01:48:08 2009 +0200 Make sure to program the next core timer shot in a canonical way --- include/asm-blackfin/hal.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/asm-blackfin/hal.h b/include/asm-blackfin/hal.h index c23667a..42b23a4 100644 --- a/include/asm-blackfin/hal.h +++ b/include/asm-blackfin/hal.h @@ -67,10 +67,11 @@ static inline void rthal_timer_program_shot(unsigned long delay) if (delay < 2) rthal_schedule_irq_head(RTHAL_TIMER_IRQ); else { - bfin_write_TCOUNT(delay - 1); + bfin_write_TCNTL(TMPWR); CSYNC(); - bfin_write_TCNTL(3); /* Oneshot mode, no auto-reload. */ + bfin_write_TCOUNT(delay - 1); CSYNC(); + bfin_write_TCNTL(TMPWR | TMREN); } } _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git