Other Parts Discussed in Thread: TM4C123GH6PM
I am using TM4C123GH6PM (Tiva C Series Launchpad).
I am using CC Studio.
I used these functions with these parameters:
GPIOPinConfigure(GPIO_PA2_SSI0CLK);
GPIOPinConfigure(GPIO_PA3_SSI0FSS);
GPIOPinConfigure(GPIO_PA4_SSI0RX);
GPIOPinConfigure(GPIO_PA5_SSI0TX);
and i included these:
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/ssi.h"
While compiling, there is no problem with the function calls, but the parameters
GPIO_PA2_SSI0CLK
GPIO_PA3_SSI0FSS
GPIO_PA4_SSI0RX
GPIO_PA5_SSI0TX
are not detected.
Error:
#20 identifier "GPIO_PA2_SSI0CLK" is undefined
#20 identifier "GPIO_PA3_SSI0FSS" is undefined
#20 identifier "GPIO_PA4_SSI0RX" is undefined
#20 identifier "GPIO_PA5_SSI0TX" is undefined
I have included
"driverlib/pin_map.h"
which contains their definitions
But still it is not detecting
When i copied their definitions to the main code
#define GPIO_PA2_SSI0CLK 0x00000802
#define GPIO_PA3_SSI0FSS 0x00000C02
#define GPIO_PA4_SSI0RX 0x00001002
#define GPIO_PA5_SSI0TX 0x00001402
the errors are corrected.
But it is supposed to work from the pins_map.h itself.
I also tried cleaning and rebuilding the project. But no success.