Can i mix or add UART code inside io repeater code?pls Help

Iam trying to add UART0 funtionality to the I_O_repeater code by doing the following:
adding the Include file on the top ,

#include <uart0.h>  // for UART 0

then within main function i’m adding,

void main(void)
{
	void uart1Init(); 	//initializes the Uart1
	
	//now let us set the baud rate at 9600
	 uart1SetBaudRate(9600);
	
	//now let us set the parity
	 uart1SetPariy(PARITY_NONE);
	
	//now let us set the number of stop bits to 1
	uart0SetStopBits(STOP_BITS_1);
	
	*/
    // pointers to link packets
    uint8 XDATA * txBuf;
    uint8 XDATA * rxBuf;

    uint8 lastTx = 0;
    uint8 txInterval = 0;

    systemInit();
    usbInit();
	uart0Init();
    radioQueueInit();

    configurePins();

when i compile the compiler throws
?ASlink-Warning-Undefined Global ‘_ISR_URX0’ referenced by module ‘io_repeater’
?ASlink-Warning-Undefined Global ‘_ISR_UTX0’ referenced by module ‘io_repeater’
?ASlink-Warning-Undefined Global ‘_uart0Init’ referenced by module ‘io_repeater’
make: *** [apps/io_repeater/io_repeater.hex] Error 1

What am i doing wrong here or am i missing something fundamental here…Kindly help

Thanks,
Vikram

Hello, Vikram.

You need to specify what libraries you are linking to in options.mk. More details about options.mk are here:

pololu.github.com/wixel-sdk/

Specifically, it says:

Also, this line of code is wrong:

void uart1Init();    // WRONG

It should be:

uart1Init();    //initializes the Uart1

–David

Thanks a million David,

The IO_Repeater folder already contains the options.mk file in it. and by appending to the end of the line,

uart.lib

SOLVED the error :slight_smile:

Thanks once again,
with best regards, Vikram