Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pka.c')
-rw-r--r--Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pka.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pka.c b/Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pka.c
index cf93e7ce5..f4ef20712 100644
--- a/Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pka.c
+++ b/Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pka.c
@@ -1770,46 +1770,7 @@ uint32_t PKA_GetOptBitSize_u8(uint32_t byteNumber, uint8_t msb)
{
uint32_t position;
-#if defined(CORE_CM0PLUS)
- if (msb > 0x7FU)
- {
- position = 8UL;
- }
- else if (msb > 0x3FU)
- {
- position = 7UL;
- }
- else if (msb > 0x1FU)
- {
- position = 6UL;
- }
- else if (msb > 0x0FU)
- {
- position = 5UL;
- }
- else if (msb > 0x07U)
- {
- position = 4UL;
- }
- else if (msb > 0x03U)
- {
- position = 3UL;
- }
- else if (msb > 0x01U)
- {
- position = 2UL;
- }
- else if (msb > 0x00U)
- {
- position = 1UL;
- }
- else
- {
- position = 0UL;
- }
-#else
position = 32UL - __CLZ(msb);
-#endif
return (((byteNumber - 1UL) * 8UL) + position);
}