uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
system.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 _SYSTEM_H
24 #define _SYSTEM_H
25 
26 
27 //---------------- includes ----------------//
28 
29 
30 //---------------- constants ----------------//
31 
32 
33 //---------------- data types ----------------//
34 
35 
36 //---------------- functions and procedures ----------------//
37 
40 void configure_system_clock(void);
41 
45 void enable_usb_pll(void);
46 
53 void panic(uint16_t delay_red_ms, uint16_t delay_green_ms);
54 
56 void wdt_reenable(void);
57 
58 
59 //---------------- EOF ----------------//
60 #endif // _SYSTEM_H
void wdt_reenable(void)
Re-enables the watchdog.
Definition: system.c:84
void configure_system_clock(void)
Configures the system clock.
Definition: system.c:36
void enable_usb_pll(void)
Configures the PLL for USB operation.
Definition: system.c:48
void panic(uint16_t delay_red_ms, uint16_t delay_green_ms)
Stops program execution and blinks the on-board LEDs.
Definition: system.c:60