To improve readability I wrapped some code in an interrupt in a function. I don't want the overhead of calling the function from the interrupt, so I put the function in the same C file, and declared the function as inline. However, whenever I compile the advice window tells me I should inline the function. I have tried using "__inline" as well as "inline", and I still get the same advice. I also made sure there are no calls to other functions inside the inlined functions. The following is the function:
inline void UartRecvByte(void);
...
inline void UartRecvByte(void)
{
...
//Do stuff
...
}
Is this function inlined, and should I just ignore the advice, or is something possibly preventing the function from being inlined?