建立工程,成功创建两个虚拟串口
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
collect (PROJECT_LIB_HEADERS atomic.h)
|
||||
collect (PROJECT_LIB_HEADERS cpu.h)
|
||||
|
||||
# vim: expandtab:ts=2:sw=2:smartindent
|
||||
15
source/OpenAMP/libmetal/lib/processor/aarch64/atomic.h
Normal file
15
source/OpenAMP/libmetal/lib/processor/aarch64/atomic.h
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
/*
|
||||
* @file gcc/atomic.h
|
||||
* @brief GCC specific atomic primitives for libmetal.
|
||||
*/
|
||||
|
||||
#ifndef __METAL_AARCH64_ATOMIC__H__
|
||||
#define __METAL_AARCH64_ATOMIC__H__
|
||||
|
||||
#endif /* __METAL_ARM_ATOMIC__H__ */
|
||||
17
source/OpenAMP/libmetal/lib/processor/aarch64/cpu.h
Normal file
17
source/OpenAMP/libmetal/lib/processor/aarch64/cpu.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
/*
|
||||
* @file cpu.h
|
||||
* @brief CPU specific primatives
|
||||
*/
|
||||
|
||||
#ifndef __METAL_AARCH64_CPU__H__
|
||||
#define __METAL_AARCH64_CPU__H__
|
||||
|
||||
#define metal_cpu_yield() asm volatile("yield")
|
||||
|
||||
#endif /* __METAL_AARCH64_CPU__H__ */
|
||||
Reference in New Issue
Block a user