From 2cf1b8b52374692a8d97f8a49f89236a97804ff6 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 17 May 2021 12:08:20 +0300 Subject: [PATCH] __attribute__((always_inline)) comment --- src/hal/_rules.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hal/_rules.txt b/src/hal/_rules.txt index 65c89c5..9dae508 100644 --- a/src/hal/_rules.txt +++ b/src/hal/_rules.txt @@ -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. 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