mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 08:42:40 +01:00 
			
		
		
		
	Update SPEC.md
1.fix size in Layout of the CRC tag 2.update (size) to (size * 8)
This commit is contained in:
		
							
								
								
									
										18
									
								
								SPEC.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								SPEC.md
									
									
									
									
									
								
							| @@ -289,8 +289,8 @@ Layout of the name tag: | |||||||
| ``` | ``` | ||||||
|         tag                          data |         tag                          data | ||||||
| [--      32      --][---        variable length        ---] | [--      32      --][---        variable length        ---] | ||||||
| [1| 3| 8 | 10 | 10 ][---            (size)             ---] | [1| 3| 8 | 10 | 10 ][---          (size * 8)           ---] | ||||||
|  ^  ^  ^    ^    ^- size               ^- file name |  ^  ^  ^    ^    ^- size                   ^- file name | ||||||
|  |  |  |    '------ id |  |  |  |    '------ id | ||||||
|  |  |  '----------- file type |  |  |  '----------- file type | ||||||
|  |  '-------------- type1 (0x0) |  |  '-------------- type1 (0x0) | ||||||
| @@ -470,8 +470,8 @@ Layout of the inline-struct tag: | |||||||
| ``` | ``` | ||||||
|         tag                          data |         tag                          data | ||||||
| [--      32      --][---        variable length        ---] | [--      32      --][---        variable length        ---] | ||||||
| [1|- 11 -| 10 | 10 ][---            (size)             ---] | [1|- 11 -| 10 | 10 ][---           (size * 8)          ---] | ||||||
|  ^    ^     ^    ^- size               ^- inline data |  ^    ^     ^    ^- size                    ^- inline data | ||||||
|  |    |     '------ id |  |    |     '------ id | ||||||
|  |    '------------ type (0x201) |  |    '------------ type (0x201) | ||||||
|  '----------------- valid bit |  '----------------- valid bit | ||||||
| @@ -556,8 +556,8 @@ Layout of the user-attr tag: | |||||||
| ``` | ``` | ||||||
|         tag                          data |         tag                          data | ||||||
| [--      32      --][---        variable length        ---] | [--      32      --][---        variable length        ---] | ||||||
| [1| 3| 8 | 10 | 10 ][---            (size)             ---] | [1| 3| 8 | 10 | 10 ][---           (size * 8)          ---] | ||||||
|  ^  ^  ^    ^    ^- size               ^- attr data |  ^  ^  ^    ^    ^- size                    ^- attr data | ||||||
|  |  |  |    '------ id |  |  |  |    '------ id | ||||||
|  |  |  '----------- attr type |  |  |  '----------- attr type | ||||||
|  |  '-------------- type1 (0x3) |  |  '-------------- type1 (0x3) | ||||||
| @@ -764,9 +764,9 @@ Layout of the CRC tag: | |||||||
| ``` | ``` | ||||||
|         tag                                    data |         tag                                    data | ||||||
| [--      32      --][--      32      --|---        variable length        ---] | [--      32      --][--      32      --|---        variable length        ---] | ||||||
| [1| 3| 8 | 10 | 10 ][--      32      --|---            (size)             ---] | [1| 3| 8 | 10 | 10 ][--      32      --|---        (size * 8 - 32)        ---] | ||||||
|  ^  ^  ^    ^    ^            ^- crc                      ^- padding |  ^  ^  ^    ^    ^            ^- crc                             ^- padding | ||||||
|  |  |  |    |    '- size (12) |  |  |  |    |    '- size | ||||||
|  |  |  |    '------ id (0x3ff) |  |  |  |    '------ id (0x3ff) | ||||||
|  |  |  '----------- valid state |  |  |  '----------- valid state | ||||||
|  |  '-------------- type1 (0x5) |  |  '-------------- type1 (0x5) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user