nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: Code for GCC nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210:
nico@210: Code for GCC nico@210:
nico@210: void initCanHCS12 (void) nico@210:
nico@210: { nico@210:
nico@210: newline nico@210: /Init the HCS12 microcontroler for CanOpen
nico@210: 12(); nico@210:
nico@210: nico@210:
// Init the HCS12 driver nico@210:
nico@210: canBusInit bi0 = { nico@210:
nico@210: nico@210:
, nico@210:
* no low power nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
*/ nico@210:
nico@210: nico@210:
, nico@210:
* no time stamp nico@210: nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
&sstarf#star;/ nico@210:
nico@210: nico@210:
, nico@210:
* enable MSCAN nico@210: nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
*/ nico@210:
nico@210: nico@210:
, nico@210:
* clock source : oscillator (In fact, it is not used) nico@210: nico@210:
*/ nico@210:
nico@210: nico@210:
, nico@210:
* no loop back nico@210: nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
*/ nico@210:
nico@210: nico@210:
, nico@210:
* no listen only nico@210: nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
*/ nico@210:
nico@210: nico@210:
, nico@210:
* no low pass filter for wk up */ nico@210:
nico@210: _Baudrates[CAN_BAUDRATE_250K], nico@210:
nico@210: nico@210:
nico@210:
{ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, nico@210:
* Filter on 16 bits. nico@210:
nico@210: nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210:
nico@210: Motorola Block Guide V02.14 fig nico@210: 4-3 */ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, 0xFF, /* filter 0 hight accept all msg nico@210: nico@210:
nico@210:
&sstarf#star;/ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, 0xFF, /* filter 0 low accept all msg nico@210: nico@210:
nico@210:
nico@210:
&sstarf#star;/ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, 0xFF, /* filter 1 hight filter all of nico@210: &sstarf#star;/ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, 0xFF, /* filter 1 low filter all of nico@210: nico@210:
&sstarf#star;/ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, 0xFF, /* filter 2 hight filter most of nico@210: */ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, 0xFF, /* filter 2 low filter most of nico@210: nico@210:
*/ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, 0xFF, /* filter 3 hight filter most of nico@210: */ nico@210:
nico@210: nico@210:
nico@210:
nico@210: x00, 0xFF, /* filter 3 low filter most of nico@210: nico@210:
*/ nico@210:
nico@210: nico@210:
nico@210:
} nico@210:
nico@210: nico@210:
};
nico@210: nico@210:

nico@210: nico@210:

nico@210: nico@210:
nico@210: epimerde nico@210: 2007-06-05 nico@210:
nico@210: nico@210: