forked from xuos/xiuos
				
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			944 B
		
	
	
	
		
			C
		
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			944 B
		
	
	
	
		
			C
		
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Armink, <armink.ztl@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: Apache-2.0
 | |
|  */
 | |
| 
 | |
| /**
 | |
|  * @file
 | |
|  * @brief configuration file
 | |
|  */
 | |
| 
 | |
| #ifndef _FDB_CFG_H_
 | |
| #define _FDB_CFG_H_
 | |
| 
 | |
| #ifdef FDB_USING_FAL_MODE
 | |
| /* the flash write granularity, unit: bit
 | |
|  * only support 1(nor flash)/ 8(stm32f2/f4)/ 32(stm32f1) */
 | |
| #define FDB_WRITE_GRAN                /* @note you must define it for a value */
 | |
| #endif
 | |
| 
 | |
| /* Using file storage mode by LIBC file API, like fopen/fread/fwrte/fclose */
 | |
| /* #define FDB_USING_FILE_LIBC_MODE */
 | |
| 
 | |
| /* Using file storage mode by POSIX file API, like open/read/write/close */
 | |
| /* #define FDB_USING_FILE_POSIX_MODE */
 | |
| 
 | |
| /* MCU Endian Configuration, default is Little Endian Order. */
 | |
| /* #define FDB_BIG_ENDIAN */ 
 | |
| 
 | |
| /* log print macro. default EF_PRINT macro is printf() */
 | |
| /* #define FDB_PRINT(...)              my_printf(__VA_ARGS__) */
 | |
| 
 | |
| /* print debug information */
 | |
| #define FDB_DEBUG_ENABLE
 | |
| 
 | |
| #endif /* _FDB_CFG_H_ */
 |