From b9a4e2b39322a7024241431aaa53b1a971432a79 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Sun, 26 May 2024 15:33:06 +0200 Subject: [PATCH] getport added --- Makefile | 2 +- mc8051fun.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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);