dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
unittest_init.c File Reference
#include "pios.h"
#include "pios_flashfs_logfs_priv.h"
#include "pios_flash_posix_priv.h"
#include "pios_flash_priv.h"

Go to the source code of this file.

Macros

#define NELEMENTS(x)   (sizeof(x) / sizeof(*(x)))
 

Variables

const struct flashfs_logfs_cfg flashfs_config_settings
 
const struct flashfs_logfs_cfg flashfs_config_waypoints
 
const struct pios_flash_posix_cfg flash_config
 
static const struct
pios_flash_sector_range 
posix_flash_sectors []
 
uintptr_t pios_posix_flash_id
 
static const struct pios_flash_chip pios_flash_chip_posix
 
const struct pios_flash_partition pios_flash_partition_table []
 
uint32_t pios_flash_partition_table_size = NELEMENTS(pios_flash_partition_table)
 

Macro Definition Documentation

#define NELEMENTS (   x)    (sizeof(x) / sizeof(*(x)))

Definition at line 6 of file unittest_init.c.

Variable Documentation

const struct pios_flash_chip pios_flash_chip_posix
static
Initial value:
= {
.chip_id = &pios_posix_flash_id,
.page_size = 256,
.sector_blocks = posix_flash_sectors,
}
static const struct pios_flash_sector_range posix_flash_sectors[]
Definition: unittest_init.c:33
uintptr_t pios_posix_flash_id
Definition: unittest_init.c:41
#define NELEMENTS(x)
Definition: unittest_init.c:6
const struct pios_flash_driver pios_posix_flash_driver

Definition at line 42 of file unittest_init.c.

const struct pios_flash_sector_range posix_flash_sectors[]
static
Initial value:
= {
{
.base_sector = 0,
.last_sector = 63,
.sector_size = FLASH_SECTOR_64KB,
},
}
#define FLASH_SECTOR_64KB

Definition at line 33 of file unittest_init.c.