-
1. Re: Timer interrupt example?
OwenZ_26 Jan 28, 2019 6:34 PM (in response to chuntkincaid_3807591)1 of 1 people found this helpfulWhich device are you using? Could you try the API wiced_result_t wiced_rtos_init_timer( wiced_timer_t* timer, uint32_t time_ms, timer_handler_t function, void* arg ).
And there is some demo code under snip/bluetooth/serial_gatt_service.
-
2. Re: Timer interrupt example?
chuntkincaid_3807591 Jan 28, 2019 6:45 PM (in response to OwenZ_26)Hey OwenZ_26:
Thanks for the reply. For our device we are targeting the CYW43907 chip. I've checked out the rtos_timer function as you mentioned, but the time isn't granular enough. To support 100kHz we would need a timer of 5 usec - way smaller than a msec.
-
3. Re: Timer interrupt example?
OwenZ_26 Jan 28, 2019 7:31 PM (in response to chuntkincaid_3807591)Sorry, there isn't a microsecond timer interrupt for this device.
-
4. Re: Timer interrupt example?
chuntkincaid_3807591 Jan 28, 2019 8:33 PM (in response to OwenZ_26)Is there a way I could make one? Im imaging that there is a register that is incremented at each clock cycle, and when it hits a certain number (whatever corresponds to 1 or 5 or even 10 usec) I execute my ISR.
What is the shortest timer interrupt available on the 43907?
I see that the rtos_timer calls a threadx function _txe_timer_create - is there a lower bound on the amount of time this can watch for?
-
5. Re: Timer interrupt example?
OwenZ_26 Jan 29, 2019 1:20 AM (in response to chuntkincaid_3807591)The timer in 43907 can only get a millisecond interrupt. There isn't API to access the low level timer settings.