From 26f1f6d9e958c2dae16700a525be3492fd055bca Mon Sep 17 00:00:00 2001 From: Nicolas Munnich Date: Mon, 2 Sep 2024 12:50:23 +0200 Subject: [PATCH] SPI enable now local --- .../hardware-integration/shift-registers.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/docs/docs/development/hardware-integration/shift-registers.md b/docs/docs/development/hardware-integration/shift-registers.md index 81ba51bf..051987ce 100644 --- a/docs/docs/development/hardware-integration/shift-registers.md +++ b/docs/docs/development/hardware-integration/shift-registers.md @@ -102,16 +102,11 @@ If you are making a shield, add a `/boards/.over ### Enable SPI -Add the following line to your board's configuration files: +Add the following line to `.defconfig`, inside of your device's `if` block: -```kconfig title="/boards/.conf" -CONFIG_SPI=y -``` - -If you're editing your board's files directly, you should alternatively enable it like so: - -```kconfig title="/_defconfig" -CONFIG_SPI=y +```kconfig title=".defconfig" +config SPI + default y ``` ### Shift Register SPI Device