uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
|
System configuration procedures. More...
Go to the source code of this file.
Functions | |
void | configure_system_clock (void) |
Configures the system clock. More... | |
void | enable_usb_pll (void) |
Configures the PLL for USB operation. More... | |
void | panic (uint16_t delay_red_ms, uint16_t delay_green_ms) |
Stops program execution and blinks the on-board LEDs. More... | |
void | wdt_reenable (void) |
Re-enables the watchdog. More... | |
System configuration procedures.
void configure_system_clock | ( | void | ) |
Configures the system clock.
Activates and selects the internal 32 MHz RC oscillator as system clock source.
void enable_usb_pll | ( | void | ) |
Configures the PLL for USB operation.
Sets the PLL output frequency to 48 MHz, enables the PLL and waits until it has successfully locked.
void panic | ( | uint16_t | delay_red_ms, |
uint16_t | delay_green_ms | ||
) |
Stops program execution and blinks the on-board LEDs.
Disables interrupts and watchdog and traps the program in an endless loop.
delay_red_ms | blink interval of the red LED in [ms] |
delay_green_ms | blink interval of the red LED in [ms] |
void wdt_reenable | ( | void | ) |
Re-enables the watchdog.