{HEADER END}
{DIFF START}

MLAB

[/] [Designs/] [dum/] [SW/] [2patra/] [1np/] [main.c] -

Rozdíly mezi revizemi 1748 a 1750

Zobraz celý soubor

Revize 1748 Revize 1750
Line 86... Line 86...
*/ */
#define LED1 PIN_J7 #define LED1 PIN_J7
#define LED2 PIN_J6 #define LED2 PIN_J6
  #define ON(port) output_low(port);
  #define OFF(port) output_high(port);
 
int1 s105AN; // Predchozi stav vypinacu int1 s105AN; // Predchozi stav vypinacu
int1 r110NJU; int1 r110NJU;
int1 r110NJD; int1 r110NJD;
int1 s104AZ; int1 s104AZ;
int1 r104VZU; int1 r104VZU;
Line 134... Line 137...
setup_timer_3(T3_DISABLED|T3_DIV_BY_1); setup_timer_3(T3_DISABLED|T3_DIV_BY_1);
setup_ccp1(CCP_OFF); setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC); setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE); setup_vref(FALSE);
  OFF(OS101A);
 
s105AN=S105AN; // Poznamenej vychozi stav vypinacu s105AN=S105AN; // Poznamenej vychozi stav vypinacu
r110NJU=R110NJU; r110NJU=R110NJU;
r110NJD=R110NJD; r110NJD=R110NJD;
s104AZ=S104AZ; s104AZ=S104AZ;
r104VZU=R104VZU; r104VZU=R104VZU;
Line 185... Line 190...
if(s106AV!=S106AV) {s106AV=S106AV; send(S16A);} if(s106AV!=S106AV) {s106AV=S106AV; send(S16A);}
if(s107AN!=S107AN) {s107AN=S107AN; send(S17A);} if(s107AN!=S107AN) {s107AN=S107AN; send(S17A);}
if(s109AJ!=S109AJ) {s109AJ=S109AJ; send(S19A);} if(s109AJ!=S109AJ) {s109AJ=S109AJ; send(S19A);}
if(s101AN!=S101AN) {s101AN=S101AN; send(S11A);} if(s101AN!=S101AN) {s101AN=S101AN; output_toggle(OS101A); delay_ms(100);}
if(s101AJ!=S101AJ) {s101AJ=S101AJ; send(S11A);} if(s101AJ!=S101AJ) {s101AJ=S101AJ; output_toggle(OS101A); delay_ms(100);}
if(s102AN!=S102AN) {s102AN=S102AN; send(S12A);} if(s102AN!=S102AN) {s102AN=S102AN; send(S12A);}
if(s110AN!=S110AN) {s110AN=S110AN; send(S1aA);} if(s110AN!=S110AN) {s110AN=S110AN; send(S1aA);}
if(s108AV!=S108AV) {s108AV=S108AV; send(S18A);} if(s108AV!=S108AV) {s108AV=S108AV; send(S18A);}
 
  if(get_timer0()>65000) {output_toggle(LED2); set_timer0(0);}
} }
} }
{DIFF END}
{FOOTER START}

Poháněno WebSVN v2.1 alpha 1