21 lines
288 B
C
21 lines
288 B
C
#include "mc8051fun.h"
|
|
|
|
void setpin_lo(i8051pin_T *pin)
|
|
{
|
|
switch(pin->port){
|
|
case 0:
|
|
P0 &= (1<<pin->pin) ^ 0xFF;
|
|
break;
|
|
case 1:
|
|
P1 &= (1<<pin->pin) ^ 0xFF;
|
|
break;
|
|
case 2:
|
|
P2 &= (1<<pin->pin) ^ 0xFF;
|
|
break;
|
|
case 3:
|
|
P3 &= (1<<pin->pin) ^ 0xFF;
|
|
break;
|
|
}
|
|
}
|
|
|