8 stm32 c开发的格式文件模板

H文件模板

/**
  ******************************************************************************
  * @file    
  * @author  Zhang Jun
  * @brief   
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) .
  * All rights reserved.</center></h2>
  *
  * <License>
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __H_
#define __H_

#ifdef __cplusplus
 extern "C" {
#endif

//#define HAL_FLASH_ERROR_NONE         ((uint32_t)0x00000000U)    /*!< No error                      */

/* Includes ------------------------------------------------------------------*/


/** @addtogroup 名字总驱动的名字父系STM32F7xx_HAL_Driver
  * @{
  */

/** @addtogroup 名字 父系下面的子目录
  * @{
  */

/* Exported types ------------------------------------------------------------*/
/** @defgroup 名字 说明
  * @{
  */



/**
  * @}
  */

/* Exported constants --------------------------------------------------------*/


/* Exported macro ------------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/

/* Private types -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private constants ---------------------------------------------------------*/


/* Private macros ------------------------------------------------------------*/

/* Private functions ---------------------------------------------------------*/

/**
  * @}
  */

/**
  * @}
  */

#ifdef __cplusplus
}
#endif

#endif /* 宏定义名字*/

/************************ (C)  *****END OF FILE****/

C文件模板

/**
  ******************************************************************************
  * @file    
  * @author  Zhang Jun 
  * @brief   
  *
  @verbatim
  ==============================================================================
                    #####  features #####
  ==============================================================================
  [..] 

                     ##### How to use #####
  ==============================================================================  
  [..]

  
  @endverbatim
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright .
  * All rights reserved.</center></h2>
  *
  * licensed
  *
  ******************************************************************************
  */ 

/* Includes ------------------------------------------------------------------*/


/** @addtogroup 组名
  * @{
  */

/** @defgroup 组名 
  * @brief GPIO HAL module driver
  * @{
  */

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
/**
  * @}
  */

/**
  * @}
  */

/************************ (C) COPYRIGHT  *****END OF FILE****/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值