图中的GPIO_O_IBE,GPIO_O_IS是什么东西,请问为什么我找不到他们的定义,截图来自TM4C123G库函数的gpio.c文件,
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.
请看C:\ti\TivaWare_C_Series-2.1.0.12573\inc\hw_gpio.h文件中:
#define GPIO_O_IBE 0x00000408 // GPIO Interrupt Both Edges
#define GPIO_O_IS 0x00000404 // GPIO Interrupt Sense
这些都是设置GPIO中断的相关寄存器。查Datasheet看详细定义吧。
其实直接调用库函数也比较省事,不用太关心底层的东西。
安装完TivaWare后,
外设驱动库的文档在这里:C:\ti\TivaWare_C_Series-2.1.0.12573\docs\SW-TM4C-DRL-UG-2.1.0.12573.pdf
可以先从TivaWare中的例程开始学习。配合阅读Datasheet