flash/stm32h7x: avoid using magic numbers for device ids