Initial commit

This commit is contained in:
7u83 2024-05-26 15:33:30 +02:00
parent b9a4e2b393
commit 30f410891c

19
getport.c Normal file
View File

@ -0,0 +1,19 @@
#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;
}