libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
desig_common_v1.c File Reference
Include dependency graph for desig_common_v1.c:

Go to the source code of this file.

Functions

uint16_t desig_get_flash_size (void)
 Read the on board flash size. More...
 
void desig_get_unique_id (uint32_t *result)
 Read the full 96 bit unique identifier Note: ST specifies that bits 31..16 are also reserved for future use. More...
 

Function Documentation

◆ desig_get_flash_size()

uint16_t desig_get_flash_size ( void  )

Read the on board flash size.

Returns
flash size in KB

Definition at line 22 of file desig_common_v1.c.

References DESIG_FLASH_SIZE_BASE.

◆ desig_get_unique_id()

void desig_get_unique_id ( uint32_t *  result)

Read the full 96 bit unique identifier Note: ST specifies that bits 31..16 are also reserved for future use.

Parameters
resultpointer to at least 3xuint32_ts (96 bits)

Definition at line 27 of file desig_common_v1.c.

References DESIG_UNIQUE_ID0, DESIG_UNIQUE_ID1, and DESIG_UNIQUE_ID2.

Referenced by desig_get_unique_id_as_dfu(), and desig_get_unique_id_as_string().

Here is the caller graph for this function: