Spi1_Init_Advanced query

General discussion on mikroPascal for dsPIC30/33 and PIC24.
Post Reply
Author
Message
pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Spi1_Init_Advanced query

#1 Post by pwdixon » 05 Sep 2009 18:12

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.

pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

#2 Post by pwdixon » 05 Sep 2009 18:49

Found the answer, needed to include the header file "Spi_Const.h".

pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

#3 Post by pwdixon » 06 Sep 2009 01:25

Sorry, this thread should have been posted on the C forum.

jalpa
Posts: 6
Joined: 28 Jan 2014 05:15

Re: Spi1_Init_Advanced query

#4 Post by jalpa » 28 Jan 2014 07:56

hi,

how to get the header file u specified?

pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Re: Spi1_Init_Advanced query

#5 Post by pwdixon » 28 Jan 2014 09:44

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.

Post Reply

Return to “mikroPascal for dsPIC30/33 and PIC24 General”