diff options
Diffstat (limited to 'stm32cubemx')
-rw-r--r-- | stm32cubemx/Inc/main.h | 8 | ||||
-rw-r--r-- | stm32cubemx/Src/main.c | 2 | ||||
-rw-r--r-- | stm32cubemx/Src/stm32f1xx_it.c | 4 |
3 files changed, 3 insertions, 11 deletions
diff --git a/stm32cubemx/Inc/main.h b/stm32cubemx/Inc/main.h index 951e332..3078082 100644 --- a/stm32cubemx/Inc/main.h +++ b/stm32cubemx/Inc/main.h @@ -46,8 +46,6 @@ /* Includes ------------------------------------------------------------------*/ /* USER CODE BEGIN Includes */ -#include "stm32f1xx_hal_dma.h" -#include "stm32f1xx_hal_tim.h" /* USER CODE END Includes */ /* Private define ------------------------------------------------------------*/ @@ -58,12 +56,6 @@ extern "C" { #endif -void main_pre_init(); -void main_post_init(); -void main_loop(); - -void it_tim1(TIM_HandleTypeDef *htim1); - #ifdef __cplusplus } #endif diff --git a/stm32cubemx/Src/main.c b/stm32cubemx/Src/main.c index 0afb615..e0e60be 100644 --- a/stm32cubemx/Src/main.c +++ b/stm32cubemx/Src/main.c @@ -47,7 +47,7 @@ #include "usb_device.h" /* USER CODE BEGIN Includes */ - +#include "radio-controller.h" /* USER CODE END Includes */ /* Private variables ---------------------------------------------------------*/ diff --git a/stm32cubemx/Src/stm32f1xx_it.c b/stm32cubemx/Src/stm32f1xx_it.c index a71b015..02f62b2 100644 --- a/stm32cubemx/Src/stm32f1xx_it.c +++ b/stm32cubemx/Src/stm32f1xx_it.c @@ -36,7 +36,7 @@ #include "stm32f1xx_it.h" /* USER CODE BEGIN 0 */ -#include "main.h" +#include <radio-controller.h> /* USER CODE END 0 */ /* External variables --------------------------------------------------------*/ @@ -234,7 +234,7 @@ void USB_LP_CAN1_RX0_IRQHandler(void) void TIM1_TRG_COM_IRQHandler(void) { /* USER CODE BEGIN TIM1_TRG_COM_IRQn 0 */ - it_tim1(&htim1); + it_tim1(); /* USER CODE END TIM1_TRG_COM_IRQn 0 */ HAL_TIM_IRQHandler(&htim1); /* USER CODE BEGIN TIM1_TRG_COM_IRQn 1 */ |