Add headers for better code regeneration compatibility with STM32CubeMX
This commit is contained in:
+24
-1
@@ -1,7 +1,28 @@
|
||||
|
||||
/* USER CODE BEGIN Header */
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file : canlog.c
|
||||
* @brief : SAE J1939 CAN Real Time listening and decoding
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* Copyright (c) 2026 STMicroelectronics.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed under terms that can be found in the LICENSE file
|
||||
* in the root directory of this software component.
|
||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
/* USER CODE END Header */
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "canlog.h"
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
#include "cmsis_os.h"
|
||||
#include <string.h>
|
||||
/* USER CODE END Includes */
|
||||
|
||||
extern CAN_HandleTypeDef hcan1;
|
||||
extern CAN_HandleTypeDef hcan2;
|
||||
@@ -42,6 +63,7 @@ const osThreadAttr_t vLED_CAN2_Heartbeat_attributes = {
|
||||
|
||||
|
||||
/* Private function prototypes -----------------------------------------------*/
|
||||
/* USER CODE BEGIN FunctionPrototypes */
|
||||
/* BEGIN CAN_Logger_Init */
|
||||
/**
|
||||
* @brief Initialize CAN
|
||||
@@ -117,3 +139,4 @@ void vLED_HeartbeatOnCanRx(void *argument)
|
||||
/* CODE END */
|
||||
}
|
||||
/* END vLED_HeartbeatOnCanRx */
|
||||
/* USER CODE END FunctionPrototypes */
|
||||
|
||||
Reference in New Issue
Block a user