-
1. Re: CYW20819/ timeout_ms value in "wiced_rtos_wait_for_event_flags"
DheerajP_41 Oct 29, 2019 2:56 AM (in response to YoTa_1693656)Hi Yoshinori Takano,
It seems to be msec only. Not 10msec.
How did you evaluate it? Could you please share your code with me, so that I can take a look at it.
Thanks,
-Dheeraj
-
2. Re: CYW20819/ timeout_ms value in "wiced_rtos_wait_for_event_flags"
YoTa_1693656 Nov 4, 2019 8:45 PM (in response to DheerajP_41)Hello Dheeraj-san
We tried to evaluate it with an attachment source code. The timeout value sets 50 msec, we expected that LED1 blinked per 50 mesc. But actual behavior looks like 500 msec. It was observed by oscilloscope.
====
static void threadFunctionBlinkLed(uint32_t arg ){
int count = 1;
for(;;){
uint32_t flagSet;
wiced_rtos_wait_for_event_flags(eventHandleBlinkLed, 1, &flagSet, WICED_TRUE, WAIT_FOR_ANY_EVENT, 50);
count ^= 1;
wiced_hal_gpio_set_pin_output(WICED_GET_PIN_FOR_LED(1), count);
}
}
====
Thanks,
Yoshinori
-
hal_gpio.c.zip 3.2 K
-
-
3. Re: CYW20819/ timeout_ms value in "wiced_rtos_wait_for_event_flags"
DheerajP_41 Nov 11, 2019 2:41 AM (in response to YoTa_1693656)1 of 1 people found this helpfulHi Yoshinori Takano ,
I could reproduce similar issue at my side regarding the msec timeout. I believe, the issue is with the API which is not accurately setting the timeout. You can workaround by factoring it down to an appropriate value.
We will communicate the issue with our software team and will be fixing it in the future software releases.
Thanks,
-Dheeraj