-
Notifications
You must be signed in to change notification settings - Fork 609
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
fix macros for compiling in MDK5 with armcc #86
base: master
Are you sure you want to change the base?
Conversation
@@ -15,6 +15,10 @@ namespace mavlink { | |||
// Macro to define packed structures | |||
#ifdef __GNUC__ | |||
#define MAVPACKED( __Declaration__ ) __Declaration__ __attribute__((packed)) | |||
#elif defined __arm__ |
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.
Could you find a tighter constraint on the check here?
Does __UVISION_VERSION
work?
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.
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.
Could we use the macro __ARMCC_VERSION instead, which is the predefined macro for ARM KEIL compiler, while __UVISION_VERSION is related with MDK IDE environment.
On Mon, 19 Jun 2017, Zheng GONG wrote:
Could we use the macro __ARMCC_VERSION instead, which is the predefined
macro for ARM KEIL compiler, while __UVISION_VERSION is related with MDK IDE
environment.
So long as nobody else produces a compiler called "armcc" we're probably
good with that :-)
|
Tested it just now. Works well. |
Inspired by https://github.com/oceanstack/MAVLink_MDK_STM32, adjust some macro defines for armcc compiler in Kail uVision5 embed-system develpment environment.