From 7cc46801fb3b4ceaf9775efa6f1ddbb13bfbaf56 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Sun, 19 May 2024 21:02:33 +0200 Subject: [PATCH] Newfunctions added --- mc8051fun.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mc8051fun.h b/mc8051fun.h index ec9012a..a47823a 100644 --- a/mc8051fun.h +++ b/mc8051fun.h @@ -18,4 +18,9 @@ int8_t rotary_encoder_stat(uint8_t b); extern uint8_t sevenseg_dec[10]; extern uint8_t sevenseg_dec_inv[10]; + +#define timer_init_val(freq) ((65536)-FOSC/12L/freq) + +uint16_t int_to_bcd(uint16_t i); + #endif