8 Commits

Author SHA1 Message Date
Arnaud Pouliquen
d3a27c1454 lib: fix file headers for doxygen generation
- start by "/**",
- fix file relative path,
- fix typos,

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2026-01-13 10:33:04 +01:00
Arnaud Pouliquen
cca70035d3 lib: fix compilation error with gcc++
The header files including must be outside of the extern "C" { statement.
To be able to be included from C++ code.

Else such error can occur (reproduce on STM32MP1Cube distribution)
gcc/arm-none-eabi/include/c++/10.2.1/atomic:1467:3: error: template
with C linkage
 1467 |   template<typename _ITp>
      |   ^~~~~~~~
In file included from STM32CubeMP1/Middlewares/Third_Party/OpenAMP/
                      open-amp/lib/include/openamp/rpmsg.h:16,
                 from STM32CubeMP1/Middlewares/Third_Party/OpenAMP/
                      open-amp/lib/include/openamp/open_amp.h:11,
                 from empty_main.cpp:1:
STM32CubeMP1/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/
metal/mutex.h:16:1: note: 'extern "C"' linkage
started here
   16 | extern "C" {
      | ^~~~~~~~~~

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-12-16 18:02:49 +01:00
Arnaud Pouliquen
28da4e8183 lib: fix minor coding style
Fix coding style reported by do_checkpatch.sh

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
2020-04-08 17:07:02 +02:00
Wendy Liang
9520117eee Covert license text to use SPDX tags
Replace the license text with SPDX tags

Signed-off-by: Wendy Liang <jliang@xilinx.com>
2018-04-09 23:51:01 -07:00
Wendy Liang
a7b357357b change metal include from "metal/xxx.h" to <metal/xxx.h>
This change will save compilation time from looking into the directory
containing the current file for the header files.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
2017-12-13 22:34:01 -08:00
Sam Sortais
6a9567c188 condvar: change mutex struct to typedef
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
2016-08-10 11:08:29 -07:00
Sam Sortais
652303890e have includes use consistent format
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
2016-08-03 13:24:05 -07:00
Wendy Liang
7b66023cd3 Add condition variable APIs declaration
We declare condition variable APIs in lib/condition.h

We declare the following APIs:
* metal_condition_init: condition variable dynamic initialization
* metal_condition_signal: signal one waiter
* metal_condition_broadcast: signal all the waiters
* metal_condition_wait: wait on the specified condition variable

Signed-off-by: Wendy Liang <jliang@xilinx.com>
2016-07-01 16:54:39 -07:00