From 7ac66097984c1373d2e6702ba148aebf9ae5cd85 Mon Sep 17 00:00:00 2001 From: Piotr Wilkon Date: Fri, 10 Sep 2021 11:45:44 +0200 Subject: [PATCH] add comment --- Src/drivers/modem.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Src/drivers/modem.c b/Src/drivers/modem.c index 81f1ed9..e95995f 100644 --- a/Src/drivers/modem.c +++ b/Src/drivers/modem.c @@ -23,6 +23,7 @@ along with VP-Digi. If not, see . #include #include "common.h" + /* * Configuration for PLL-based data carrier detection * DCD_MAXPULSE is the maximum value of the DCD pulse counter @@ -602,6 +603,12 @@ static void afsk_ptt(uint8_t state) */ void Afsk_init(void) { + /** + * TIM1 is used for pushing samples to DAC (R2R or PWM) + * TIM3 is the baudrate generator for TX + * TIM4 is the PWM generator with no software interrupt + * TIM2 is the RX sampling timer with no software interrupt, but it directly calls DMA + */ RCC->APB2ENR |= RCC_APB2ENR_IOPBEN; RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;