mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 16:14:16 +01:00 
			
		
		
		
	Merge pull request #239 from pabigot/pr/20190723a
lfs: correct documentation on lookahead-related values
This commit is contained in:
		
							
								
								
									
										4
									
								
								lfs.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								lfs.h
									
									
									
									
									
								
							| @@ -204,7 +204,7 @@ struct lfs_config { | |||||||
|     // Size of the lookahead buffer in bytes. A larger lookahead buffer |     // Size of the lookahead buffer in bytes. A larger lookahead buffer | ||||||
|     // increases the number of blocks found during an allocation pass. The |     // increases the number of blocks found during an allocation pass. The | ||||||
|     // lookahead buffer is stored as a compact bitmap, so each byte of RAM |     // lookahead buffer is stored as a compact bitmap, so each byte of RAM | ||||||
|     // can track 8 blocks. Must be a multiple of 4. |     // can track 8 blocks. Must be a multiple of 8. | ||||||
|     lfs_size_t lookahead_size; |     lfs_size_t lookahead_size; | ||||||
|  |  | ||||||
|     // Optional statically allocated read buffer. Must be cache_size. |     // Optional statically allocated read buffer. Must be cache_size. | ||||||
| @@ -216,7 +216,7 @@ struct lfs_config { | |||||||
|     void *prog_buffer; |     void *prog_buffer; | ||||||
|  |  | ||||||
|     // Optional statically allocated lookahead buffer. Must be lookahead_size |     // Optional statically allocated lookahead buffer. Must be lookahead_size | ||||||
|     // and aligned to a 64-bit boundary. By default lfs_malloc is used to |     // and aligned to a 32-bit boundary. By default lfs_malloc is used to | ||||||
|     // allocate this buffer. |     // allocate this buffer. | ||||||
|     void *lookahead_buffer; |     void *lookahead_buffer; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user