How to make mc9s08mp16.h 100% MISRA C Compliant

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make mc9s08mp16.h 100% MISRA C Compliant

Jump to solution
449 Views
parvezshaikh
Contributor I

Hi,

 

When I run MISRA C checking tool on the CodeWarrior generated header file mc9s08mp16.h, I am getting a warning "Macros shall not be #define'd within a block".

How can I solve this warning in  mc9s08mp16.h, so that mc9s08mp16.h is 100% MISRA C compliant without any exception.

Labels (1)
Tags (1)
0 Kudos
1 Solution
109 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Parvez,

The official approach is to generate the header file to comply with the C90 standard. There is no official plan to make a MISRA compliant header.

user need make the MISRA compliant header file oneself.

=================================================

this answer is for you, if it helps, please click on "correct answer " button. thanks!

Best Regards,

ZhangJun

View solution in original post

0 Kudos
1 Reply
110 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Parvez,

The official approach is to generate the header file to comply with the C90 standard. There is no official plan to make a MISRA compliant header.

user need make the MISRA compliant header file oneself.

=================================================

this answer is for you, if it helps, please click on "correct answer " button. thanks!

Best Regards,

ZhangJun

View solution in original post

0 Kudos