uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
tests.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012-2015 Sebastian Neuser
3  *
4  * This file is part of the uMIDI firmware.
5  *
6  * The uMIDI firmware is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * The uMIDI firmware is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with the uMIDI firmware. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 /*
21  * Header for the uMIDI firmware test suite.
22  */
23 
24 #ifndef _TESTS_H
25 #define _TESTS_H
26 
27 
28 //---------------- includes ----------------//
29 
30 
31 //---------------- constants ----------------//
32 
33 
34 //---------------- data types ----------------//
35 
36 
37 //---------------- functions and procedures ----------------//
38 void run_test(void (*)(void));
39 void run_test_with_parameter(void (*)(void*), void*);
40 void run_test_suite(void);
41 void dummy_test(void);
42 
43 // LED tests
44 void blink_led_test(void);
45 void flash_led_test(void);
46 void set_led_test(void);
47 void toggle_led_test(void);
48 
49 // GPIO tests
50 void clear_gpio_test(void);
51 void set_gpio_test(void);
52 void toggle_gpio_test(void);
53 
54 // MIDI TX tests
55 void send_control_change_test(void);
56 void send_note_off_test(void);
57 void send_note_on_test(void);
58 void send_program_change_test(void);
59 
60 // PWM tests
61 void apply_duty_cycle_test(void *duty);
62 
63 
64 //---------------- EOF ----------------//
65 #endif // _TESTS_H
void send_note_off_test(void)
Definition: tests.c:138
void send_control_change_test(void)
Definition: tests.c:133
void run_test_with_parameter(void(*)(void *), void *)
Definition: tests.c:54
void run_test(void(*)(void))
Definition: tests.c:47
void flash_led_test(void)
Definition: tests.c:99
void set_led_test(void)
Definition: tests.c:104
void send_program_change_test(void)
Definition: tests.c:148
void apply_duty_cycle_test(void *duty)
Definition: tests.c:154
void blink_led_test(void)
Definition: tests.c:94
void clear_gpio_test(void)
Definition: tests.c:117
void send_note_on_test(void)
Definition: tests.c:143
void set_gpio_test(void)
Definition: tests.c:122
void dummy_test(void)
Definition: tests.c:90
void run_test_suite(void)
Definition: tests.c:61
void toggle_led_test(void)
Definition: tests.c:110
void toggle_gpio_test(void)
Definition: tests.c:127