Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC3220S-LAUNCHXL: How to drive a GPIO

$
0
0

Part Number:CC3220S-LAUNCHXL

Hi,

I want to drive GPIO 03 within oob example. I did the following:

1. add the following line in CC3220S_LAUNCHXL.c gpioPinConfigs[]

GPIOCC32XX_GPIO_03 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW, // added by david

2. add the following line in main program

#include <ti/drivers/gpio/GPIOCC32XX.h> // added by david    

GPIO_write(GPIOCC32XX_GPIO_03, 0xFF); //added by david

This doesn't work. Can you advise what my steps should be in order to drive a GPIO 03 to 1?

Thanks,

David


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>