15-05-2014, 01:51 PM
Hi guys,
I have an header file with inline function, like:
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:
?
Thank you in advance,
Best regards,
Andrea Mocci, Embedded SW developer at Akhela s.r.l.
I have an header file with inline function, like:
Code:
inline void DIGIO_InOut(uint8_T type, uint16_T pid)
{
/* Do something */
}
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>