Defining issues

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
spectric
Posts: 74
Joined: 05 Jan 2007 20:12
Location: Cumbria, Uk

Defining issues

#1 Post by spectric » 03 Apr 2022 17:26

Hi

I had a compiler issue that took some time to resolve but I want to know if this is a compiler bug or just some limatation of the process.

I had #define SEVTPS PTCONbits.SEVTPS and #define ST_SEVTPS STCONbits.SEVTPS FAILS

This caused compiler issues and was solved by

#define PT_SEVTPS PTCONbits.SEVTPS and #define ST_SEVTPS STCONbits.SEVTPS COMPILES

It looked like it thought ST_SEVTPS and SEVTPS were the same !

Thanks Roy
all the best Roy

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Defining issues

#2 Post by filip » 08 Apr 2022 10:05

Hi,

Which MCU and compiler version are you using ?

Regards,
Filip.

spectric
Posts: 74
Joined: 05 Jan 2007 20:12
Location: Cumbria, Uk

Re: Defining issues

#3 Post by spectric » 10 Apr 2022 13:13

Hi there

I am using the latest version of the Mikro pro C compiler for Dspic vesrion 7.1.0 and the DSPIC33EP512MU810.

thanks Roy
all the best Roy

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”