1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | # Kconfig - Discovery IoT L475 board configuration
#
# Copyright (c) 2017 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
if BOARD_DISCO_L475_IOT1
config BOARD
default "disco_l475_iot1"
if BT
choice CLOCK_STM32_SYSCLK_SRC
default CLOCK_STM32_SYSCLK_SRC_MSI
endchoice
if CLOCK_STM32_SYSCLK_SRC_MSI
config CLOCK_STM32_MSI_RANGE
default 8
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 16000000
endif # CLOCK_STM32_SYSCLK_SRC_MSI
endif #BT
if !BT
choice CLOCK_STM32_SYSCLK_SRC
default CLOCK_STM32_SYSCLK_SRC_PLL
endchoice
endif #BT
if CLOCK_STM32_SYSCLK_SRC_PLL
if CLOCK_STM32_PLL_SRC_HSI
# produce 80MHz clock at PLL output
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 80000000
config CLOCK_STM32_PLL_M_DIVISOR
default 1
config CLOCK_STM32_PLL_N_MULTIPLIER
default 20
config CLOCK_STM32_PLL_P_DIVISOR
default 7
config CLOCK_STM32_PLL_Q_DIVISOR
default 2
config CLOCK_STM32_PLL_R_DIVISOR
default 4
endif # CLOCK_STM32_PLL_SRC_HSI
endif # CLOCK_STM32_SYSCLK_SRC_PLL
if UART_CONSOLE
config UART_1
default y
endif # UART_CONSOLE
if SERIAL
config UART_4
default y
endif # SERIAL
if I2C
config I2C_1
default y
config I2C_2
default y
endif # I2C
if SPI
config SPI_STM32_INTERRUPT
default y
config SPI_1
default y
config SPI_3
default y
endif # SPI
if PWM
config PWM_STM32_2
default y
endif # PWM
choice LIS3MDL_TRIGGER_MODE
default LIS3MDL_TRIGGER_NONE
endchoice
choice HTS221_TRIGGER_MODE
default HTS221_TRIGGER_NONE
endchoice
if VL53L0X
config VL53L0X_XSHUT_CONTROL_ENABLE
default y
config VL53L0X_XSHUT_GPIO_DEV_NAME
default "GPIOC"
config VL53L0X_XSHUT_GPIO_PIN_NUM
default 6
endif #VL53L0X
if LSM6DSL
choice LSM6DSL_TRIGGER_MODE
default LSM6DSL_TRIGGER_GLOBAL_THREAD
endchoice
endif # LSM6DSL
if BT
config SPI
default y
choice BT_HCI_BUS_TYPE
default BT_SPI
endchoice
config BT_SPI_BLUENRG
default y
config BT_BLUENRG_ACI
default y
# Disable Flow control
config BT_HCI_ACL_FLOW_CONTROL
default n
config BT_HCI_VS_EXT
default n
endif #BT
if WIFI
config SPI
default y
config WIFI_ESWIFI
default y
endif #WIFI
endif # BOARD_DISCO_L475_IOT1
|