Comment vPortEnterCritical/vPortExitCritical functions
This commit is contained in:
parent
df9e9bf9a4
commit
8e174aa518
2 changed files with 7 additions and 17 deletions
|
@ -199,6 +199,13 @@ void vPortEndScheduler( void )
|
||||||
variable. */
|
variable. */
|
||||||
static unsigned portBASE_TYPE uxCriticalNesting = 0;
|
static unsigned portBASE_TYPE uxCriticalNesting = 0;
|
||||||
|
|
||||||
|
/* These nested vPortEnter/ExitCritical macros are called by SDK
|
||||||
|
* libraries in libmain, libnet80211, libpp
|
||||||
|
*
|
||||||
|
* It may be possible to replace the global nesting count variable
|
||||||
|
* with a save/restore of interrupt level, although it's difficult as
|
||||||
|
* the functions have no return value.
|
||||||
|
*/
|
||||||
void vPortEnterCritical( void )
|
void vPortEnterCritical( void )
|
||||||
{
|
{
|
||||||
portDISABLE_INTERRUPTS();
|
portDISABLE_INTERRUPTS();
|
||||||
|
|
|
@ -4,23 +4,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
|
|
||||||
/* Enable/Disable Interrupts
|
|
||||||
|
|
||||||
Called from many of the linked libraries to protect critical sections.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
void vPortEnterCritical( void )
|
|
||||||
{
|
|
||||||
portDISABLE_INTERRUPTS();
|
|
||||||
}
|
|
||||||
|
|
||||||
void vPortExitCritical( void )
|
|
||||||
{
|
|
||||||
portEXIT_CRITICAL();
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* libc memory management functions.
|
/* libc memory management functions.
|
||||||
|
|
||||||
Many of these are linked from the RTOS SDK blob libraries.
|
Many of these are linked from the RTOS SDK blob libraries.
|
||||||
|
|
Loading…
Reference in a new issue