建立工程,成功创建两个虚拟串口
This commit is contained in:
20
source/OpenAMP/libmetal/lib/system/freertos/time.c
Normal file
20
source/OpenAMP/libmetal/lib/system/freertos/time.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
/*
|
||||
* @file freertos/time.c
|
||||
* @brief freertos libmetal time handling.
|
||||
*/
|
||||
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
#include <metal/time.h>
|
||||
|
||||
unsigned long long metal_get_timestamp(void)
|
||||
{
|
||||
return (unsigned long long)xTaskGetTickCount();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user