adjust insert script

This commit is contained in:
Wolfgang Hottgenroth 2020-11-25 15:15:27 +01:00
parent 7a12bba4df
commit 56ac741079
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 6 additions and 3 deletions

View File

@ -284,7 +284,7 @@ void mbusCommISR() {
}
if ((isrflags & USART_SR_NE) != RESET) {
mbusCommStats.uartNoiseErrCnt += 1;
// do not consider noise as an error
// do not consider noise as an error for the moment
// errorFound = true;
}
mbusCommStats.uartOctetCnt += 1;

View File

@ -47,8 +47,11 @@ cat $MAIN_C_BAK | \
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,' | \
sed -e 's,\(/\* USER CODE BEGIN SysTick_IRQn 1 \*/\),\1\n SYSTICK_Callback();\n,' >> $IT_C
sed -e 's,\(/\* USER CODE BEGIN Includes \*/\),\1\n#include "main2.h"\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,' \
>> $IT_C
# mkdir w5500
# pushd ioLibrary_Driver