-
Notifications
You must be signed in to change notification settings - Fork 3k
FlashIAP: Add a ROM end macro #7705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -28,6 +28,20 @@ | |||
#include "platform/SingletonPtr.h" | |||
#include "platform/PlatformMutex.h" | |||
#include "platform/NonCopyable.h" | |||
#include <algorithm> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be a bit of an overkill for 'max' - consider using a small macro/inline instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would agree if it was only used in the header file. However, as it is also used in the FlashIAP implementation, and assuming anyone that includes the header file would also use the FlashIAP class, then it shouldn't add any extra code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
/morph build |
Build : SUCCESSBuild number : 2746 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2377 |
/morph mbed2-build |
FlashIAP: Add a ROM end macro
Description
Add a macro for ROM end. To be used by flash related features, wishing to check whether code overlaps flash writes.
Pull request type