# 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 BOARD
    default "nucleo-l433rc" if BOARD_NUCLEO_L433RC

config BOARD_NUCLEO_L433RC
    bool
    default y
    select BOARD_COMMON_NUCLEO64
    select CPU_MODEL_STM32L433RC

    # Put defined MCU peripherals here (in alphabetical order)
    select HAS_PERIPH_I2C
    select HAS_PERIPH_LPUART
    select HAS_PERIPH_PWM
    select HAS_PERIPH_RTC
    select HAS_PERIPH_RTT
    select HAS_PERIPH_SPI
    select HAS_PERIPH_TIMER
    select HAS_PERIPH_UART

    # Put other features for this board (in alphabetical order)
    # Note that a recent version of OpenOCD is required for flashing an image on
    # the second slot of the flash memory. This version has to be built from source
    # and at least contains the following commit
    # https://github.com/ntfreak/openocd/commit/a4d50544de07f13e3f9644d2b48e41ebdc91a7a3
    select HAS_RIOTBOOT

source "$(RIOTBOARD)/common/nucleo64/Kconfig"