lib: update libmetal to release v2020.10.0
Origin: https://github.com/OpenAMP/libmetal commit: 0fd86b230c4a0ea918b2a4b0edb6a4ffafee8b48 Status: merge libmetal new version after removing useless dirs. Release Description: https://github.com/OpenAMP/libmetal/releases/tag/v2020.10.0 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
0b23894a04
commit
9d4ee2c3cf
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required (VERSION 2.6)
|
||||
cmake_minimum_required (VERSION 3.0.2)
|
||||
if (POLICY CMP0048)
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
|
|
@ -71,7 +71,11 @@ example toolchain file:
|
|||
$ cmake <libmetal_source> -DCMAKE_TOOLCHAIN_FILE=<toolchain_file>
|
||||
$ make VERBOSE=1 DESTDIR=<libmetal_install> install
|
||||
```
|
||||
|
||||
* Note: When building baremetal for Xilinx 2018.3 or earlier environments,
|
||||
add -DXILINX_PRE_V2019 to your CMake invocation. This will include the
|
||||
xilmem and xilstandalone libraries in your build. These libraries were
|
||||
removed in 2019.1.
|
||||
|
||||
### Building for Zephyr
|
||||
The [zephyr-libmetal](https://github.com/zephyrproject-rtos/libmetal)
|
||||
implements the libmetal for the Zephyr project. It is mainly a fork of this repository, with some add-ons for integration in the Zephyr project.
|
||||
|
|
|
@ -34,6 +34,10 @@ extern "C" {
|
|||
#define METAL_PACKED_BEGIN
|
||||
#define METAL_PACKED_END __attribute__((__packed__))
|
||||
|
||||
#ifndef __deprecated
|
||||
#define __deprecated __attribute__((deprecated))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -24,6 +24,10 @@ extern "C" {
|
|||
#define METAL_PACKED_BEGIN __packed
|
||||
#define METAL_PACKED_END
|
||||
|
||||
#ifndef __deprecated
|
||||
#define __deprecated __attribute__((deprecated))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -25,9 +25,9 @@ extern "C" {
|
|||
|
||||
static inline int __metal_sleep_usec(unsigned int usec)
|
||||
{
|
||||
const TickType_t xDelay = usec / portTICK_PERIOD_MS;
|
||||
const TickType_t xDelay = ((usec/1000) / portTICK_PERIOD_MS);
|
||||
|
||||
vTaskDelay(xDelay);
|
||||
vTaskDelay(xDelay ? xDelay : 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
|
||||
unsigned long long metal_get_timestamp(void)
|
||||
{
|
||||
return (unsigned long long)xTaskGetTickCount();
|
||||
return (unsigned long long)(1000 * portTICK_PERIOD_MS * xTaskGetTickCount());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue