diff --git a/Makefile b/Makefile index fd352ff..6b6380b 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ LIBSRC = uart_init_.c uart_send_chr.c uart_send_str.c \ rotary_encoder_stat.c \ sevenseg_dec.c sevenseg_dec_inv.c \ int_to_bcd.c getbutton.c \ - getpin.c setpin_lo.c setpin_hi.c setpin.c + getpin.c setpin_lo.c setpin_hi.c setpin.c getport.c LIBOBJ =$(patsubst %.c,%.rel, $(LIBSRC)) LIBNAME=mc8051fun.lib diff --git a/mc8051fun.h b/mc8051fun.h index 7338716..ea28017 100644 --- a/mc8051fun.h +++ b/mc8051fun.h @@ -66,6 +66,7 @@ void setpin_hi(i8051pin_T *pin); void setpin_lo(i8051pin_T *pin); int getpin(i8051pin_T *pin); void setpin(i8051pin_T *pin, uint8_t val); +uint8_t getport(int n);