建立工程,成功创建两个虚拟串口
This commit is contained in:
		
							
								
								
									
										3
									
								
								source/OpenAMP/libmetal/lib/compiler/iar/CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								source/OpenAMP/libmetal/lib/compiler/iar/CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| collect (PROJECT_LIB_HEADERS compiler.h) | ||||
|  | ||||
| # vim: expandtab:ts=2:sw=2:smartindent | ||||
							
								
								
									
										27
									
								
								source/OpenAMP/libmetal/lib/compiler/iar/compiler.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								source/OpenAMP/libmetal/lib/compiler/iar/compiler.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| /* | ||||
|  * Copyright (c) 2018, ST Microelectronics. All rights reserved. | ||||
|  * | ||||
|  * SPDX-License-Identifier: BSD-3-Clause | ||||
|  */ | ||||
|  | ||||
| /* | ||||
|  * @file	iar/compiler.h | ||||
|  * @brief	IAR specific primitives for libmetal. | ||||
|  */ | ||||
|  | ||||
| #ifndef __METAL_IAR_COMPILER__H__ | ||||
| #define __METAL_IAR_COMPILER__H__ | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
| #endif | ||||
|  | ||||
| #define restrict __restrict__ | ||||
| #define metal_align(n) __attribute__((aligned(n))) | ||||
| #define metal_weak __attribute__((weak)) | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
| #endif | ||||
|  | ||||
| #endif /* __METAL_IAR_COMPILER__H__ */ | ||||
		Reference in New Issue
	
	Block a user
	 ranchuan
					ranchuan