[En-Nut-Discussion] Harware SPI usage

Ole Reinhardt ole.reinhardt at embedded-it.de
Mon Nov 12 13:34:03 CET 2007


Hi,

> Definitely not. Nut/OS is a cooperative tasker. EnterCritical blocks 
> preemptive context switching. Only interrupts are preemptive with 
> Nut/OS, threads are not. As long as your thread is not blocked by I/O or 
> timer, the thread context will not switch.

At least the at91_spi.c driver seems to be blocking. In this case it
could be possible to trigger a race condition.

Bye,

Ole


-- 
 _____________________________________________________________
|                                                             |
| Embedded-IT          Hard- und Softwarelösungen             |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
| Germany              Web:         http://www.embedded-it.de |
|                      UstID / VAT:       DE198944716         |
|_____________________________________________________________|




More information about the En-Nut-Discussion mailing list