Commit Graph
13 Commits
Author SHA1 Message Date
Gerard Marull-Paretas e9d4531300 zephyr: update include paths to use <zephyr/...>
Zephyr has prefixed all of its includes with <zephyr/...>. While the old
mode can still be used (CONFIG_LEGACY_INCLUDE_PATH) and is still enabled
by default, it's better to be prepared for its removal in the future.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-05-16 10:27:20 +02:00
Luz Paz 210b9ec37a Fix various typos
Found via `codespell -q 3 -S ./scripts/spelling.txt`

Signed-off-by: luz paz <luzpaz@users.noreply.github.com>
2022-01-04 10:05:40 +01:00
Arnaud Pouliquen 63ffcdd958 test: zephyr: fix 'errno' undeclared
The return value should be negative.
Added inclusion of errno.h to avoid an unresolved symbol
error when linking the  test.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-10-20 09:05:25 +02:00
Arnaud Pouliquen a352cc678a test: Zephyr: replace k_mem_pool deprecated API
Since Zephyr2.4.0 the k_mem_pool is deprecated and replaced by k_heap

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2020-12-15 12:30:56 -08:00
Arnaud Pouliquen 53c48a1e48 test: fix zephyr test
Fix zephyr test for zephyr V2.2 compatibility.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
2020-10-16 11:48:32 +02:00
Wendy Liang d5e2182ac8 test: zephyr: remove IRQ
As Zephyr's IRQ infrastructure is not lined up with libmetal
IRQ infrastructure. And the drivers in Zephyr declare ISR
at compile time, we can have libmetal IRQ handling on top of
of Zephyr, but it will introduce unnecessary overhead.

Signed-off-by: Wendy Liang <wendy.liang@xilinx.com>
2019-01-30 10:46:37 -08:00
Wendy Liang 7a2950098f test: update irq test for irq registration API change
The IRQ registration API has been updated to support single
handler per IRQ. The IRQ test is updated for this change.

Signed-off-by: Wendy Liang <wendy.liang@xilinx.com>
2019-01-30 10:46:37 -08: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
Kumar Gala 95526e280b tests: zephyr: use default params for test
Now that we have a a zephyr specific METAL_INIT_DEFAULTS we can just
use the default param passed to metal_init like all the other systems do
rather than specifying a unique metal_params to Zephyr.  This gets the
Zephyr logger used for output.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-04-09 14:22:46 -05:00
Kristian Klomsten Skordal 1114a0754a test: remove the Zephyr log handler from test
Removes the custom log handler provided by the Zephyr test application.

Signed-off-by: Kristian Klomsten Skordal <kristian.skordal@nordicsemi.no>
2018-04-05 10:19:22 -07:00
Kumar Gala 3161b1fe07 mutex: cleanup how we init mutexes
There are assumptions that one could directly assign a value to init a
mutex which shouldn't be made.  Instead we should use the
metal_mutex_init call to setup the mutex.  Also for static or global
defines of a mutex we need a way to set them up.  So we introduce
METAL_MUTEX_DEFINE(m) for that case.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-03-30 05:45:33 -05:00
Wendy Liang eb22bae5b8 Fix license text for files in lib/system/zephyr
Put Linaro to the license text in the files of libmetal
Zephyr implementation.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
2018-03-27 10:44:00 -07:00
Wendy Liang 1901f5c119 test: Add zephyr test
Add Zephyr system to libmetal test.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
2017-12-30 22:01:44 -08:00