2012-08-01 10:48:24
by Denis Efremov
Sorry. My mistake. In this case it seems that sleep functions can be called from thread_fn, since interrupt line is disabled globally. And nothing bad will happen if you know that device can be blocked for relatively long time.