sysclk.c
Go to the documentation of this file.00001
00038 #include <compiler.h>
00039 #include <stdbool.h>
00040 #include <sysclk.h>
00041 #include <avr32/io.h>
00042 #include <flashc.h>
00043 #include <gpio.h>
00044
00045
00076 void sysclk_priv_enable_module(unsigned int bus_id, unsigned int module_index)
00077 {
00078
00079 }
00080
00089 void sysclk_priv_disable_module(unsigned int bus_id, unsigned int module_index)
00090 {
00091 }
00092
00093
00098 void sysclk_disable_pbb_module(unsigned int index)
00099 {
00100 }
00101
00102 #ifdef CONFIG_USBCLK_SOURCE
00103 void sysclk_enable_usb(void)
00104 {
00105 }
00106
00107 void sysclk_disable_usb(void)
00108 {
00109 }
00110 #endif // CONFIG_USBCLK_SOURCE
00111
00112
00113 void sysclk_init(void)
00114 {
00115
00116 AVR32_PM.fpcvr = 0x80010001;
00117
00118
00119
00120
00121 gpio_enable_module_pin( AVR32_PM_GCLK_3_0_PIN, AVR32_PM_GCLK_3_0_FUNCTION);
00122
00123
00124 gpio_enable_module_pin( AVR32_PM_GCLK_0_0_PIN, AVR32_PM_GCLK_0_0_FUNCTION);
00125 }
00126