1 of 1 people found this helpful
Which 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.
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.
Sorry, there isn't a microsecond timer interrupt for this device.
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?
The timer in 43907 can only get a millisecond interrupt. There isn't API to access the low level timer settings.