diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2015-06-28 16:30:08 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2015-06-28 16:30:08 +0200 |
commit | c4678339908e413cbc6751cf863267807acafc85 (patch) | |
tree | 3692460e9e5b390f542a53b768599f1a012267dc /src/entropy/stm32f4xx_it.c | |
parent | f6818cce54b99eecfc0d67437095d5adb955ee2c (diff) |
Enable dual USART output functionality.
In other words, enable the USART connected to the serial port on
the Raspberry Pi GPIO header.
Sending a newline to either USART directs the generated entropy
to that USART.
Diffstat (limited to 'src/entropy/stm32f4xx_it.c')
-rw-r--r-- | src/entropy/stm32f4xx_it.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/entropy/stm32f4xx_it.c b/src/entropy/stm32f4xx_it.c index 231b4fc..d60a229 100644 --- a/src/entropy/stm32f4xx_it.c +++ b/src/entropy/stm32f4xx_it.c @@ -41,8 +41,6 @@ #include "stm32f4xx_it.h" #include "stm_init.h" -extern TIM_HandleTypeDef htim2; - /** @addtogroup STM32F4xx_HAL_Examples * @{ */ @@ -171,8 +169,7 @@ void SysTick_Handler(void) * @brief This function handles UART interrupt request. * @param None * @retval None - * @Note This function is redefined in "main.h" and related to DMA stream - * used for USART data transmission + * @Note HAL_UART_IRQHandler will call HAL_UART_TxCpltCallback in main.c. */ void USART1_IRQHandler(void) { @@ -180,6 +177,17 @@ void USART1_IRQHandler(void) } /** + * @brief This function handles UART interrupt request. + * @param None + * @retval None + * @Note HAL_UART_IRQHandler will call HAL_UART_TxCpltCallback in main.c. + */ +void USART2_IRQHandler(void) +{ + HAL_UART_IRQHandler(&huart2); +} + +/** * @brief This function handles DMA1 Stream 6 interrupt request. * @param None * @retval None |