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

I2C Setup problem

$
0
0

Hello!

I have a problem with the I2C setup of a LM4F120H5QR. I'm trying to configurate the SDA line with this instruction:

"GPIOPinConfigure(GPIO_PB3_I2C0SDA);"

The problem is that I get this error: "#20 identifier "GPIO_PB3_I2C0SDA" is undefined"

The include path is correct, and this is the files I'm using:

#include "inc/lm4f120h5qr.h"
#include "inc/hw_sysctl.h"
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "inc/hw_nvic.h"
#include "driverlib/interrupt.h"
#include "driverlib/pin_map.h"
#include "driverlib/gpio.h"
#include "driverlib/sysctl.h"
#include "driverlib/i2c.h"

Thank you!


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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