-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Telink]: Updated lock-app to fully support NVS storage. (#31744)
* [Telink]: Updated lock-app to fully support NVS storage. Reduced Lock-app RAM usage from 12kb to 4kb. Refactored credential storage. Signed-off-by: Misha Tkachenko <[email protected]> * Restyled by whitespace * Restyled by clang-format * [Telink]: Added PWM configuration to project file Added PWM configuration to project file --------- Signed-off-by: Misha Tkachenko <[email protected]> Co-authored-by: Serhii Salamakha <[email protected]> Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Alex Tsitsiura <[email protected]>
- Loading branch information
1 parent
2823126
commit 8da05d0
Showing
19 changed files
with
664 additions
and
204 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
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
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,16 @@ | ||
/ { | ||
keys { | ||
compatible = "gpio-keys"; | ||
key_5: button_5 { | ||
gpios = <&gpioe 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; | ||
}; | ||
key_6: button_6 { | ||
gpios = <&gpioe 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpioe { | ||
interrupts = <38 1>; | ||
status = "okay"; | ||
}; |
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,16 @@ | ||
/ { | ||
keys { | ||
compatible = "gpio-keys"; | ||
key_5: button_5 { | ||
gpios = <&gpiob 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; | ||
}; | ||
key_6: button_6 { | ||
gpios = <&gpiob 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpiob { | ||
interrupts = <39 1>; | ||
status = "okay"; | ||
}; |
16 changes: 16 additions & 0 deletions
16
examples/lock-app/telink/boards/tlsr9528a_retention.overlay
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,16 @@ | ||
/ { | ||
keys { | ||
compatible = "gpio-keys"; | ||
key_5: button_5 { | ||
gpios = <&gpiob 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; | ||
}; | ||
key_6: button_6 { | ||
gpios = <&gpiob 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpiob { | ||
interrupts = <39 1>; | ||
status = "okay"; | ||
}; |
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
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
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
Oops, something went wrong.