aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-10-11 21:26:27 -0400
committerPaul Selkirk <paul@psgd.org>2017-10-11 21:26:27 -0400
commitb159bf0bb24a99c7d3ff1b3855f840add63198e5 (patch)
tree9e3861da94bb69412025ef51db5a686d717d7a84 /libraries
parent4026cce22d330d3b9c4b218dd2e19d4f60412e05 (diff)
Cleanup 'unused parameter' warnings, a couple of which are actual coding errors.
Diffstat (limited to 'libraries')
-rw-r--r--libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c4
-rw-r--r--libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
index fa08bb5..f64e6ce 100644
--- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
+++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
@@ -87,19 +87,23 @@ void HAL_RNG_MspDeInit(RNG_HandleTypeDef* hrng)
void HAL_SRAM_MspInit(SRAM_HandleTypeDef* hsram)
{
+ hsram = hsram;
}
void HAL_SRAM_MspDeInit(SRAM_HandleTypeDef* hsram)
{
+ hsram = hsram;
}
void HAL_SDRAM_MspInit(SDRAM_HandleTypeDef* hsdram)
{
+ hsdram = hsdram;
}
void HAL_SDRAM_MspDeInit(SDRAM_HandleTypeDef* hsdram)
{
+ hsdram = hsdram;
}
void HAL_UART_MspInit(UART_HandleTypeDef* huart)
diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
index 32b7707..d3bafb2 100644
--- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
+++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
@@ -143,6 +143,7 @@ __weak void HAL_UART1_RxCpltCallback(UART_HandleTypeDef *huart)
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_UART1_RxCpltCallback could be implemented in the user file
*/
+ huart = huart;
}
__weak void HAL_UART2_RxCpltCallback(UART_HandleTypeDef *huart)
@@ -150,6 +151,7 @@ __weak void HAL_UART2_RxCpltCallback(UART_HandleTypeDef *huart)
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_UART2_RxCpltCallback could be implemented in the user file
*/
+ huart = huart;
}
/**
@@ -175,6 +177,7 @@ __weak void HAL_UART1_RxHalfCpltCallback(UART_HandleTypeDef *huart)
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_UART1_RxHalfCpltCallback could be implemented in the user file
*/
+ huart = huart;
}
__weak void HAL_UART2_RxHalfCpltCallback(UART_HandleTypeDef *huart)
@@ -182,10 +185,13 @@ __weak void HAL_UART2_RxHalfCpltCallback(UART_HandleTypeDef *huart)
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_UART2_RxHalfCpltCallback could be implemented in the user file
*/
+ huart = huart;
}
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
{
+ huart = huart;
+
/* I dunno, just trap it for now */
Error_Handler();
}