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.

如何在不使用 Ti RTOS 下調用 GPIO Driver API

Other Parts Discussed in Thread: SYSBIOS

你好, 

我是用 TM4C123

我想程式中, 想用 GPIO Driver API, 因為 API 的功能較為方便且齊全, 

但是我不會使用 RTOS 調用 task 的機制, 用 while 迴圈做主程式, 

是不是 include  以下 header file 進入就可以使用 API 了?

/* XDCtools Header files */
#include <xdc/runtime/Memory.h>
#include <xdc/runtime/Error.h>
#include <xdc/runtime/System.h>

/* BIOS Header files */
#include <ti/sysbios/family/arm/m3/Hwi.h>
#include <ti/sysbios/knl/Swi.h>

/* RTOS Driver files */
#include <ti/drivers/GPIO.h>
#include <ti/drivers/gpio/GPIOTiva.h>

?

BR,

Loren