etisserant@38: /* etisserant@38: etisserant@41: This file is not part of CanFestival. etisserant@41: This is third party contributed file. etisserant@38: etisserant@41: It is provided as-this and without any warranty etisserant@38: etisserant@38: */ etisserant@38: etisserant@41: //**************************************************************************** etisserant@41: // Copyright (C) 2006 PEAK System-Technik GmbH etisserant@41: // etisserant@41: // linux@peak-system.com etisserant@41: // www.peak-system.com etisserant@41: // etisserant@41: // This part of software is proprietary. It is allowed to etisserant@41: // distribute it with CanFestival. etisserant@41: // etisserant@41: // No warranty at all is given. etisserant@41: // etisserant@41: // Maintainer(s): Edouard TISSERANT (edouard.tisserant@lolitech.fr) etisserant@41: //**************************************************************************** etisserant@38: etisserant@41: /* etisserant@42: Obfuscated by COBF (Version 1.06 2006-01-07 by BB) at Wed Aug 9 08:28:43 2006 etisserant@41: */ etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include etisserant@41: #include"timer.h" etisserant@41: #include"can_driver.h" etisserant@41: #include"timers_driver.h" etisserant@41: #include"cobf.h" etisserant@41: #ifndef extra_PCAN_init_params etisserant@41: #define extra_PCAN_init_params etisserant@42: #else etisserant@42: #define extra_PCAN_init_params , pcan_o("PCANHwType") ? pcan_6( \ etisserant@42: pcan_o("PCANHwType"), pcan_v,0):0 , pcan_o("PCANIO_Port") ? pcan_6( \ etisserant@42: pcan_o("PCANIO_Port"), pcan_v,0):0 , pcan_o("PCANInterupt") ? pcan_6( \ etisserant@42: pcan_o("PCANInterupt"), pcan_v,0):0 etisserant@41: #endif etisserant@41: #ifdef PCAN2_HEADER_ etisserant@42: #define pcan_t 2 etisserant@41: #else etisserant@42: #define pcan_t 1 etisserant@41: #endif etisserant@42: pcan_37 pcan_53{pcan_11 pcan_r;pcan_41 pcan_5;pcan_26*pcan_s;pcan_27* etisserant@42: pcan_l;}pcan_c;pcan_c pcan_h[pcan_t]={{0,},};pcan_48 pcan_k=pcan_40; etisserant@42: pcan_14 pcan_0(pcan_m pcan_b){ etisserant@41: #ifdef PCAN2_HEADER_ etisserant@42: pcan_d(pcan_h!=((pcan_c* )pcan_b))pcan_55(((pcan_c* )pcan_b)->pcan_l etisserant@42: ->pcan_20,pcan_y extra_PCAN_init_params);pcan_j etisserant@41: #endif etisserant@42: pcan_57(((pcan_c* )pcan_b)->pcan_l->pcan_20,pcan_y etisserant@42: extra_PCAN_init_params);}pcan_u pcan_17(pcan_m pcan_b,pcan_8*pcan_e){ etisserant@42: pcan_u pcan_f;pcan_24 pcan_a;pcan_13 pcan_i;pcan_19(&pcan_k); etisserant@41: #ifdef PCAN2_HEADER_ etisserant@42: pcan_d(pcan_h!=((pcan_c* )pcan_b))pcan_i=pcan_31(&pcan_a);pcan_j etisserant@41: #endif etisserant@42: pcan_i=pcan_51(&pcan_a);pcan_d(pcan_i==pcan_w){pcan_d(pcan_a.pcan_n&~ etisserant@42: (pcan_28|pcan_15)){pcan_d(pcan_a.pcan_n==pcan_23){pcan_2("\x21\x21" etisserant@41: "\x21\x20\x50\x65\x61\x6b\x20\x62\x6f\x61\x72\x64\x20\x72\x65\x61\x64" etisserant@42: "\x20\x3a\x20\x72\x65\x2d\x69\x6e\x69\x74\n");pcan_0(pcan_b);pcan_x( etisserant@42: 10000);}pcan_z(&pcan_k);pcan_q pcan_a.pcan_n==pcan_32?pcan_a.pcan_12[ etisserant@42: 2]:pcan_50;}pcan_e->pcan_16.pcan_25=pcan_a.pcan_18;pcan_d(pcan_a. etisserant@42: pcan_n==pcan_y)pcan_e->pcan_9=0;pcan_j pcan_e->pcan_9=1;pcan_e-> etisserant@42: pcan_1=pcan_a.pcan_7;pcan_3(pcan_f=0;pcan_fpcan_f[pcan_f]=pcan_a.pcan_12[pcan_f];}pcan_z(&pcan_k);pcan_q pcan_i etisserant@42: ;}pcan_14 pcan_47(pcan_m pcan_b){pcan_26*pcan_s=((pcan_c* )pcan_b)-> etisserant@42: pcan_s;pcan_8 pcan_e;pcan_21(((pcan_c* )pcan_b)->pcan_r){pcan_13 etisserant@42: pcan_i;pcan_d((pcan_i=pcan_17(pcan_b,&pcan_e))==pcan_w){pcan_30(); etisserant@42: pcan_54(pcan_s,&pcan_e);pcan_35();}pcan_j{pcan_d(!(pcan_i&pcan_33|| etisserant@42: pcan_i&pcan_42||pcan_i&pcan_49)){pcan_2("\x63\x61\x6e\x52\x65\x63\x65" etisserant@41: "\x69\x76\x65\x20\x72\x65\x74\x75\x72\x6e\x65\x64\x20\x65\x72\x72\x6f" etisserant@42: "\x72\x20\x28\x25\x64\x29\n",pcan_i);}pcan_x(1000);}}}pcan_u pcan_43( etisserant@42: pcan_m pcan_b,pcan_8*pcan_e){pcan_u pcan_f;pcan_24 pcan_a;pcan_a. etisserant@42: pcan_18=pcan_e->pcan_16.pcan_25;pcan_d(pcan_e->pcan_9==0)pcan_a. etisserant@42: pcan_n=pcan_y;pcan_j{pcan_a.pcan_n=pcan_28|pcan_15;}pcan_a.pcan_7= etisserant@42: pcan_e->pcan_1;pcan_3(pcan_f=0;pcan_fpcan_1;pcan_f++)pcan_a. etisserant@42: pcan_12[pcan_f]=pcan_e->pcan_f[pcan_f];pcan_p=pcan_w;pcan_36{pcan_19( etisserant@42: &pcan_k); etisserant@41: #ifdef PCAN2_HEADER_ etisserant@42: pcan_d(pcan_h!=((pcan_c* )pcan_b))pcan_p=pcan_56(&pcan_a);pcan_j etisserant@41: #endif etisserant@42: pcan_p=pcan_46(&pcan_a);pcan_d(pcan_p){pcan_d(pcan_p==pcan_23){pcan_2 etisserant@41: ("\x21\x21\x21\x20\x50\x65\x61\x6b\x20\x62\x6f\x61\x72\x64\x20\x77" etisserant@42: "\x72\x69\x74\x65\x20\x3a\x20\x72\x65\x2d\x69\x6e\x69\x74\n");pcan_0( etisserant@42: pcan_b);pcan_x(10000);}pcan_z(&pcan_k);pcan_x(100);}pcan_j{pcan_z(& etisserant@42: pcan_k);}}pcan_21(pcan_p!=pcan_w&&((pcan_c* )pcan_b)->pcan_r);pcan_q 0 etisserant@42: ;}pcan_m pcan_44(pcan_27*pcan_l){pcan_11 pcan_58[64];pcan_11*pcan_39; etisserant@42: pcan_22 pcan_g;pcan_3(pcan_g=0;pcan_gpcan_s; etisserant@42: pcan_0((pcan_c* )&pcan_h[pcan_g]);pcan_34((pcan_c* )&pcan_h[pcan_g],& etisserant@42: pcan_h[pcan_g].pcan_5);pcan_q(pcan_c* )&pcan_h[pcan_g];}pcan_22 etisserant@42: pcan_59(pcan_m pcan_b){((pcan_c* )pcan_b)->pcan_r=0; etisserant@41: #ifdef PCAN2_HEADER_ etisserant@42: pcan_d(pcan_h!=((pcan_c* )pcan_b))pcan_52();pcan_j etisserant@41: #endif etisserant@42: pcan_38();pcan_29(&((pcan_c* )pcan_b)->pcan_5);pcan_q 0;}