|
typedef union
{
struct _bit{
unsigned char b0:1;
unsigned char b1:1;
.
.
.
.
.
} bit;
unsigned char bby;
}bBit;
struct Byte_Field
{
bBit Byte1;
.
.
.
}Field[3];
/////////////////////////////////////////////////////
void Init(void)
{
//TODO: Add your source code here
int i;
for(i=0;i<3;i++)
Field[i]=0;
}
이방법 외에 초기화 수행하는 방법좀 고수님 제시 부탁합니다~~
예제파일 있으면 더 좋고염~~
|