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