Kestrel Interface
Loading...
Searching...
No Matches
kest_footswitch.c File Reference
#include <freertos/FreeRTOS.h>
#include <driver/gpio.h>
#include "kest_int.h"

Go to the source code of this file.

Macros

#define HW_SWITCH_GPIO_0   22
#define HW_SWITCH_GPIO_1   23
#define HW_SWITCH_DEBOUNCE_MS   100
#define HW_SWITCH_TASK_STACK   2048
#define HW_SWITCH_TASK_PRIO   6

Functions

void footswitch_task (void *arg)
int init_footswitch_task ()

Variables

uint8_t left_switch_state = 0
uint8_t right_switch_state = 0

Macro Definition Documentation

◆ HW_SWITCH_DEBOUNCE_MS

#define HW_SWITCH_DEBOUNCE_MS   100

Definition at line 9 of file kest_footswitch.c.

Referenced by footswitch_task().

◆ HW_SWITCH_GPIO_0

#define HW_SWITCH_GPIO_0   22

Definition at line 6 of file kest_footswitch.c.

Referenced by init_footswitch_task().

◆ HW_SWITCH_GPIO_1

#define HW_SWITCH_GPIO_1   23

Definition at line 7 of file kest_footswitch.c.

Referenced by init_footswitch_task().

◆ HW_SWITCH_TASK_PRIO

#define HW_SWITCH_TASK_PRIO   6

Definition at line 11 of file kest_footswitch.c.

Referenced by init_footswitch_task().

◆ HW_SWITCH_TASK_STACK

#define HW_SWITCH_TASK_STACK   2048

Definition at line 10 of file kest_footswitch.c.

Referenced by init_footswitch_task().

Function Documentation

◆ footswitch_task()

void footswitch_task ( void * arg)

Definition at line 31 of file kest_footswitch.c.

Referenced by init_footswitch_task().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_footswitch_task()

int init_footswitch_task ( )

Definition at line 55 of file kest_footswitch.c.

Here is the call graph for this function:

Variable Documentation

◆ left_switch_state

uint8_t left_switch_state = 0

Definition at line 13 of file kest_footswitch.c.

◆ right_switch_state

uint8_t right_switch_state = 0

Definition at line 14 of file kest_footswitch.c.