Partition#

group bsp_partition

Manipulate the partition table.

Author

Alexandre Abadie alexandre.abadie@inria.fr

Copyright

Inria, 2023

Defines

DB_PARTITIONS_TABLE_MAGIC#

Magic number used at the beginning of the partition table.

DB_PARTITIONS_MAX_COUNT#

Maximum number of available partitions.

Functions

void db_read_partitions_table(db_partitions_table_t *partitions)#

Read partition table on flash.

Parameters:
  • partitions[out] Pointer to the runtime partition table

void db_write_partitions_table(const db_partitions_table_t *partitions)#

Write partition table on flash.

Parameters:
  • partitions[in] Pointer to the runtime partition table

struct db_partition_t#

Partition table entry.

Public Members

uint32_t address#

Start address of a partition.

uint32_t size#

Size of the partition.

struct db_partitions_table_t#

Partition table.

Public Members

uint32_t magic#

Magic number.

uint32_t length#

Current number of partitions in the table.

uint32_t active_image#

Active image to boot on.

db_partition_t partitions[DB_PARTITIONS_MAX_COUNT]#

List of partitions.