mirror of
https://github.com/google/pebble.git
synced 2025-04-30 15:21:41 -04:00
spelling: erasable
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
11a46154bc
commit
e33cd4add1
1 changed files with 3 additions and 3 deletions
|
@ -36,14 +36,14 @@
|
||||||
//
|
//
|
||||||
// This implements a simple circular logging scheme format.
|
// This implements a simple circular logging scheme format.
|
||||||
//
|
//
|
||||||
// The only assumption it makes is that you have at least two eraseable flash
|
// The only assumption it makes is that you have at least two erasable flash
|
||||||
// units. However, the more units (i.e sectors) that you have, the smaller % of
|
// units. However, the more units (i.e sectors) that you have, the smaller % of
|
||||||
// logs that will be erased when the log buffer fills.
|
// logs that will be erased when the log buffer fills.
|
||||||
//
|
//
|
||||||
// On each boot, we create a file to hold all the messages for that boot. This
|
// On each boot, we create a file to hold all the messages for that boot. This
|
||||||
// file is called a log generation or log.
|
// file is called a log generation or log.
|
||||||
//
|
//
|
||||||
// Within each eraseable unit multiple 'pages' exist. A log generation can span
|
// Within each erasable unit multiple 'pages' exist. A log generation can span
|
||||||
// one or more pages. Multiple log generations can be stored at any given
|
// one or more pages. Multiple log generations can be stored at any given
|
||||||
// time. The oldest pages will be removed as the log buffer wraps around.
|
// time. The oldest pages will be removed as the log buffer wraps around.
|
||||||
//
|
//
|
||||||
|
@ -138,7 +138,7 @@ _Static_assert((MAX_POSSIBLE_LOG_GENS >= 4) &&
|
||||||
_Static_assert(MAX_POSSIBLE_LOG_GENS < MAX_PAGE_CHUNK_ID,
|
_Static_assert(MAX_POSSIBLE_LOG_GENS < MAX_PAGE_CHUNK_ID,
|
||||||
"Invalid number of chunk ids for serial distance to work");
|
"Invalid number of chunk ids for serial distance to work");
|
||||||
_Static_assert((LOG_REGION_SIZE / ERASE_UNIT_SIZE) >= 2,
|
_Static_assert((LOG_REGION_SIZE / ERASE_UNIT_SIZE) >= 2,
|
||||||
"Need to have at least 2 eraseable units for flash logging to work");
|
"Need to have at least 2 erasable units for flash logging to work");
|
||||||
_Static_assert((LOG_REGION_SIZE % LOG_PAGE_SIZE) == 0,
|
_Static_assert((LOG_REGION_SIZE % LOG_PAGE_SIZE) == 0,
|
||||||
"The log page size must be divisible by the log region size");
|
"The log page size must be divisible by the log region size");
|
||||||
_Static_assert(((FLASH_REGION_DEBUG_DB_END % ERASE_UNIT_SIZE) == 0) &&
|
_Static_assert(((FLASH_REGION_DEBUG_DB_END % ERASE_UNIT_SIZE) == 0) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue