Use defined FLASH_PIN for setting LED
This commit is contained in:
parent
fd824d37cf
commit
cb9508b2ac
4
flash.c
4
flash.c
@ -2,7 +2,7 @@
|
|||||||
#include <8052.h>
|
#include <8052.h>
|
||||||
|
|
||||||
#ifndef FLASH_PIN
|
#ifndef FLASH_PIN
|
||||||
#define FLASH_PIN P2_0
|
#define FLASH_PIN _P2_0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef IRQFREQ
|
#ifndef IRQFREQ
|
||||||
@ -31,7 +31,7 @@ void handler() __interrupt 1
|
|||||||
dec _ctr_w
|
dec _ctr_w
|
||||||
cjne a,_ctr_w, 00001$
|
cjne a,_ctr_w, 00001$
|
||||||
|
|
||||||
cpl _P2_0
|
cpl FLASH_PIN
|
||||||
__endasm;
|
__endasm;
|
||||||
|
|
||||||
ctr_l = TCT&0xFF;
|
ctr_l = TCT&0xFF;
|
||||||
|
Loading…
Reference in New Issue
Block a user