View previous topic :: View next topic |
Author |
Message |
mradrenalin
Joined: 15 Jun 2009 Posts: 2
|
Internal Error - Contact CCS - Function Pointers |
Posted: Tue Jun 16, 2009 12:27 am |
|
|
I get this error
Line 23(1,1) Internal Error - Contact CCS LABEL SCR=686
error flashes for curly bracket after "void main()"
Code: |
#include <18F4550.H>
#fuses NOWDT, NOPROTECT, NOPUT
#use delay(clock = 25000000)
#include "flex_lcd.c"
#build(reset=0x800)
#build(interrupt=0x808)
#org 0x0000,0x07ff
void bootloader()
{
#asm nop
#endasm
}
void text0(void);
void text1(void);
typedef int (*intfptr)();
intfptr func[2] = {text0,text1};
void main()
{
lcd_init();
while(1);
}
void text0()
{
lcd_putc("text0");
}
int text1(int a)
{
lcd_putc("text1");
}
|
|
|
|
Ttelmah Guest
|
|
Posted: Tue Jun 16, 2009 2:22 am |
|
|
As I said, when I posted the typedef you are using, _CCS, does not support initialisation of function pointers, in the declaration_.....
Best Wishes |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|