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.

2640的GPIO引脚配置相关API,如:GPIO_DirModeSet()定义在哪个文件,想使用此api需要添加哪个头文件

Other Parts Discussed in Thread: CC2650, CC2640, CC2640R2F

我希望在2640上使用我自己的lcd驱动程序,在2640的IO引脚配置我了解到有个api函数GPIO_DirModeSet()可直接配置引脚方向,2640引脚配置不再如2530一般;但我找了很久 不了解GPIO_DirModeSet在哪个源文件定义,请问在使用此api需要添加哪个头文件?在编译时遇到以下问题

Error[Pe020]: identifier "GPIO_DIR_MODE_OUT" is undefined C:\ti\simplelink\ble_sdk_2_02_01_18\examples\CC2650\simple_peripheral\source\oled\cc2650_oled.c 70

Warning[Pe223]: function "GPIO_DirModeSet" declared implicitly C:\ti\simplelink\ble_sdk_2_02_01_18\examples\CC2650\simple_peripheral\source\oled\cc2650_oled.c 70