FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [January 2012 Threads] mpu_wrappers.h bug?Posted by Shawn Gardner on January 27, 2012 For v7.1.0, should line 59 be:
#if( portUSING_MPU_WRAPPERS == 1 )
instead of :
#ifdef portUSING_MPU_WRAPPERS
since it will always be defined as either 1 or 0?
Thanks
RE: mpu_wrappers.h bug?Posted by Richard on January 27, 2012 I have to admit it is a little while since I tested the MPU version, but I have done a global search on this and I think the line of code you refer to is actually correct.
Everywhere else where the macro is tested it is tested against 1 or 0 - so the macro must be defined. It is, however, only defined when using a port of FreeRTOS that supports the MPU, so will not be defined at all for other ports. The line you have highlighted checks if it is defined, and if it is, does what it needs to do (if it is defined it can only be defined as 1). If it is not defined it defines it as 0 in the #else part line 129.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|