Hello; My portmacro.h file include this function ~~~ Description Resource Path Location Type 'configMAXSYSCALLINTERRUPT_PRIORITY' undeclared (first use in this function) portmacro.h /osiloskop/src line 139 C/C++ Problem
~~~ On the other hand my freertosconfig.h does not include this function FreertosConfig.h is include this: ~~~
/* Co-routine definitions. */
/* Software timer definitions. */
/* Set the following definitions to 1 to include the API function, or zero to exclude the API function. */
/* This demo makes use of one or more example stats formatting functions. These format the raw data provided by the uxTaskGetSystemState() function in to human readable ASCII form. See the notes in the implementation of vTaskList() within FreeRTOS/Source/tasks.c for limitations. */
/* The private watchdog is used to generate run time stats. */
extern XScuWdt xWatchDogInstance; extern void vInitialiseTimerForRunTimeStats( void );
/* The size of the global output buffer that is available for use when there are multiple command interpreters running at once (for example, one on a UART and one on TCP/IP). This is done to prevent an output buffer being defined by each implementation - which would waste RAM. In this case, there is only one command interpreter running. */
/* Normal assert() semantics without relying on the provision of an assert.h header file. */ void vAssertCalled( const char * pcFile, unsigned long ulLine );
/* If configTASKRETURNADDRESS is not defined then a task that attempts to return from its implementing function will end up in a "task exit error" function - which contains a call to configASSERT(). However this can give GCC some problems when it tries to unwind the stack, as the exit error function has nothing to return to. To avoid this define configTASKRETURNADDRESS to 0. */
/****** Hardware specific settings. *******************************************/
/* * The application must provide a function that configures a peripheral to * create the FreeRTOS tick interrupt, then define configSETUPTICKINTERRUPT() * in FreeRTOSConfig.h to call the function. This file contains a function * that is suitable for use on the Zynq MPU. FreeRTOSTickHandler() must * be installed as the peripheral's interrupt handler. */ void vConfigureTickInterrupt( void );
void vClearTickInterrupt( void );
/* The following constant describe the hardware, and are correct for the Zynq MPU. */
/****** Network configuration settings - only used when the lwIP example is built. See the page that documents this demo on the http://www.FreeRTOS.org website for more information. ***********************************************/
/* The priority for the task that unblocked by the MAC interrupt to process received packets. */
/* The priority of the task that runs the lwIP stack. */
/* The priority of the task that uses lwIP sockets to provide a simple command line interface. */
/* MAC address configuration. */
/* IP address configuration. */
/* Netmask configuration. */
~~~ so I have this error: My file version are same (8.2.1)
It is right then, it is not defined in your FreeRTOSConfig.h.
Any macro that is prefixed 'config' is a user editable macro that can be placed in the FreeRTOSConfig.h. If a macro is missing from FreeRTOSConfig.h then in many cases it will be defaulted, but not in the case of configMAXSYSCALLINTERRUPT_PRIORITY because it is very much dependent on the chip you are using.
Did you try Googling configMAXSYSCALLINTERRUPTPRIORITY? That is normally the first thing to be done. When I try this the first link I get is this: http://www.freertos.org/a00110.html then searching this page for configMAXSYSCALLINTERRUPTPRIORITY I find this information: http://www.freertos.org/a00110.html#kernel_priority