This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PM实验套件

Other Parts Discussed in Thread: TM4C123GH6PM

TM4C123GH6PM can not open source file"inc\tm4c123gh6pm.h"

#include <stdint.h>
#include <inc\tm4c123gh6pm.h>

void main(void)
{
volatile uint32_t ulLoop;
//将F端口的总线形式设置为AHB总线形式
SYSCTL_GPIOHBCTL_R = SYSCTL_GPIOHBCTL_PORTF;
//启动F端口时钟
SYSCTL_RCGCGPIO_R = SYSCTL_RCGCGPIO_R5;
//设置PF3、PF2、PF1引脚为输出
//GPIO的某些寄存器位是直接与端口管脚号对应,因此没有掩码之类的寄存器
GPIO_PORTF_AHB_DIR_R = 0x0000000E;
//激活PF3、PF2、PF1引脚的数字输入输出功能
GPIO_PORTF_AHB_DEN_R = 0x0000000E;
while(1)
{
GPIO_PORTF_AHB_DATA_R = 0x00000002; //红灯亮
for(ulLoop = 0; ulLoop < 200000; ulLoop++){}
GPIO_PORTF_AHB_DATA_R = 0x00000004; //绿灯亮
for(ulLoop = 0; ulLoop < 200000; ulLoop++){}
GPIO_PORTF_AHB_DATA_R = 0x00000008; //蓝灯亮
for(ulLoop = 0; ulLoop < 200000; ulLoop++){}
}
}

这是什么问题呢?新手小白急问,谢谢。