From cedad9df9f9066accc225c53e3dc6c4f8154b7e9 Mon Sep 17 00:00:00 2001 From: Allen Hill Date: Sun, 3 Sep 2023 18:29:13 -0400 Subject: [PATCH] Remove unused functions --- src/avclandrv.c | 31 ------------------------------- src/avclandrv.h | 3 --- 2 files changed, 34 deletions(-) diff --git a/src/avclandrv.c b/src/avclandrv.c index ee7fb68..cfb1647 100644 --- a/src/avclandrv.c +++ b/src/avclandrv.c @@ -178,37 +178,6 @@ AVCLAN_KnownMessage_t CMD_STOP2 = { const AVCLAN_KnownMessage_t CMD_BEEP = { UNICAST, 5, {0x00, 0x63, 0x29, 0x60, 0x02}}; -void AVC_HoldLine() { - STOPEvent; - - // wait for free line - uint8_t line_busy = 1; - - TCB1.CNT = 0; - do { - while (INPUT_IS_CLEAR) { - /* The comparison value was originally 25 with CK64 (tick period - of 4.34 us) at a clock frequency 14.7456MHz. For a more accurate tick - period of .5 us at 16MHz, the value should be approximately 225*/ - if (TCB1.CNT >= 900) - break; - } - if (TCB1.CNT > 864) - line_busy = 0; - } while (line_busy); - - // switch to out mode - AVC_OUT_EN(); - AVC_SET_LOGICAL_1(); - - STARTEvent; -} - -void AVC_ReleaseLine() { - AVC_SET_LOGICAL_0(); - AVC_OUT_DIS(); -} - void AVCLAN_init() { // Pull-ups are disabled by default // Set pin 6 and 7 as input diff --git a/src/avclandrv.h b/src/avclandrv.h index 39742ff..d094104 100644 --- a/src/avclandrv.h +++ b/src/avclandrv.h @@ -43,9 +43,6 @@ if (INPUT_IS_SET) \ AVCLAN_readframe(); -void AVC_HoldLine(); -void AVC_ReleaseLine(); - #define MAXMSGLEN 32 extern uint16_t CD_ID; // CD Changer ID