zoukankan      html  css  js  c++  java
  • mdk编译遇见的错误(LX4F120H),望各位指点迷津

    程序如下

    #define tBoolean int
    #define GPIO_PORTA_BASE g_pulGPIOBaseAddrs[0]
    #include "lib/gpio.h"

    //#include "lib/inc/lm4f120h5qr.h"
    #include "lib/sysctl.h"
    int main()
     {
     SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
     GPIOPinTypeGPIOInput(GPIO_PORTA_BASE,GPIO_PIN_0);
     while(1)
      {
      }
     }

    编译总是提示:

    main.c(10): error:  #20: identifier "g_pulGPIOBaseAddrs" is undefined

    g_pulGPIOBaseAddrs中GPIO_PORTA_BASE的定义在这里

    tBoolean变量没有定义我在程序头定义成了#define tBoolean int,这个对吗,我定义成bool,总是提示bool没定义

    望各位指点

  • 相关阅读:
    2020/3/12
    练习题1
    2020/3/26
    2020/3/25
    2020/3/24
    2020/3/23
    应用层
    bzoj3326[SCOI2013]数数
    HEOI2017游记
    bzoj4417[SHOI2013]超级跳马
  • 原文地址:https://www.cnblogs.com/baldermurphy/p/3283934.html
Copyright © 2011-2022 走看看