20 lines
176 B
C
20 lines
176 B
C
#include "mc8051fun.h"
|
|
|
|
uint8_t getport(int n)
|
|
{
|
|
switch(n){
|
|
case 0:
|
|
return P0;
|
|
case 1:
|
|
return P1;
|
|
case 2:
|
|
return P2;
|
|
case 3:
|
|
return P3;
|
|
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|