Files
libmetal/lib
Arnaud Pouliquen 289e4de876 lib: processor: hosted: Fix compilation warning in metal_cpu_yield
Fix cross inclusion between metal/sys.h and /processor/hosted/cpu.h

The fix consists in creating a cpu.c file to avoid inline declaration.

Issue reported by Zephyr twister CI test:

libmetal/lib/include/metal/processor/hosted/cpu.h:19:9:
error: implicit declaration of function ‘metal_wait_usec’
   19 |         metal_wait_usec(10);
      |         ^~~~~~~~~~~~~~~
libmetal/lib/include/metal/system/zephyr/sys.h:46:20:
error: conflicting types for ‘metal_wait_usec’; have ‘void(uint32_t)’
   46 | static inline void metal_wait_usec(uint32_t usec_to_wait)
      |                    ^~~~~~~~~~~~~~~
libmetal/lib/include/metal/processor/hosted/cpu.h:19:9:
note: previous implicit declaration of ‘metal_wait_usec’ with
type ‘void(uint32_t)’ {aka ‘void(unsigned int)’}
   19 |         metal_wait_usec(10);
      |         ^~~~~~~~~~~~~~~

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2024-10-25 23:23:01 +02:00
..
2024-10-21 13:57:15 +02:00
2024-10-21 13:57:15 +02:00
2021-12-16 18:02:49 +01:00
2024-10-21 13:57:15 +02:00
2021-12-16 18:02:49 +01:00
2022-01-04 10:05:40 +01:00
2021-12-16 18:02:49 +01:00
2024-05-20 09:33:08 +02:00
2021-12-16 18:02:49 +01:00
2021-12-16 18:02:49 +01:00