#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "inc/hw_ints.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/uart.h"
#include "driverlib/interrupt.h"
#include "driverlib/timer.h"
#include "driverlib/pwm.h"
void GPIOPinWrite(unsigned long ulPort, unsigned char ucPins, unsigned charucVal)
{}
void SysCtlPeripheralEnable(unsigned long ulPeripheral)
{}
int main(void)
{
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);
GPIOPinWrite(GPIO_PORTG_BASE,GPIO_PIN_4,0x1);
return 0;
}
在CCSV5环境下 1.调用函数需要再声明吗?我怎么不声明就出错,看很多别人的代码都没有声明2.这个程序是自己写的
每次debug时都出现CORTEX_M3_0: GEL Output:
Memory Map Initialization Complete
CORTEX_M3_0: GEL Output: Watchdog Timer Enabled
CORTEX_M3_0: GEL Output: UARTs Enabled
CORTEX_M3_0: Flash Programmer: Timed out whilewriting to Flash memory
CORTEX_M3_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x2f0
CORTEX_M3_0: GEL: File: F:\xuzhetao\CCS\LAB4\Debug\LAB4.out: Load failed. |