Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: platforms/common/stm32: fix for adc_start_conversion_direct not being defined for STM32F4 #1648

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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