stlink-common: Introduce type of flash controller enum
Having a type of flash information has some advantages:
- Make the code easier to read
- Make adding family derivatives easier (only add a new entry in header file)
- Make the backends error propagation easier to implement (less places to fix)
Signed-off-by:
Maxime Coquelin <mcoquelin.stm32@gmail.com>
parent
a9f00bc5
Please register or sign in to comment