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

CC3220SF-LAUNCHXL: Reset I2C port configuration

$
0
0

Part Number:CC3220SF-LAUNCHXL

Using: simplelink_cc32xx_sdk_1_50_00_06

After using i2C for temperature mesurement, I want to use ports GPIOCC32XX_GPIO_10 ("LED1") and GPIOCC32XX_GPIO_11 ("LED2") again as GPIO output ports.
(LEDs are enabled in GPIO_PinConfig gpioPinConfigs[] in CC3220SF_LAUNCHXL.c and CC3220SF_LAUNCHXL.h)

Functional sequence::
1. GPIO_init()
Some code using all 3 Board LED's:  works OK
2. I2C_init()
Some code accessing temerature sensor: works OK
3. I2C_close()

Ports GPIO10 and GPIO11 remain high and can not be set again by GPIO_init()  and GPIO_write()

How can I release multiplexer setting from I2C_SCL and I2C_SDA to GPIO function again? (I would prefer using driver functions instead of directly manipulating registers)

Thanks for any proposal!

Klaus 


After adapting GPIO_PinConfig gpioPinConfigs[] in CC3220SF_LAUNCHXL.c and CC3220SF_LAUNCHXL.h


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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