1 变量
/*!< */
2 addtogroup
/** @addtogroup 组名
* @{
*/
/**
* @}
*/
3 defgroup
/** @defgroup 组名
* @brief GPIO HAL module driver
* @{
*/
/**
* @}
*/
4 c文件头
/**
******************************************************************************
* @file
* @author Zhang Jun
* @brief
*
@verbatim
==============================================================================
##### features #####
==============================================================================
[..]
##### How to use #####
==============================================================================
[..]
@endverbatim
******************************************************************************
* @attention
*
* <h2><center>© Copyright .
* All rights reserved.</center></h2>
*
* licensed
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
/************************ (C) COPYRIGHT *****END OF FILE****/
5 h文件头
/**
******************************************************************************
* @file
* @author Zhang Jun
* @brief
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) .
* All rights reserved.</center></h2>
*
* <License>
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
/************************ (C) COPYRIGHT *****END OF FILE****/
6 h文件 ifndef
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __H_
#define __H_
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#endif
7 h文件 各类变量函数定义
/* Exported macro ------------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
/* Initialization and de-initialization functions *****************************/
/* IO operation functions *****************************************************/
/* Private types -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private constants ---------------------------------------------------------*/
/* Private macros ------------------------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
8 C文件 各类变量函数定义
/* Includes ------------------------------------------------------------------*/
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/