aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/hal
diff options
context:
space:
mode:
authorJ08nY2020-03-03 15:19:33 +0100
committerJ08nY2020-03-03 15:19:33 +0100
commit714c7509d66afdacd8e9ce0cfe94ec8ae7f76883 (patch)
treed428063eb8eb14ec47d0d455a05f505051aa05be /pyecsca/codegen/hal
parent49018aa37f44b56292193b763ed4a8bb15389c30 (diff)
downloadpyecsca-codegen-714c7509d66afdacd8e9ce0cfe94ec8ae7f76883.tar.gz
pyecsca-codegen-714c7509d66afdacd8e9ce0cfe94ec8ae7f76883.tar.zst
pyecsca-codegen-714c7509d66afdacd8e9ce0cfe94ec8ae7f76883.zip
Add tests, for fixed Jacobian stuff.
Diffstat (limited to 'pyecsca/codegen/hal')
-rw-r--r--pyecsca/codegen/hal/stm32f3/stm32f3_hal_lowlevel.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/pyecsca/codegen/hal/stm32f3/stm32f3_hal_lowlevel.c b/pyecsca/codegen/hal/stm32f3/stm32f3_hal_lowlevel.c
index 6eb1999..362f3ab 100644
--- a/pyecsca/codegen/hal/stm32f3/stm32f3_hal_lowlevel.c
+++ b/pyecsca/codegen/hal/stm32f3/stm32f3_hal_lowlevel.c
@@ -114,6 +114,19 @@ uint32_t HAL_RCC_GetPCLK1Freq(void)
}
/**
+ * @brief Returns the PCLK2 frequency
+ * @note Each time PCLK2 changes, this function must be called to update the
+ * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
+ * @retval PCLK2 frequency
+ */
+uint32_t HAL_RCC_GetPCLK2Freq(void)
+{
+ /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
+ //return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2)>> POSITION_VAL(RCC_CFGR_PPRE2)]);
+ return 7372800U;
+}
+
+/**
* @brief Initializes the RCC Oscillators according to the specified parameters in the
* RCC_OscInitTypeDef.
* @param RCC_OscInitStruct pointer to an RCC_OscInitTypeDef structure that
@@ -617,19 +630,6 @@ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, ui
return HAL_OK;
}
-/**
- * @brief Returns the PCLK2 frequency
- * @note Each time PCLK2 changes, this function must be called to update the
- * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
- * @retval PCLK2 frequency
- */
-uint32_t HAL_RCC_GetPCLK2Freq(void)
-{
- /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
- //return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2)>> POSITION_VAL(RCC_CFGR_PPRE2)]);
- return 7372800;
-}
-
#define GPIO_MODE (0x00000003U)