mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-01-22 01:30:31 -05:00
Make changes required for MPU enhancements (#1034)
1. Add macro configUSE_MPU_WRAPPERS_V1 to allow Demo compatibility with the old mpu wrapper . 2. Add Dummy xMPU_SETTINGS in portmacro.h file for Unit Tests . Signed-off-by: kar-rahul-aws <karahulx@amazon.com>
This commit is contained in:
parent
301ed5881b
commit
5d94b20aa8
2 changed files with 10 additions and 0 deletions
|
|
@ -164,6 +164,15 @@ typedef unsigned long UBaseType_t;
|
|||
volatile int fool_static2 = 0; \
|
||||
void vFunction( void * ( pvParameters ) )
|
||||
|
||||
/* We need to define it here because CMock does not recognize the
|
||||
* #if ( portUSING_MPU_WRAPPERS == 1 ) guard around xTaskGetMPUSettings
|
||||
* and then complains about the missing xMPU_SETTINGS type in the
|
||||
* generated mocks. */
|
||||
typedef struct MPU_SETTINGS
|
||||
{
|
||||
uint32_t ulDummy;
|
||||
} xMPU_SETTINGS;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue