Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoreglitch <mail@s3f.ru>2020-10-26 10:16:54 +0300
committerGitHub <noreply@github.com>2020-10-26 10:16:54 +0300
commitf5b342abbe1be200ed1298f3d1cccea21878507b (patch)
tree1b080481c2950e42fed6bb378c7c2435176da057 /applications/input
parentc8cc3c7dc8d980efe6101032efe355404228303f (diff)
Api hw gpio pwm (#199)
* initial gpio layer * move temlplate.c to template.c.example in preparing to applications.mk rework * separate arduino layer * separate flipper_hal.x * prepare to switch applications on v2 core gpio api * swithch applications to v2 gpio api * gpio api for local target * better gpio_disable handling * remove pwm functions from local target * inline gpio funcs * common function to init all api's * fix local example blink * move delay us to hal api folder * move pwm_set/pwm_stop to hal api folder * update applications to use hal pwm api * remove gpio mode case warning * add speaker demo to build Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
Diffstat (limited to 'applications/input')
-rw-r--r--applications/input/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/input/input.c b/applications/input/input.c
index 814cb2fb..eec75eb1 100644
--- a/applications/input/input.c
+++ b/applications/input/input.c
@@ -56,7 +56,7 @@ void input_task(void* p) {
for(;;) {
bool changed = false;
for(uint32_t i = 0; i < INPUT_COUNT; i++) {
- bool input_state = app_gpio_read(input_gpio[i]) ^ input_invert[i];
+ bool input_state = gpio_read(&input_gpio[i]) ^ input_invert[i];
if(input_state) {
if(debounce_counters[i] < DEBOUNCE_TICKS) {
debounce_counters[i] += 1;