[En-Nut-Discussion] Critical Section
Tim DeBaillie
debaillie at ciholas.com
Mon Oct 9 14:25:37 CEST 2006
I need to make a part of my software a critical section. Currently I am
using two interrupts (Timer Counter 1 and Interrupt 0) on the
AT91SAM7X256-EK. I have tried to use the AIC_IDCR and AIC_IECR registers
to disable and enable interrupts. I have also tried using the
NutIrqDisable and NutIrqEnable commands. Both give me a result of
constant rebooting.
Why doesn't the NutOS have a DisableGlobalInterrupts() function?
Is there a better way to implement this critical section. Semaphores
and mutexes are too dangerous.
Tim
--
Tim DeBaillie 812-476-2721 x102
Ciholas Technologies 812-476-2881
255 South Garvin St. debaillie at ciholas.com
Evansville, IN 47713 www.ciholas.com
More information about the En-Nut-Discussion
mailing list