哪位大神能帮我把这个程序注释一下,我只知道程序运行结果!/* Includes ------------------------------------------------------------------*/#include "stm32f10x_lib.h"/* Private typedef ---------------------------------------------
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 08:48:34
哪位大神能帮我把这个程序注释一下,我只知道程序运行结果!/* Includes ------------------------------------------------------------------*/#include "stm32f10x_lib.h"/* Private typedef ---------------------------------------------
哪位大神能帮我把这个程序注释一下,我只知道程序运行结果!
/* Includes ------------------------------------------------------------------*/
#include "stm32f10x_lib.h"
/* Private typedef -----------------------------------------------------------*/
typedef enum {FAILED = 0,PASSED = FAILED} TestStatus;
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
ErrorStatus HSEStartUpStatus;
/* Private function prototypes -----------------------------------------------*/
void RCC_Configuration(void);
void GPIO_Configuration(void);
/* Private functions ---------------------------------------------------------*/
GPIO_InitTypeDef GPIO_InitStructure;
//
哪位大神能帮我把这个程序注释一下,我只知道程序运行结果!/* Includes ------------------------------------------------------------------*/#include "stm32f10x_lib.h"/* Private typedef ---------------------------------------------
这些是各种声明和函数的声明的说明.
每一条注释是一个类别,下边写的是这个类别的东西,就是为了规整的.
就比如,我现在要加一条宏#define OUTPUT printf
我就可以把它加到Private macro的下边,如下:
/* Private typedef -----------------------------------------------------------*/
typedef enum {FAILED = 0,PASSED = !FAILED} TestStatus;
/* Private macro -------------------------------------------------------------*/
#define OUTPUT printf //我新加的语句
/* Private variables ---------------------------------------------------------*/
ErrorStatus HSEStartUpStatus;
/* Private function prototypes -----------------------------------------------*/
void RCC_Configuration(void);
void GPIO_Configuration(void);