This commit is contained in:
2020-10-11 00:41:58 +02:00
parent 815241d035
commit a8baec64ab
21 changed files with 845 additions and 37 deletions

View File

@ -1,3 +1,4 @@
// Processed by ../tools/insertMyCode.sh
/* USER CODE BEGIN Header */
/**
******************************************************************************
@ -24,7 +25,9 @@
#include "gpio.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE BEGIN Includes */
#include "main2.h"
/* USER CODE END Includes */
@ -65,7 +68,9 @@ void SystemClock_Config(void);
*/
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE BEGIN 1 */
my_setup_1();
/* USER CODE END 1 */
@ -89,7 +94,9 @@ int main(void)
MX_GPIO_Init();
MX_ADC1_Init();
MX_USART1_UART_Init();
/* USER CODE BEGIN 2 */
/* USER CODE BEGIN 2 */
my_setup_2();
/* USER CODE END 2 */
@ -99,7 +106,9 @@ int main(void)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
/* USER CODE BEGIN 3 */
my_loop();
}
/* USER CODE END 3 */
}
@ -159,10 +168,14 @@ void SystemClock_Config(void)
*/
void Error_Handler(void)
{
/* USER CODE BEGIN Error_Handler_Debug */
/* USER CODE BEGIN Error_Handler_Debug */
my_errorHandler();
/* User can add his own implementation to report the HAL error return state */
/* USER CODE END Error_Handler_Debug */
/* USER CODE END Error_Handler_Debug */
while(1) { };
}
#ifdef USE_FULL_ASSERT