Device configuration.
More...
#include <stddef.h>
#include "lib/adc.h"
#include "lib/background_tasks.h"
#include "lib/gpio.h"
#include "lib/leds.h"
#include "lib/midi.h"
#include "lib/serial_communication.h"
#include "lib/usb.h"
#include "lib/wave.h"
#include "config.h"
#include "wah.h"
◆ cmd_string_enable
const char cmd_string_enable[] = "enable" |
|
static |
◆ cmd_string_speed
const char cmd_string_speed[] = "speed" |
|
static |
◆ cmd_string_tap
const char cmd_string_tap[] = "tap" |
|
static |
◆ cmd_string_waveform
const char cmd_string_waveform[] = "waveform" |
|
static |
◆ gpio_mappings
Initial value:= {
}
The GPIO pin acts as an output.
Definition: gpio.h:50
The GPIO pin acts as an input and is pulled up.
Definition: gpio.h:49
Configurations for all available GPIO pins.
Definition: gpio.h:95
const struct gpio_header header3
Pin header GPIO3 on the PCB.
Definition: gpio.h:99
◆ gpio_mappings_size
◆ help_string_enable
const char help_string_enable[] |
|
static |
Initial value:= "<a>\n"
"Enable or disable the effect:\n"
"<a> : action\n"
" 't' = enable\n"
" ? = disable"
◆ help_string_speed
const char help_string_speed[] |
|
static |
Initial value:= "<s>\n"
"Adjust the speed of the effect if in waveform mode:\n"
"<s> : wave speed\n"
◆ help_string_tap
const char help_string_tap[] = "\nSend this command repeatedly to tap in a tempo\n" |
|
static |
◆ help_string_waveform
const char help_string_waveform[] |
|
static |
Initial value:= "<w>\n"
"En-/disable waveform mode and set waveform:\n"
"<w> : waveform\n"
" \"next\" = switch to next waveform\n"
" \"prev\" = switch to previous waveform\n"
" \"off\" = disable"
◆ high_frequency_tasks
Initial value:= {
}
void serial_communication_task(void)
Main task for USB communication.
Definition: serial_communication.c:477
void update_wah_pwm(void)
Definition: wah.c:188
◆ high_frequency_tasks_size
◆ low_frequency_tasks
Initial value:= {
}
void handle_switch(void)
Definition: wah.c:160
void update_leds(void)
State machine task that updates the LEDs.
Definition: leds.c:195
void tap_tempo_task(void)
Background task for the tap tempo function.
Definition: wave.c:258
◆ low_frequency_tasks_size
◆ mid_frequency_tasks
Initial value:= {
}
void usb_main_task(void)
Main background task for USB CDC operation.
Definition: usb.c:181
◆ mid_frequency_tasks_size
◆ midi_config
Initial value:= {
.event_handlers = {
.program_change = NULL
},
.omni_mode = false,
.signal_rx = false,
}
void handle_midi_cc(midi_value_t controller, midi_value_t value)
Definition: wah.c:143
void handle_midi_note_off(midi_value_t note, midi_value_t velocity)
Definition: wah.c:148
MIDI channel 1.
Definition: midi.h:61
void handle_midi_note_on(midi_value_t note, midi_value_t velocity)
Definition: wah.c:154
◆ serial_commands
Initial value:= {
}
static const char cmd_string_tap[]
Definition: config.c:95
bool exec_speed(const char *command)
Definition: wah.c:86
static const char cmd_string_enable[]
Definition: config.c:85
static const char cmd_string_speed[]
Definition: config.c:91
bool exec_tap(const char *command)
Definition: wah.c:100
bool exec_waveform(const char *command)
Definition: wah.c:106
bool exec_enable(const char *command)
Definition: wah.c:75
static const char help_string_waveform[]
Definition: config.c:98
static const char help_string_tap[]
Definition: config.c:96
static const char cmd_string_waveform[]
Definition: config.c:97
static const char help_string_speed[]
Definition: config.c:92
static const char help_string_enable[]
Definition: config.c:86
◆ serial_commands_size