__attribute__((always_inline)) comment

pull/11/head
Alex Voinea 2021-05-17 12:08:20 +03:00
parent d2d275da25
commit 2cf1b8b523
1 changed files with 3 additions and 0 deletions

View File

@ -2,3 +2,6 @@ Use a class whenever you need to store some context data along with the function
A typical scenario is the UART which uses some RX and TX buffers. A typical scenario is the UART which uses some RX and TX buffers.
Use a simple C-style otherwise, but it is advised to wrap the interface into a namespace as proposed in existing header files. Use a simple C-style otherwise, but it is advised to wrap the interface into a namespace as proposed in existing header files.
`__attribute__((always_inline)) inline` was necessary for most functions because the generated code wasn't efficient enough otherwise.
It will be interesting when the STM32 hal will have to be included as well. Hopefully it won't be a nightmare :P