Hallo,
Sobald ich für den Parameter Usart von SetSerEnable eine Variable verwende, erhalte ich einen Compilerfehler (Siehe Bild im Anhang). Wieso?
Vielen Dank für Antworten.
Gruß
Thomas
Testprogramm:
program test;
{ $W+}
Device = xmega128A1U, VCC = 3.3;
Define_Fuses
Override_Fuses;
NoteBook = A;
COMport = USB;
FuseBits5 = [BODLEVEL1, BODLEVEL2, BODACT0]; // BOD=2.8V if USB variant
ProgFuses = true;
ProgEEprom = true;
Import Systick, SerPortC0, SerPortC1;
Define
OSCtype = extXTAL=8000000, PLLmul=4, prescA=1, prescB=1, prescC=1, faildet;
SysTick = 10;
StackSize = 256, iData;
FrameSize = 256, iData;
SerPortC0 = 19200;
RxBufferC0 = 32, iData;
TxBufferC0 = 32, iData;
SerCtrlC0 = onSerTxComplete_C0;
SerPortC1 = 19200;
RxBufferC1 = 32, iData;
TxBufferC1 = 32, iData;
SerCtrlC1 = onSerTxComplete_C1;
implementation
{$IDATA}
{-------------------------------------------------------------------------------
Main Program
-------------------------------------------------------------------------------}
var usart : tUSARTenum;
begin
usart := USARTC0;
SetSerEnable(USARTC0,true);
SetSerEnable(usart,true);
end test.
Sobald ich für den Parameter Usart von SetSerEnable eine Variable verwende, erhalte ich einen Compilerfehler (Siehe Bild im Anhang). Wieso?
Vielen Dank für Antworten.
Gruß
Thomas
Testprogramm:
Code
program test;
{ $W+}
Device = xmega128A1U, VCC = 3.3;
Define_Fuses
Override_Fuses;
NoteBook = A;
COMport = USB;
FuseBits5 = [BODLEVEL1, BODLEVEL2, BODACT0]; // BOD=2.8V if USB variant
ProgFuses = true;
ProgEEprom = true;
Import Systick, SerPortC0, SerPortC1;
Define
OSCtype = extXTAL=8000000, PLLmul=4, prescA=1, prescB=1, prescC=1, faildet;
SysTick = 10;
StackSize = 256, iData;
FrameSize = 256, iData;
SerPortC0 = 19200;
RxBufferC0 = 32, iData;
TxBufferC0 = 32, iData;
SerCtrlC0 = onSerTxComplete_C0;
SerPortC1 = 19200;
RxBufferC1 = 32, iData;
TxBufferC1 = 32, iData;
SerCtrlC1 = onSerTxComplete_C1;
implementation
{$IDATA}
{-------------------------------------------------------------------------------
Main Program
-------------------------------------------------------------------------------}
var usart : tUSARTenum;
begin
usart := USARTC0;
SetSerEnable(USARTC0,true);
SetSerEnable(usart,true);
end test.
Attachments
Filename: | SetSerEnable.png |
Filesize: | 35.42 KB |
Title: | set ser enable compiler fehler |
Download counter: | 94 |