cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

wewu_1392881
New Contributor II

Can i add while(1) loop in the xxx_Create and pet the watchdog in the while(1) loop?

I'm developing BLE application firmware based on WICED SDK, receive data packet from UART and response the command. For now parsering the receive data packet and response are all done in the app_puart_interrupt_callback, normally we do as less as possible in the interrupt and exit the interrupt, doing with the command in application loop. I'm worrying about this mechanism may have some issues.

0 Likes
1 Solution
wewu_1392881
New Contributor II

Not yet. According to Kilian's explanation, the callback is not handled in interrupt routine.

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

> , normally we do as less as possible in the interrupt

The interrupt callbacks are not executed in an interrupt context, instead they are called sequentially to all the other callbacks. See here: interrupt latency

Regards,

Kilian

0 Likes
Anonymous
Not applicable

Hi dianke02,

Did you get a chance to check out the interrupt latency that Kilian linked?

-Kevin

0 Likes
wewu_1392881
New Contributor II

Not yet. According to Kilian's explanation, the callback is not handled in interrupt routine.

View solution in original post

0 Likes