Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

gnuarm question

2006-02-10 by G B

I finally got my avr asm app converted to gnuarm c
and it compiles.

However, it does not like:
int is_any(unsigned char *, char);

const unsigned char string1[]={"abcdefgh"};

...
	ch = 'd';
	if(is_any(string1, ch)==0)....;

I had other const strings, and it gave me warnings as well.

Do we have to use const to ensure that the strings as constant
and put in flash rather than ram?

Thanks,

Glen

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.