[En-Nut-Discussion] Critical Section

Lorenzo Lombardo lorenzo.lombardo at satbn.com
Mon Oct 9 14:40:28 CEST 2006


What you are looking for is:
NutEnterCritical();
NutExitCritical();

Check these out.
Regards
    Lorenzo
----- Original Message ----- 
From: "Tim DeBaillie" <debaillie at ciholas.com>
To: <en-nut-discussion at egnite.de>
Sent: Monday, October 09, 2006 2:25 PM
Subject: [En-Nut-Discussion] Critical Section


>
> 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
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.407 / Virus Database: 268.13.0/464 - Release Date: 05/10/2006
>
> 




More information about the En-Nut-Discussion mailing list