Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

ulCriticalNesting

Posted by John Alfredo on May 28, 2009
Hi,

What does

( void ) ulCriticalNesting;

do? It is at the bottom of the portSAVE_CONTEXT macro for ARM7_LPC2000, where at the top of the macro I see

extern volatile unsigned portLONG ulCriticalNesting;


Thanks in advance,

John Alfredo

RE: ulCriticalNesting

Posted by Richard on May 28, 2009
I have not checked the code, but if its where I think it is then it is just to prevent the compiler generating a warning about an unused parameter. The parameter is in fact used, but only from inline asm where the compiler does not see it.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS