The below line will raise a Constraint_Error if Range_Check is enabled as the enumeration is not continuous, using 'Enum_Val instead would fix this. This error could exist in the other uses of 'Val which I have not checked and it could have potentially worse consequences than this one which will likely be harmless when Range_Check is disabled.
|
if Multi_ADC_Mode_Selections'Val (C_ADC_Periph.CCR.MULT) = Independent |
The below line will raise a Constraint_Error if Range_Check is enabled as the enumeration is not continuous, using 'Enum_Val instead would fix this. This error could exist in the other uses of 'Val which I have not checked and it could have potentially worse consequences than this one which will likely be harmless when Range_Check is disabled.
Ada_Drivers_Library/arch/ARM/STM32/drivers/stm32-adc.adb
Line 410 in b651d01