#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include "driverlib/sysctl.h"
#define PINS GPIO_PIN_6
//声明
void SysCtlPeripheralEnable (unsigned long ulPeripheral)
{}
void GPIODirModeSet(unsigned long ulPort,unsigned char ucPins,unsigned long ulPinIO)
{}
void GPIOPinWrite(unsigned long ulPort, unsigned char ucPins, unsigned char ucVal)
{}
int main(void)
{
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);//使能B模块
GPIODirModeSet(GPIO_PORTB_BASE,PINS,GPIO_DIR_MODE_OUT);//设置B为输出
GPIOPinWrite(GPIO_PORTB_BASE,PINS,~PINS);//PB6低电平
GPIOPinWrite(GPIO_PORTB_BASE,PINS,PINS);//PB6高电平
while(1);
}
板子是LM3S9B92 用的CCSV5 单步执行发现寄存器中的数据都是0xBAD0BAD0 没有使能的模块也是这个
单步执行PB6 管脚电压不变 而且相应寄存器数据不改变 求助 |