From 64b8265e9056a2d9a50c103eae19506f87d90efc Mon Sep 17 00:00:00 2001 From: Steins7 Date: Sun, 26 Jan 2020 17:07:06 +0100 Subject: [PATCH] Minor tweaks * config file * timer driver --- src/config.h | 9 --------- src/drivers/timer.c | 4 +--- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/config.h b/src/config.h index 6026b34..aa69fe6 100644 --- a/src/config.h +++ b/src/config.h @@ -88,12 +88,3 @@ //#define SPI5_GPIO_PORT //#define SPI5_GPIO_PINS -/**************************************************************************** - * ADC pin and use configuration - ****************************************************************************/ - -// ADC1: ADC1_0 --> PA0, ADC1_1 -->PA1 -//#define USE_ADC1 -//#define ADC1_GPIO_PORT _GPIOA -//#define ADC1_GPIO_PINS PIN_0|PIN_1 - diff --git a/src/drivers/timer.c b/src/drivers/timer.c index 1c58586..9a1c82d 100644 --- a/src/drivers/timer.c +++ b/src/drivers/timer.c @@ -3,9 +3,6 @@ extern Clock_t sysclks; //------------------------------------------------------------------------------ -/** timerX_isr - * timerX ISR (Interrupt Service Routine) - */ static OnTick callback1 = 0; static OnTick callback2 = 0; static OnTick callback3 = 0; @@ -31,6 +28,7 @@ void TIM4_IRQHandler(void) { TIM4->SR &= ~0x1F; } +//------------------------------------------------------------------------------ int timer_config_cb(TIM_TypeDef* tmr, uint32_t* clk, OnTick cb) { IRQn_Type irqn; uint32_t irq_priority;