On 25 May 2012 16:34, Borut Ražem <borut.ra...@gmail.com> wrote:
> This is why there are no __config definitions in the gputils *.inc and
> consequently in sdcc pic16 device *.h files.

Ahh, right.

> Have you tried to use #pragma config as described in sdccman? Be
> careful: #pragma config was introduced 2012-03-16, which means that it
> exists only in the sdcc snapshot builds.

I've built master, and tried that. On initial try it worked fine, but
trying to build my firmware image I'm getting:

test.c:7: warning 191: #pragma config: bad argument(s); pragma ignored

It seems sdcc expects:

#pragma config WDTEN=ON

and the Microchip compiler accepts:

#pragma config WDTEN    = ON (i.e. '<tab>', '=', '<space>')

Should sdcc could just ignore the white space for compatibility? MPLAB
seems to accept either. I'll do some more testing later tonight and
find out how things go with sdcc from master.

Thanks,

Richard.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to