Hello every one.
I am trying to implement a code for SPI interface using IAR embedded workbench. When I compile the code with CCS I have no problems - everything works well.
But when press F7 to compile the code I get these error messages:
And this is the complete code:
#include <stdint.h>
#include <stdbool.h>
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/gpio.c"
#include "driverlib/pin_map.h"
#include "driverlib/ssi.h"
#include "inc/hw_ssi.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_gpio.h"
#define TRUE 1
void SSIInit(void);
int main ()
{
SysCtlClockSet(SYSCTL_SYSDIV_2_5| SYSCTL_USE_PLL | SYSCTL_OSC_INT | SYSCTL_XTAL_16MHZ);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
SSIInit();
while(TRUE)
{
}
}
void SSIInit(void)
{
SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI0);
SysCtlDelay(3);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
SysCtlDelay(3);
GPIOPinConfigure(GPIO_PA5_SSI0TX);
GPIOPinConfigure(GPIO_PA2_SSI0CLK);
GPIOPinConfigure(GPIO_PA3_SSI0FSS);
GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_5);
GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_2);
GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_3);
SSIIntClear(SSI0_BASE,SSI_TXEOT);
SSIConfigSetExpClk(SSI0_BASE, 64000000, SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 10000000, 16);
SSIEnable(SSI0_BASE);
}
I set the include directory in the preprocessors option of the compiler. But the problem is that the functions into ssi.h are only declared but not defined. So may be some link is needed? I don't know.
Any help would be much appreciated.

