Page 1 of 1

Spi1_Init_Advanced query

Posted: 05 Sep 2009 18:12
by pwdixon
Why do I get undeclared identifier for all the parameters of

Spi1_Init_Advanced(_SPI_MASTER, _SPI_8_BIT, _SPI_PRESCALE_SEC_1, _SPI_PRESCALE_PRI_1, _SPI_SS_DISABLE, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_LOW, _SPI_ACTIVE_2_IDLE);

?

Should I include a declarations file of some kind?

I'm using dsPIC33j256gp710 at 10MHz.

Posted: 05 Sep 2009 18:49
by pwdixon
Found the answer, needed to include the header file "Spi_Const.h".

Posted: 06 Sep 2009 01:25
by pwdixon
Sorry, this thread should have been posted on the C forum.

Re: Spi1_Init_Advanced query

Posted: 28 Jan 2014 07:56
by jalpa
hi,

how to get the header file u specified?

Re: Spi1_Init_Advanced query

Posted: 28 Jan 2014 09:44
by pwdixon
jalpa wrote:hi,

how to get the header file u specified?
Sorry I did use the dsPIC compiler for a period but soon realised it didn't do anything for me over the PIC32 version so I haven't looked at it again since my posting which was 4.5 years ago. I assume the file was bundled in with the compiler at the time.