Skip to content

Commit

Permalink
llvm: cpu/stm32: Fix unused function warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Teufelchen1 committed Mar 19, 2024
1 parent 3aaea1a commit 7b38e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/stm32/cpu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ static void _gpio_init_ain(void)
* This very teniously avoids optimization, even optimized it's better than
* nothing but periodic review should establish that it doesn't get optimized.
*/
#if defined(STM32_OPTION_BYTES)
__attribute__((always_inline))
static inline uint32_t _multi_read_reg32(volatile uint32_t *addr, bool *glitch)
{
Expand Down Expand Up @@ -242,7 +243,6 @@ static inline uint32_t _multi_read_reg32(volatile uint32_t *addr, bool *glitch)
*/

/* RDP only defined for particular families. Kconfig sets this as necessary */
#if defined(STM32_OPTION_BYTES)

#ifndef CONFIG_STM32_RDP
#define CONFIG_STM32_RDP 0
Expand Down

0 comments on commit 7b38e56

Please sign in to comment.