# Copyright (c) 2020 Inria
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#

config CPU_FAM_F4
    bool
    select CPU_STM32
    select CPU_CORE_CORTEX_M4F
    select HAS_CPU_STM32F4
    select HAS_CORTEXM_MPU
    select HAS_PERIPH_FLASHPAGE
    select HAS_PERIPH_RTC_MEM
    select HAS_PERIPH_WDT
    select HAS_BOOTLOADER_STM32

config CPU_FAM
    default "f4" if CPU_FAM_F4

config HAS_CPU_STM32F4
    bool
    help
        Indicates that the cpu being used belongs to the 'stm32f4' family.

config CLOCK_MAX_84MHZ
    bool
    help
        Indicates that the CPU max core clock frequency is 84MHz

config CLOCK_MAX_100MHZ
    bool
    help
        Indicates that the CPU max core clock frequency is 100MHz

config CLOCK_MAX_180MHZ
    bool
    help
        Indicates that the CPU max core clock frequency is 180MHz