blob: cf97e6609147cb75929369d7ffdc01e11c29a5d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* File: chipid.h
*
* Chip-ID parametres
*/
#ifndef CHIPID_H
#define CHIPID_H
/* Chipid parametres */
struct stlink_chipid_params {
char *dev_type;
char *ref_manual_id;
uint32_t chip_id;
enum stm32_flash_type flash_type;
uint32_t flash_size_reg;
uint32_t flash_pagesize;
uint32_t sram_size;
uint32_t bootrom_base;
uint32_t bootrom_size;
uint32_t option_base;
uint32_t option_size;
uint32_t flags;
uint32_t otp_base;
uint32_t otp_size;
struct stlink_chipid_params *next;
};
struct stlink_chipid_params *stlink_chipid_get_params(uint32_t chipid);
void dump_a_chip(struct stlink_chipid_params *dev);
void process_chipfile(char *fname);
void init_chipids(char *dir_to_scan);
#endif // CHIPID_H
|