zoukankan      html  css  js  c++  java
  • 220719备份存疑点&error&waring

    220719备份:

    ERROR&WARNING:
    1.deprecated declaration GPIO_InitConfig_give arg types.
    旧程序:void GPIO_InitConfig();
    新程序:void GPIO_InitConfig(void);
    warning解除
    2.declaration may not appear after executable statement in block.
    旧程序:RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC1,ENABLE);
         void RCC_ADCCLKConfig(RCC_PCLK2,Div6);
    新程序:将以上两句调换位置后error解除
    同理,结构体的声明不可以放在函数后面。先写声明,再写函数!
    3.expected a type specifier
    旧程序:void RCC_ADCCLKConfig(RCC_PCLK2,Div6);
    新程序:去掉void
    error解除。也不需要啥返回值在这嘚瑟啥呢
    4.undefined symbol main (referred from_rtentry2.0).Not enough information to list image symbols.
    旧程序:没有
    新程序:随便添加了一个main函数
    添加完main函数之后error解除,这个故障在此处理解为找不到main函数。

     存疑点:
    1.GPIO引脚用作模拟输入,速率有没有必要设置
    1'好像设置了也没啥影响,先放着
    2.ADC连续转换开不开
    2'肯定得开啊,已经开开了,后续问题后续说吧

  • 相关阅读:
    敏感信息脱敏实现
    SpringBoot集成Swagger2
    CSS三大特性
    background
    background-attachment
    background-position
    background-repeat
    background-image
    background-color
    CSS元素显示模式
  • 原文地址:https://www.cnblogs.com/Jane-share/p/11263331.html
Copyright © 2011-2022 走看看