Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MISRA 8.5 with inline function
#1
Hi guys,

I have an header file with inline function, like:
Code:
inline void DIGIO_InOut(uint8_T type, uint16_T pid)
{
    /* Do something */
}
and, without MISRA 8.5 activated, I am able to use/export methods without problems.

Well, activating the rules, of course I can not keep body of inline function inside header file (just for info, I am using ghs compiler).
Is it possible to put declaration of inline function in and declaration in , like:
Code:
inline void DIGIO_InOut(uint8_T type, uint16_T pid);


inline void DIGIO_InOut(uint8_T type, uint16_T pid)
{
    /* Do something */
}
?

Thank you in advance,

Best regards,

Andrea Mocci, Embedded SW developer at Akhela s.r.l.
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)