uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
config.h
Go to the documentation of this file.
1 
4 /*
5  * Copyright 2015 Sebastian Neuser
6  *
7  * This file is part of the uMIDI firmware.
8  *
9  * The uMIDI firmware is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * The uMIDI firmware is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with the uMIDI firmware. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef _CONFIG_H
24 #define _CONFIG_H
25 
26 
27 //---------------- includes ----------------//
28 #include <stdint.h>
29 
30 #include "lib/adc.h"
31 #include "lib/background_tasks.h"
32 #include "lib/gpio.h"
33 #include "lib/midi.h"
35 
36 
37 //---------------- macros ----------------//
39 #define ENABLE_SWITCH_PIN gpio.header3.pin7
40 
42 #define POWER_LED_PIN gpio.header3.pin5
43 
45 #define STATUS_LED_PIN gpio.header3.pin6
46 
47 //---------------- constant declarations ----------------//
48 extern struct adc_config adc_config;
50 
52 extern uint8_t high_frequency_tasks_size;
54 extern uint8_t mid_frequency_tasks_size;
56 extern uint8_t low_frequency_tasks_size;
57 
58 extern struct gpio_mapping gpio_mappings[];
59 extern uint8_t gpio_mappings_size;
60 
61 extern struct led power_led;
62 extern struct led status_led;
63 
64 extern struct midi_config midi_config;
65 
66 extern struct serial_command serial_commands[];
67 extern uint8_t serial_commands_size;
68 
69 //---------------- EOF ----------------//
70 #endif // _CONFIG_H
71 
const struct adc_conversion_config expression_conversion
Definition: config.c:47
struct gpio_mapping gpio_mappings[]
Definition: config.c:101
uint8_t high_frequency_tasks_size
Definition: config.c:57
MIDI transceiver module configuration.
Definition: midi.h:135
GPIO configuration and service functions.
background_task_t high_frequency_tasks[]
Definition: config.c:54
uint8_t low_frequency_tasks_size
Definition: config.c:69
ADC configuration common to all conversions.
Definition: adc.h:88
Serial communication module.
void(* background_task_t)(void)
Data type for background task pointers.
Definition: background_tasks.h:49
ADC configuration and service functions.
MIDI message transceiver.
uint8_t mid_frequency_tasks_size
Definition: config.c:63
uint8_t serial_commands_size
Definition: config.c:98
Command specification.
Definition: serial_communication.h:72
struct serial_command serial_commands[]
Definition: config.c:93
Enumeration for the on-board LEDs.
Definition: leds.h:72
uint8_t gpio_mappings_size
Definition: config.c:107
Background task scheduler.
ADC conversion configuration.
Definition: adc.h:73
struct led status_led
Definition: config.c:114
background_task_t mid_frequency_tasks[]
Definition: config.c:59
background_task_t low_frequency_tasks[]
Definition: config.c:65
Maps a GPIO pin to its designated type / function.
Definition: gpio.h:65
struct led power_led
Definition: config.c:110