I'm Juan Pedro, I work with msp-exp430fr5739 and cc3000, over IAR 6.20.
Now I have a linking error:
Error[e27]: Entry "uart_have_cmd" in module dispatcher ( F:\Documents and Settings\Juan Pedro\Escritorio\16.04.2015\
I asked an entry, but that entry???
attached file dispatcher.c
#include "dispatcher.h"
#include <msp430fr5739.h>
///////////////////////////////////////////////////////////////////////////////////////////////////////////
//__no_init is used to prevent varible's initialize. ///
//for every IDE, exist different syntax: 1. __CCS__ for CCS v5 ///
// 2. __IAR_SYSTEMS_ICC__ for IAR Embedded Workbench ///
// *CCS does not initialize variables - therefore, __no_init is not needed. ///
///////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifdef __CCS__
unsigned char g_ucUARTBuffer[UART_IF_BUFFER];
unsigned char g_ucLength;
#elif __IAR_SYSTEMS_ICC__
__no_init unsigned char g_ucUARTBuffer[UART_IF_BUFFER];
__no_init unsigned char g_ucLength;
#endif
extern int uart_have_cmd = 0;
//*****************************************************************************
//
//! UARTIntHandler
//!
//! \param buffer
//!
//! \return none
//!
//! \brief Handles RX and TX interrupts
//
//*****************************************************************************
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR(void)
{
switch(__even_in_range(UCA0IV,0x08))
{
case 0:break; // Vector 0 - no interrupt
case 2: // Vector 2 - RXIFG
g_ucUARTBuffer[g_ucLength] = UCA0RXBUF;
if (g_ucUARTBuffer[g_ucLength] == 0x0D)
{
g_ucLength = 0;
uart_have_cmd = 1;
__bic_SR_register_on_exit(LPM3_bits);
__no_operation();
}
else
{
g_ucLength ++;
}
break;
case 4:break; // Vector 4 - TXIFG
default: break;
}
}
//*****************************************************************************
//
//! DispatcherUartSendPacket
//!
//! \param inBuff pointer to the UART input buffer
//! \param usLength buffer length
//!
//! \return none
//!
//! \brief The function sends to UART a buffer of given length
//
//*****************************************************************************
void
DispatcherUartSendPacket(unsigned char *inBuff, unsigned short usLength)
{
while (usLength)
{
while (!(UCA0IFG&UCTXIFG));
UCA0TXBUF = *inBuff;
usLength--;
inBuff++;
}
}
thanks for your time
JP