22 lines
272 B
C
22 lines
272 B
C
|
|
#include "mctools.h"
|
|
|
|
void setpin_lo(uint8_t port, uint8_t pin)
|
|
{
|
|
switch(port){
|
|
case 0:
|
|
P0 &= (1<<pin) ^ 0xFF;
|
|
break;
|
|
case 1:
|
|
P1 &= (1<<pin) ^ 0xFF;
|
|
break;
|
|
case 2:
|
|
P2 &= (1<<pin) ^ 0xFF;
|
|
break;
|
|
case 3:
|
|
P3 &= (1<<pin) ^ 0xFF;
|
|
break;
|
|
}
|
|
}
|
|
|