Skip to content

Commit

Permalink
platforms/common-stm32: fix for adc_start_conversion_direct only bein…
Browse files Browse the repository at this point in the history
…g defined for STM32F1, and not for STM32F4
  • Loading branch information
lenvm committed Oct 18, 2023
1 parent 9fe5889 commit eecae8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/common/stm32/timing_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static volatile uint32_t time_ms = 0;
uint32_t target_clk_divider = 0;

static size_t morse_tick = 0;
#ifdef PLATFORM_HAS_POWER_SWITCH
#if defined(PLATFORM_HAS_POWER_SWITCH) && defined(STM32F1)
static uint8_t monitor_ticks = 0;

/* Derived from calculating (1.2V / 3.0V) * 4096 */
Expand Down Expand Up @@ -90,7 +90,7 @@ void sys_tick_handler(void)
} else
++morse_tick;

#ifdef PLATFORM_HAS_POWER_SWITCH
#if defined(PLATFORM_HAS_POWER_SWITCH) && defined(STM32F1)
/* First check if target power is presently enabled */
if (platform_target_get_power()) {
/*
Expand Down

0 comments on commit eecae8f

Please sign in to comment.