[Cryptech-Commits] [sw/stm32] 01/03: fix some comments
git at cryptech.is
git at cryptech.is
Wed Jun 8 16:44:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
fredrik at thulin.net pushed a commit to branch master
in repository sw/stm32.
commit 3277ffbfe960da93c6f617005cc619958ed419d8
Author: Fredrik Thulin <fredrik at thulin.net>
AuthorDate: Tue Jun 7 10:24:20 2016 +0200
fix some comments
---
.../TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c | 4 ++--
.../TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c | 4 ++--
2 files changed, 4 insertions(+), 4 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 b46b158..fbd0adf 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
@@ -119,7 +119,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* huart)
DMA_Stream_TypeDef *hdma_instance;
if (huart->Instance == USART1) {
- /* This is huart_mgmt (USER_MGMT) */
+ /* This is huart_mgmt (MGMT UART) */
/* Peripheral clock enable */
__USART1_CLK_ENABLE();
@@ -137,7 +137,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* huart)
/* Peripheral DMA init*/
hdma_instance = DMA2_Stream2;
}
-
+
else if (huart->Instance == USART2) {
/* This is huart_user (USER UART) */
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 f9f21ef..7c30228 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
@@ -180,7 +180,7 @@ void USART1_IRQHandler(void)
* @brief This function handles UART interrupt request.
* @param None
* @retval None
- * @Note HAL_UART_IRQHandler will call HAL_UART_RxCpltCallback in main.c.
+ * @Note HAL_UART_IRQHandler will call HAL_UART_RxCpltCallback below.
*/
void USART2_IRQHandler(void)
{
@@ -208,7 +208,7 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
__weak void HAL_UART1_RxCpltCallback(UART_HandleTypeDef *huart)
{
/* NOTE: This function Should not be modified, when the callback is needed,
- the HAL_UART_TxCpltCallback could be implemented in the user file
+ the HAL_UART_RxCpltCallback could be implemented in the user file
*/
}
More information about the Commits
mailing list