[an error occurred while processing this directive]
|
typedef struct {
u32_t l1;
u32_t l2;
} two_long_t;
typedef union {
u8_t m[8] ;
two_long_t two_long;
} xz_t;
volatile xz_t xz;
// array[6] = 5,4,3,2,1,0
#define B5 3
#define B4 2
#define B3 1
#define B2 0
#define B1 7
#define B0 6
int main() {
xz.m[B5] = 0x00;
xz.m[B4] = 0x01;
xz.m[B3] = 0x02;
xz.m[B2] = 0x03;
xz.m[B1] = 0x84;
xz.m[B0] = 0x05;
xz.two_long.l1 <<= 1;
if (xz.two_long.l2 & 0x80000000) {
xz.two_long.l1 |= 1;
}
xz.two_long.l2 <<= 1;
while(1);
}
Составить ответ ||| Конференция ||| Архив
Ответы
E-mail: info@telesys.ru