Skip to contentSkip to conversation

generic timers in ath9k ?

ath9k-devel thomas 1 participant 1 message Feb 23, 2012

lore
Share & tools
lore

thomas

author
#0 lore raw

Hi all,

In the last hours I tried to set up a simple example, where I can call a function triggered by the generic timers in ath9k.
But I can not get it to work.. so maybe you can give me a hint. Here is what I have tried the following:

sc->reg_timer = ath_gen_timer_alloc(sc->sc_ah, reg_timer, reg_timer, (void *) sc, AR_FIRST_NDP_TIMER + 1);

ath9k_gen_timer_start(sc->sc_ah, sc->reg_timer, 0, 1000000); or
ath9k_hw_gen_timer_start(sc->sc_ah, sc->reg_timer, 0, 1000000);

It seems that the interrupt is not triggered and no bit is set in ah->intr_gen_timer_trigger.
Did I miss here something ???

Thx for helping,

Thomas

ps: In principle I would like to trigger my own function faster than the cpu timer interrupt. And therefore I plan to use the hardware timers on the Atheros 802.11n hardware and register my functions to one of the generic timers. From the code, I saw that the only peace of code that make use of the generic timers is the bluetooth coexistence part. But even this seem not to be triggered.