getport added

This commit is contained in:
7u83 2024-05-26 15:33:06 +02:00
parent 64210a94ec
commit b9a4e2b393
2 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ LIBSRC = uart_init_.c uart_send_chr.c uart_send_str.c \
rotary_encoder_stat.c \ rotary_encoder_stat.c \
sevenseg_dec.c sevenseg_dec_inv.c \ sevenseg_dec.c sevenseg_dec_inv.c \
int_to_bcd.c getbutton.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)) LIBOBJ =$(patsubst %.c,%.rel, $(LIBSRC))
LIBNAME=mc8051fun.lib LIBNAME=mc8051fun.lib

View File

@ -66,6 +66,7 @@ void setpin_hi(i8051pin_T *pin);
void setpin_lo(i8051pin_T *pin); void setpin_lo(i8051pin_T *pin);
int getpin(i8051pin_T *pin); int getpin(i8051pin_T *pin);
void setpin(i8051pin_T *pin, uint8_t val); void setpin(i8051pin_T *pin, uint8_t val);
uint8_t getport(int n);