-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Network: Made kconfig ds18 and moisture sensor
- Loading branch information
Rocio
committed
Jul 12, 2022
1 parent
18768df
commit 45351e4
Showing
8 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rsource "../../firmware/peripherals/moisture_sensor/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
menu "Peripherals" | ||
menu "Hardware Periph Setup" | ||
if BOARD_M4A_24G | ||
rsource "../../boards/m4a-24g/Kconfig.periph" | ||
endif | ||
endmenu | ||
rsource "ds18_sensor/Kconfig" | ||
rsource "moisture_sensor/Kconfig" | ||
rsource "ds18_sensor/Kconfig" | ||
rsource "moisture_sensor/Kconfig" | ||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
menu "ds18 for soil" | ||
# Set if the ds18 for soil is connected | ||
config DS18_SOIL_CONNECTED | ||
bool "Set if it's connected" | ||
default y | ||
# Set the GPIO where it's connected | ||
config DS18_SOIL_GPIO | ||
int "GPIO where the ds18 is attached" | ||
default 0 | ||
config PIN_TEMP_SENSOR | ||
int "Pin to connect temperature sensor" | ||
default 5 | ||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,34 @@ | ||
menu "Moisture sensor setup" | ||
choice ADC_RES | ||
prompt "ADC_BITS_RESOLUTION" | ||
default ADC_RES_10BIT | ||
|
||
config ADC_RES_6BIT | ||
bool "ADC resolution: 6 bit" | ||
|
||
config ADC_RES_8BIT | ||
bool "ADC resolution: 8 bit" | ||
|
||
config ADC_RES_10BIT | ||
bool "ADC resolution: 10 bit" | ||
|
||
config ADC_RES_12BIT | ||
bool "ADC resolution: 12 bit" | ||
|
||
config ADC_RES_14BIT | ||
bool "ADC resolution: 14 bit" | ||
|
||
config ADC_RES_1B6IT | ||
bool "ADC resolution: 16 bit" | ||
endchoice | ||
|
||
config ADC_RES | ||
int | ||
|
||
default 255 if ADC_RES_6BIT | ||
default 48 if ADC_RES_8BIT | ||
default 32 if ADC_RES_10BIT | ||
default 0 if ADC_RES_12BIT | ||
default 254 if ADC_RES_14BIT | ||
default 253 if ADC_RES_16BIT | ||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rsource "../../firmware/peripherals/ds18_sensor/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters