kopia lustrzana https://github.com/stlink-org/stlink
Add a constant for the valid flash types range
Add a STLINK_FLASH_TYPE_MAX constant that can be used to check if a flash type (an integer) is in the range of valid enum stlink_flash_type values.pull/1169/head
rodzic
e4b17475d1
commit
929af2b047
|
@ -114,6 +114,7 @@ enum stlink_flash_type {
|
|||
STLINK_FLASH_TYPE_G4,
|
||||
STLINK_FLASH_TYPE_WB,
|
||||
STLINK_FLASH_TYPE_H7,
|
||||
STLINK_FLASH_TYPE_MAX,
|
||||
};
|
||||
|
||||
struct stlink_reg {
|
||||
|
|
Ładowanie…
Reference in New Issue