Subversion Repositories HomeAutomation

Rev

Rev 769 | Rev 1416 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 769 Rev 771
Line 1... Line 1...
1
/*
1
/*
2
 * $Id: bios.c 769 2008-04-28 20:34:34Z arune $
2
 * $Id: bios.c 771 2008-05-01 18:01:33Z linlun $
3
 */
3
 */
4
 
4
 
5
#include <inttypes.h>
5
#include <inttypes.h>
6
#include <avr/io.h>
6
#include <avr/io.h>
7
#include <avr/interrupt.h>
7
#include <avr/interrupt.h>
Line 128... Line 128...
128
    tx_msg.ExtendedFlag = 1;
128
    tx_msg.ExtendedFlag = 1;
129
    tx_msg.Id = CAN_ID_NMT_BIOS_START;
129
    tx_msg.Id = CAN_ID_NMT_BIOS_START;
130
    tx_msg.DataLength = 8;
130
    tx_msg.DataLength = 8;
131
    tx_msg.Data.bytes[0] = BIOS_VERSION&0xff;
131
    tx_msg.Data.bytes[0] = BIOS_VERSION&0xff;
132
    tx_msg.Data.bytes[1] = (BIOS_VERSION>>8)&0xff;
132
    tx_msg.Data.bytes[1] = (BIOS_VERSION>>8)&0xff;
-
 
133
    tx_msg.Data.bytes[3] = 0x00;
133
    tx_msg.Data.bytes[4] = hwid&0xff;
134
    tx_msg.Data.bytes[4] = hwid&0xff;
134
    tx_msg.Data.bytes[5] = (hwid>>8)&0xff;
135
    tx_msg.Data.bytes[5] = (hwid>>8)&0xff;
135
    tx_msg.Data.bytes[6] = (hwid>>16)&0xff;
136
    tx_msg.Data.bytes[6] = (hwid>>16)&0xff;
136
    tx_msg.Data.bytes[7] = (hwid>>24)&0xff;
137
    tx_msg.Data.bytes[7] = (hwid>>24)&0xff;
137
 
138