[an error occurred while processing this directive]
|
вот так работает
union{
long asdf;
struct{
char D;
char C;
char B;
char A;
};
struct{
long MD:18;
long VCO:6;
long RD:4;
long PD:4;
};
};
void main(void)
{PD=0x00;
RD=0x07;
VCO=0x21;
MD=0x44a4;
openuart(_2400+1);
while(1)
{puthex(A);puthex(B);puthex(C);puthex(D);putstr(" \r\n");}
}
вот так не работает, значения A,B равны 0!!!!
union{
long asdf;
struct{
char D;
char C;
char B;
char A;
};
struct{
long MD:18;
char VCO:6;
char RD:4;
char PD:4;
};
};
void main(void)
{PD=0x00;
RD=0x07;
VCO=0x21;
MD=0x44a4;
openuart(_2400+1);
while(1)
{puthex(A);puthex(B);puthex(C);puthex(D);putstr(" \r\n");}
}
E-mail: info@telesys.ru