diff --git a/cube/Core/Src/stm32f1xx_it.c b/cube/Core/Src/stm32f1xx_it.c index a2b612a..aa1004a 100644 --- a/cube/Core/Src/stm32f1xx_it.c +++ b/cube/Core/Src/stm32f1xx_it.c @@ -49,7 +49,9 @@ /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ -/* USER CODE BEGIN PFP */ +/* USER CODE BEGIN PFP */ +void mbusCommISR(); + /* USER CODE END PFP */ diff --git a/cube/Makefile b/cube/Makefile index d9179f9..6bd816b 100644 --- a/cube/Makefile +++ b/cube/Makefile @@ -1,6 +1,6 @@ # Processed by ../tools/insertMyCode.sh ########################################################################################################################## -# File automatically-generated by tool: [projectgenerator] version: [3.10.0-B14] date: [Sun Dec 27 11:47:17 CET 2020] +# File automatically-generated by tool: [projectgenerator] version: [3.10.0-B14] date: [Sun Dec 27 12:03:42 CET 2020] ########################################################################################################################## # ------------------------------------------------ diff --git a/cube/Makefile-bak b/cube/Makefile-bak index bf9669a..854dde3 100644 --- a/cube/Makefile-bak +++ b/cube/Makefile-bak @@ -1,5 +1,5 @@ ########################################################################################################################## -# File automatically-generated by tool: [projectgenerator] version: [3.10.0-B14] date: [Sun Dec 27 11:47:17 CET 2020] +# File automatically-generated by tool: [projectgenerator] version: [3.10.0-B14] date: [Sun Dec 27 12:03:42 CET 2020] ########################################################################################################################## # ------------------------------------------------ diff --git a/tools/insertMyCode.sh b/tools/insertMyCode.sh index 79ceb82..c91cad9 100755 --- a/tools/insertMyCode.sh +++ b/tools/insertMyCode.sh @@ -48,6 +48,7 @@ cp $IT_C $IT_C_BAK echo "// $PROCESSED" > $IT_C cat $IT_C_BAK | \ sed -e 's,\(/\* USER CODE BEGIN Includes \*/\),\1\n#include "main2.h"\n,' \ + -e 's,\(/\* USER CODE BEGIN PFP \*/\),\1\nvoid mbusCommISR();\n,' \ -e 's,\(/\* USER CODE BEGIN SysTick_IRQn 1 \*/\),\1\n SYSTICK_Callback();\n,' \ -e 's,\(HAL_UART_IRQHandler(&huart5);\),// \1,' \ -e 's,\(/\* USER CODE BEGIN UART5_IRQn 1 \*/\),\1\n mbusCommISR();\n,' \