add shield to add driver to hardware setup
This commit is contained in:
parent
2c53c45c4b
commit
c7d9cb3fa8
4 changed files with 35 additions and 1 deletions
12
boards/shields/mlx90640_elecrow_i2c/Kconfig.defconfig
Normal file
12
boards/shields/mlx90640_elecrow_i2c/Kconfig.defconfig
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Copyright (c) 2024 PM
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_MLX90640_ELECROW_I2C
|
||||
|
||||
config SENSOR
|
||||
default y
|
||||
|
||||
config MLX90640
|
||||
default y
|
||||
|
||||
endif # SHIELD_MLX90640_ELECROW_I2C
|
6
boards/shields/mlx90640_elecrow_i2c/Kconfig.shield
Normal file
6
boards/shields/mlx90640_elecrow_i2c/Kconfig.shield
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Copyright (c) 2024 PM
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SHIELD_MLX90640_ELECROW_I2C
|
||||
def_bool $(shields_list_contains,mlx90640_elecrow_i2c)
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2024 PM
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
|
||||
mlx90640_mlx90640_elecrow_i2c: mlx90640@33 {
|
||||
compatible = "melexis,mlx90640";
|
||||
reg = <0x33>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
|
@ -4,7 +4,8 @@
|
|||
CONFIG_BOARD_ELECROW_ESP_TERMINAL=y
|
||||
CONFIG_SOC_SERIES_ESP32S3=y
|
||||
|
||||
CONFIG_MAIN_STACK_SIZE=8192 # increased for LVGL
|
||||
# increased for LVGL
|
||||
CONFIG_MAIN_STACK_SIZE=8192
|
||||
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_SERIAL=y
|
||||
|
|
Loading…
Reference in a new issue