hi all
i just would like to ask, currently i am writing the i2c Code for my project but when i use TM4C pinMux or even i follow the example i am still facing some error which is as below
MAP_GPIOPinConfigure(GPIO_PB2_I2C0SCL);
MAP_GPIOPinConfigure(GPIO_PB3_I2C0SDA);
the error shown as below
Description Resource Path Location Type
#20 identifier "GPIO_PB3_I2C0SDA" is undefined main.c /tester line 88 C/C++ Problem
#20 identifier "GPIO_PB2_I2C0SCL" is undefined main.c /tester line 82 C/C++ Problem
what is the meaning of undefined? is it something need to be done?
the include file as below
#include <stdint.h>
#include <stdbool.h>
#include "test.h"
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "inc/hw_gpio.h"
#include "inc/hw_ints.h"
#include "inc/hw_uart.h"
#include "inc/hw_sysctl.h"
#include "inc/hw_i2c.h"
#include "driverlib/fpu.h"
#include "driverlib/systick.h"
#include "driverlib/sysctl.h"
#include "driverlib/pin_map.h"
#include "driverlib/rom_map.h"
#include "driverlib/debug.h"
#include "driverlib/interrupt.h"
#include "driverlib/gpio.h"
#include "driverlib/uart.h"
#include "driverlib/rom.h"
#include "driverlib/i2c.h"
------------------------------------------------------------------------------------------------------------------------------------------------
another question is i have saw both driverlib and sensorlib i2c configuration and setup, when i compare driver lib is easier to understand but i would like to ask since i have search through driverlib document, and i only saw that there only send a byte at one time. is there any possible to send 3 byte at a time? and any possible quote an example for sending 3 byte data using driverlib?
thank you



