Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Committer:
sahilmgandhi
Date:
Sun May 14 23:18:57 2017 +0000
Revision:
18:6a4db94011d3
Publishing again

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sahilmgandhi 18:6a4db94011d3 1 /**
sahilmgandhi 18:6a4db94011d3 2 * \file
sahilmgandhi 18:6a4db94011d3 3 *
sahilmgandhi 18:6a4db94011d3 4 * \brief SAM D21/R21/DA0/DA1 Clock Driver
sahilmgandhi 18:6a4db94011d3 5 *
sahilmgandhi 18:6a4db94011d3 6 * Copyright (C) 2012-2015 Atmel Corporation. All rights reserved.
sahilmgandhi 18:6a4db94011d3 7 *
sahilmgandhi 18:6a4db94011d3 8 * \asf_license_start
sahilmgandhi 18:6a4db94011d3 9 *
sahilmgandhi 18:6a4db94011d3 10 * \page License
sahilmgandhi 18:6a4db94011d3 11 *
sahilmgandhi 18:6a4db94011d3 12 * Redistribution and use in source and binary forms, with or without
sahilmgandhi 18:6a4db94011d3 13 * modification, are permitted provided that the following conditions are met:
sahilmgandhi 18:6a4db94011d3 14 *
sahilmgandhi 18:6a4db94011d3 15 * 1. Redistributions of source code must retain the above copyright notice,
sahilmgandhi 18:6a4db94011d3 16 * this list of conditions and the following disclaimer.
sahilmgandhi 18:6a4db94011d3 17 *
sahilmgandhi 18:6a4db94011d3 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
sahilmgandhi 18:6a4db94011d3 19 * this list of conditions and the following disclaimer in the documentation
sahilmgandhi 18:6a4db94011d3 20 * and/or other materials provided with the distribution.
sahilmgandhi 18:6a4db94011d3 21 *
sahilmgandhi 18:6a4db94011d3 22 * 3. The name of Atmel may not be used to endorse or promote products derived
sahilmgandhi 18:6a4db94011d3 23 * from this software without specific prior written permission.
sahilmgandhi 18:6a4db94011d3 24 *
sahilmgandhi 18:6a4db94011d3 25 * 4. This software may only be redistributed and used in connection with an
sahilmgandhi 18:6a4db94011d3 26 * Atmel microcontroller product.
sahilmgandhi 18:6a4db94011d3 27 *
sahilmgandhi 18:6a4db94011d3 28 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
sahilmgandhi 18:6a4db94011d3 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
sahilmgandhi 18:6a4db94011d3 30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
sahilmgandhi 18:6a4db94011d3 31 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
sahilmgandhi 18:6a4db94011d3 32 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
sahilmgandhi 18:6a4db94011d3 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
sahilmgandhi 18:6a4db94011d3 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
sahilmgandhi 18:6a4db94011d3 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
sahilmgandhi 18:6a4db94011d3 36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
sahilmgandhi 18:6a4db94011d3 37 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
sahilmgandhi 18:6a4db94011d3 38 * POSSIBILITY OF SUCH DAMAGE.
sahilmgandhi 18:6a4db94011d3 39 *
sahilmgandhi 18:6a4db94011d3 40 * \asf_license_stop
sahilmgandhi 18:6a4db94011d3 41 *
sahilmgandhi 18:6a4db94011d3 42 */
sahilmgandhi 18:6a4db94011d3 43 /*
sahilmgandhi 18:6a4db94011d3 44 * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
sahilmgandhi 18:6a4db94011d3 45 */
sahilmgandhi 18:6a4db94011d3 46
sahilmgandhi 18:6a4db94011d3 47 #ifndef CLOCK_CONFIG_CHECK_H
sahilmgandhi 18:6a4db94011d3 48 # define CLOCK_CONFIG_CHECK_H
sahilmgandhi 18:6a4db94011d3 49
sahilmgandhi 18:6a4db94011d3 50 #if !defined(CONF_CLOCK_FLASH_WAIT_STATES)
sahilmgandhi 18:6a4db94011d3 51 # error CONF_CLOCK_FLASH_WAIT_STATES not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 52 #endif
sahilmgandhi 18:6a4db94011d3 53
sahilmgandhi 18:6a4db94011d3 54 #if !defined(CONF_CLOCK_CPU_DIVIDER)
sahilmgandhi 18:6a4db94011d3 55 # error CONF_CLOCK_CPU_DIVIDER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 56 #endif
sahilmgandhi 18:6a4db94011d3 57
sahilmgandhi 18:6a4db94011d3 58 #if !defined(CONF_CLOCK_APBA_DIVIDER)
sahilmgandhi 18:6a4db94011d3 59 # error CONF_CLOCK_APBA_DIVIDER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 60 #endif
sahilmgandhi 18:6a4db94011d3 61
sahilmgandhi 18:6a4db94011d3 62 #if !defined(CONF_CLOCK_APBB_DIVIDER)
sahilmgandhi 18:6a4db94011d3 63 # error CONF_CLOCK_APBB_DIVIDER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 64 #endif
sahilmgandhi 18:6a4db94011d3 65
sahilmgandhi 18:6a4db94011d3 66 #if !defined(CONF_CLOCK_APBC_DIVIDER)
sahilmgandhi 18:6a4db94011d3 67 # error CONF_CLOCK_APBC_DIVIDER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 68 #endif
sahilmgandhi 18:6a4db94011d3 69
sahilmgandhi 18:6a4db94011d3 70 #if !defined(CONF_CLOCK_OSC8M_PRESCALER)
sahilmgandhi 18:6a4db94011d3 71 # error CONF_CLOCK_OSC8M_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 72 #endif
sahilmgandhi 18:6a4db94011d3 73
sahilmgandhi 18:6a4db94011d3 74 #if !defined(CONF_CLOCK_OSC8M_ON_DEMAND)
sahilmgandhi 18:6a4db94011d3 75 # error CONF_CLOCK_OSC8M_ON_DEMAND not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 76 #endif
sahilmgandhi 18:6a4db94011d3 77
sahilmgandhi 18:6a4db94011d3 78 #if !defined(CONF_CLOCK_OSC8M_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 79 # error CONF_CLOCK_OSC8M_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 80 #endif
sahilmgandhi 18:6a4db94011d3 81
sahilmgandhi 18:6a4db94011d3 82 #if !defined(CONF_CLOCK_XOSC_ENABLE)
sahilmgandhi 18:6a4db94011d3 83 # error CONF_CLOCK_XOSC_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 84 #endif
sahilmgandhi 18:6a4db94011d3 85
sahilmgandhi 18:6a4db94011d3 86 #if !defined(CONF_CLOCK_XOSC_EXTERNAL_CRYSTAL)
sahilmgandhi 18:6a4db94011d3 87 # error CONF_CLOCK_XOSC_EXTERNAL_CRYSTAL not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 88 #endif
sahilmgandhi 18:6a4db94011d3 89
sahilmgandhi 18:6a4db94011d3 90 #if !defined(CONF_CLOCK_XOSC_EXTERNAL_FREQUENCY)
sahilmgandhi 18:6a4db94011d3 91 # error CONF_CLOCK_XOSC_EXTERNAL_FREQUENCY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 92 #endif
sahilmgandhi 18:6a4db94011d3 93
sahilmgandhi 18:6a4db94011d3 94 #if !defined(CONF_CLOCK_XOSC_STARTUP_TIME)
sahilmgandhi 18:6a4db94011d3 95 # error CONF_CLOCK_XOSC_STARTUP_TIME not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 96 #endif
sahilmgandhi 18:6a4db94011d3 97
sahilmgandhi 18:6a4db94011d3 98 #if !defined(CONF_CLOCK_XOSC_AUTO_GAIN_CONTROL)
sahilmgandhi 18:6a4db94011d3 99 # error CONF_CLOCK_XOSC_AUTO_GAIN_CONTROL not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 100 #endif
sahilmgandhi 18:6a4db94011d3 101
sahilmgandhi 18:6a4db94011d3 102 #if !defined(CONF_CLOCK_XOSC_ON_DEMAND)
sahilmgandhi 18:6a4db94011d3 103 # error CONF_CLOCK_XOSC_ON_DEMAND not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 104 #endif
sahilmgandhi 18:6a4db94011d3 105
sahilmgandhi 18:6a4db94011d3 106 #if !defined(CONF_CLOCK_XOSC_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 107 # error CONF_CLOCK_XOSC_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 108 #endif
sahilmgandhi 18:6a4db94011d3 109
sahilmgandhi 18:6a4db94011d3 110 #if !defined(CONF_CLOCK_XOSC32K_ENABLE)
sahilmgandhi 18:6a4db94011d3 111 # error CONF_CLOCK_XOSC32K_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 112 #endif
sahilmgandhi 18:6a4db94011d3 113
sahilmgandhi 18:6a4db94011d3 114 #if !defined(CONF_CLOCK_XOSC32K_EXTERNAL_CRYSTAL)
sahilmgandhi 18:6a4db94011d3 115 # error CONF_CLOCK_XOSC32K_EXTERNAL_CRYSTAL not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 116 #endif
sahilmgandhi 18:6a4db94011d3 117
sahilmgandhi 18:6a4db94011d3 118 #if !defined(CONF_CLOCK_XOSC32K_STARTUP_TIME)
sahilmgandhi 18:6a4db94011d3 119 # error CONF_CLOCK_XOSC32K_STARTUP_TIME not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 120 #endif
sahilmgandhi 18:6a4db94011d3 121
sahilmgandhi 18:6a4db94011d3 122 #if !defined(CONF_CLOCK_XOSC32K_AUTO_AMPLITUDE_CONTROL)
sahilmgandhi 18:6a4db94011d3 123 # error CONF_CLOCK_XOSC32K_AUTO_AMPLITUDE_CONTROL not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 124 #endif
sahilmgandhi 18:6a4db94011d3 125
sahilmgandhi 18:6a4db94011d3 126 #if !defined(CONF_CLOCK_XOSC32K_ENABLE_1KHZ_OUPUT)
sahilmgandhi 18:6a4db94011d3 127 # error CONF_CLOCK_XOSC32K_ENABLE_1KHZ_OUPUT not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 128 #endif
sahilmgandhi 18:6a4db94011d3 129
sahilmgandhi 18:6a4db94011d3 130 #if !defined(CONF_CLOCK_XOSC32K_ENABLE_32KHZ_OUTPUT)
sahilmgandhi 18:6a4db94011d3 131 # error CONF_CLOCK_XOSC32K_ENABLE_32KHZ_OUTPUT not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 132 #endif
sahilmgandhi 18:6a4db94011d3 133
sahilmgandhi 18:6a4db94011d3 134 #if !defined(CONF_CLOCK_XOSC32K_ON_DEMAND)
sahilmgandhi 18:6a4db94011d3 135 # error CONF_CLOCK_XOSC32K_ON_DEMAND not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 136 #endif
sahilmgandhi 18:6a4db94011d3 137
sahilmgandhi 18:6a4db94011d3 138 #if !defined(CONF_CLOCK_XOSC32K_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 139 # error CONF_CLOCK_XOSC32K_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 140 #endif
sahilmgandhi 18:6a4db94011d3 141
sahilmgandhi 18:6a4db94011d3 142 #if !defined(CONF_CLOCK_OSC32K_ENABLE)
sahilmgandhi 18:6a4db94011d3 143 # error CONF_CLOCK_OSC32K_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 144 #endif
sahilmgandhi 18:6a4db94011d3 145
sahilmgandhi 18:6a4db94011d3 146 #if !defined(CONF_CLOCK_OSC32K_STARTUP_TIME)
sahilmgandhi 18:6a4db94011d3 147 # error CONF_CLOCK_OSC32K_STARTUP_TIME not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 148 #endif
sahilmgandhi 18:6a4db94011d3 149
sahilmgandhi 18:6a4db94011d3 150 #if !defined(CONF_CLOCK_OSC32K_ENABLE_1KHZ_OUTPUT)
sahilmgandhi 18:6a4db94011d3 151 # error CONF_CLOCK_OSC32K_ENABLE_1KHZ_OUTPUT not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 152 #endif
sahilmgandhi 18:6a4db94011d3 153
sahilmgandhi 18:6a4db94011d3 154 #if !defined(CONF_CLOCK_OSC32K_ENABLE_32KHZ_OUTPUT)
sahilmgandhi 18:6a4db94011d3 155 # error CONF_CLOCK_OSC32K_ENABLE_32KHZ_OUTPUT not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 156 #endif
sahilmgandhi 18:6a4db94011d3 157
sahilmgandhi 18:6a4db94011d3 158 #if !defined(CONF_CLOCK_OSC32K_ON_DEMAND)
sahilmgandhi 18:6a4db94011d3 159 # error CONF_CLOCK_OSC32K_ON_DEMAND not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 160 #endif
sahilmgandhi 18:6a4db94011d3 161
sahilmgandhi 18:6a4db94011d3 162 #if !defined(CONF_CLOCK_OSC32K_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 163 # error CONF_CLOCK_OSC32K_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 164 #endif
sahilmgandhi 18:6a4db94011d3 165
sahilmgandhi 18:6a4db94011d3 166 #if !defined(CONF_CLOCK_DFLL_ENABLE)
sahilmgandhi 18:6a4db94011d3 167 # error CONF_CLOCK_DFLL_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 168 #endif
sahilmgandhi 18:6a4db94011d3 169
sahilmgandhi 18:6a4db94011d3 170 #if !defined(CONF_CLOCK_DFLL_LOOP_MODE)
sahilmgandhi 18:6a4db94011d3 171 # error CONF_CLOCK_DFLL_LOOP_MODE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 172 #endif
sahilmgandhi 18:6a4db94011d3 173
sahilmgandhi 18:6a4db94011d3 174 #if !defined(CONF_CLOCK_DFLL_ON_DEMAND)
sahilmgandhi 18:6a4db94011d3 175 # error CONF_CLOCK_DFLL_ON_DEMAND not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 176 #endif
sahilmgandhi 18:6a4db94011d3 177
sahilmgandhi 18:6a4db94011d3 178 #if !defined(CONF_CLOCK_DFLL_FINE_VALUE)
sahilmgandhi 18:6a4db94011d3 179 # error CONF_CLOCK_DFLL_FINE_VALUE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 180 #endif
sahilmgandhi 18:6a4db94011d3 181
sahilmgandhi 18:6a4db94011d3 182 #if !defined(CONF_CLOCK_DFLL_SOURCE_GCLK_GENERATOR)
sahilmgandhi 18:6a4db94011d3 183 # error CONF_CLOCK_DFLL_SOURCE_GCLK_GENERATOR not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 184 #endif
sahilmgandhi 18:6a4db94011d3 185
sahilmgandhi 18:6a4db94011d3 186 #if !defined(CONF_CLOCK_DFLL_MULTIPLY_FACTOR)
sahilmgandhi 18:6a4db94011d3 187 # error CONF_CLOCK_DFLL_MULTIPLY_FACTOR not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 188 #endif
sahilmgandhi 18:6a4db94011d3 189
sahilmgandhi 18:6a4db94011d3 190 #if !defined(CONF_CLOCK_DFLL_QUICK_LOCK)
sahilmgandhi 18:6a4db94011d3 191 # error CONF_CLOCK_DFLL_QUICK_LOCK not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 192 #endif
sahilmgandhi 18:6a4db94011d3 193
sahilmgandhi 18:6a4db94011d3 194 #if !defined(CONF_CLOCK_DFLL_TRACK_AFTER_FINE_LOCK)
sahilmgandhi 18:6a4db94011d3 195 # error CONF_CLOCK_DFLL_TRACK_AFTER_FINE_LOCK not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 196 #endif
sahilmgandhi 18:6a4db94011d3 197
sahilmgandhi 18:6a4db94011d3 198 #if !defined(CONF_CLOCK_DFLL_KEEP_LOCK_ON_WAKEUP)
sahilmgandhi 18:6a4db94011d3 199 # error CONF_CLOCK_DFLL_KEEP_LOCK_ON_WAKEUP not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 200 #endif
sahilmgandhi 18:6a4db94011d3 201
sahilmgandhi 18:6a4db94011d3 202 #if !defined(CONF_CLOCK_DFLL_ENABLE_CHILL_CYCLE)
sahilmgandhi 18:6a4db94011d3 203 # error CONF_CLOCK_DFLL_ENABLE_CHILL_CYCLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 204 #endif
sahilmgandhi 18:6a4db94011d3 205
sahilmgandhi 18:6a4db94011d3 206 #if !defined(CONF_CLOCK_DFLL_MAX_COARSE_STEP_SIZE)
sahilmgandhi 18:6a4db94011d3 207 # error CONF_CLOCK_DFLL_MAX_COARSE_STEP_SIZE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 208 #endif
sahilmgandhi 18:6a4db94011d3 209
sahilmgandhi 18:6a4db94011d3 210 #if !defined(CONF_CLOCK_DFLL_MAX_FINE_STEP_SIZE)
sahilmgandhi 18:6a4db94011d3 211 # error CONF_CLOCK_DFLL_MAX_FINE_STEP_SIZE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 212 #endif
sahilmgandhi 18:6a4db94011d3 213
sahilmgandhi 18:6a4db94011d3 214 #if !defined(CONF_CLOCK_DPLL_ENABLE)
sahilmgandhi 18:6a4db94011d3 215 # error CONF_CLOCK_DPLL_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 216 #endif
sahilmgandhi 18:6a4db94011d3 217
sahilmgandhi 18:6a4db94011d3 218 #if !defined(CONF_CLOCK_DPLL_ON_DEMAND)
sahilmgandhi 18:6a4db94011d3 219 # error CONF_CLOCK_DPLL_ON_DEMAND not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 220 #endif
sahilmgandhi 18:6a4db94011d3 221
sahilmgandhi 18:6a4db94011d3 222 #if !defined(CONF_CLOCK_DPLL_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 223 # error CONF_CLOCK_DPLL_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 224 #endif
sahilmgandhi 18:6a4db94011d3 225
sahilmgandhi 18:6a4db94011d3 226 #if !defined(CONF_CLOCK_DPLL_LOCK_BYPASS)
sahilmgandhi 18:6a4db94011d3 227 # error CONF_CLOCK_DPLL_LOCK_BYPASS not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 228 #endif
sahilmgandhi 18:6a4db94011d3 229
sahilmgandhi 18:6a4db94011d3 230 #if !defined(CONF_CLOCK_DPLL_WAKE_UP_FAST)
sahilmgandhi 18:6a4db94011d3 231 # error CONF_CLOCK_DPLL_WAKE_UP_FAST not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 232 #endif
sahilmgandhi 18:6a4db94011d3 233
sahilmgandhi 18:6a4db94011d3 234 #if !defined(CONF_CLOCK_DPLL_LOW_POWER_ENABLE)
sahilmgandhi 18:6a4db94011d3 235 # error CONF_CLOCK_DPLL_LOW_POWER_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 236 #endif
sahilmgandhi 18:6a4db94011d3 237
sahilmgandhi 18:6a4db94011d3 238 #if !defined(CONF_CLOCK_DPLL_LOCK_TIME)
sahilmgandhi 18:6a4db94011d3 239 # error CONF_CLOCK_DPLL_LOCK_TIME not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 240 #endif
sahilmgandhi 18:6a4db94011d3 241
sahilmgandhi 18:6a4db94011d3 242 #if !defined(CONF_CLOCK_DPLL_REFERENCE_CLOCK)
sahilmgandhi 18:6a4db94011d3 243 # error CONF_CLOCK_DPLL_REFERENCE_CLOCK not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 244 #endif
sahilmgandhi 18:6a4db94011d3 245
sahilmgandhi 18:6a4db94011d3 246 #if !defined(CONF_CLOCK_DPLL_FILTER)
sahilmgandhi 18:6a4db94011d3 247 # error CONF_CLOCK_DPLL_FILTER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 248 #endif
sahilmgandhi 18:6a4db94011d3 249
sahilmgandhi 18:6a4db94011d3 250 #if !defined(CONF_CLOCK_DPLL_REFERENCE_FREQUENCY)
sahilmgandhi 18:6a4db94011d3 251 # error CONF_CLOCK_DPLL_REFERENCE_FREQUENCY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 252 #endif
sahilmgandhi 18:6a4db94011d3 253
sahilmgandhi 18:6a4db94011d3 254 #if !defined(CONF_CLOCK_DPLL_REFERENCE_DIVIDER)
sahilmgandhi 18:6a4db94011d3 255 # error CONF_CLOCK_DPLL_REFERENCE_DIVIDER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 256 #endif
sahilmgandhi 18:6a4db94011d3 257
sahilmgandhi 18:6a4db94011d3 258 #if !defined(CONF_CLOCK_DPLL_OUTPUT_FREQUENCY)
sahilmgandhi 18:6a4db94011d3 259 # error CONF_CLOCK_DPLL_OUTPUT_FREQUENCY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 260 #endif
sahilmgandhi 18:6a4db94011d3 261
sahilmgandhi 18:6a4db94011d3 262 #if !defined(CONF_CLOCK_DPLL_REFERENCE_GCLK_GENERATOR)
sahilmgandhi 18:6a4db94011d3 263 # error CONF_CLOCK_DPLL_REFERENCE_GCLK_GENERATOR not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 264 #endif
sahilmgandhi 18:6a4db94011d3 265
sahilmgandhi 18:6a4db94011d3 266 #if !defined(CONF_CLOCK_DPLL_LOCK_GCLK_GENERATOR)
sahilmgandhi 18:6a4db94011d3 267 # error CONF_CLOCK_DPLL_LOCK_GCLK_GENERATOR not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 268 #endif
sahilmgandhi 18:6a4db94011d3 269
sahilmgandhi 18:6a4db94011d3 270 #if !defined(CONF_CLOCK_CONFIGURE_GCLK)
sahilmgandhi 18:6a4db94011d3 271 # error CONF_CLOCK_CONFIGURE_GCLK not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 272 #endif
sahilmgandhi 18:6a4db94011d3 273
sahilmgandhi 18:6a4db94011d3 274 #if !defined(CONF_CLOCK_GCLK_0_ENABLE)
sahilmgandhi 18:6a4db94011d3 275 # error CONF_CLOCK_GCLK_0_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 276 #endif
sahilmgandhi 18:6a4db94011d3 277
sahilmgandhi 18:6a4db94011d3 278 #if !defined(CONF_CLOCK_GCLK_0_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 279 # error CONF_CLOCK_GCLK_0_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 280 #endif
sahilmgandhi 18:6a4db94011d3 281
sahilmgandhi 18:6a4db94011d3 282 #if !defined(CONF_CLOCK_GCLK_0_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 283 # error CONF_CLOCK_GCLK_0_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 284 #endif
sahilmgandhi 18:6a4db94011d3 285
sahilmgandhi 18:6a4db94011d3 286 #if !defined(CONF_CLOCK_GCLK_0_PRESCALER)
sahilmgandhi 18:6a4db94011d3 287 # error CONF_CLOCK_GCLK_0_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 288 #endif
sahilmgandhi 18:6a4db94011d3 289
sahilmgandhi 18:6a4db94011d3 290 #if !defined(CONF_CLOCK_GCLK_0_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 291 # error CONF_CLOCK_GCLK_0_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 292 #endif
sahilmgandhi 18:6a4db94011d3 293
sahilmgandhi 18:6a4db94011d3 294 #if !defined(CONF_CLOCK_GCLK_1_ENABLE)
sahilmgandhi 18:6a4db94011d3 295 # error CONF_CLOCK_GCLK_1_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 296 #endif
sahilmgandhi 18:6a4db94011d3 297
sahilmgandhi 18:6a4db94011d3 298 #if !defined(CONF_CLOCK_GCLK_1_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 299 # error CONF_CLOCK_GCLK_1_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 300 #endif
sahilmgandhi 18:6a4db94011d3 301
sahilmgandhi 18:6a4db94011d3 302 #if !defined(CONF_CLOCK_GCLK_1_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 303 # error CONF_CLOCK_GCLK_1_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 304 #endif
sahilmgandhi 18:6a4db94011d3 305
sahilmgandhi 18:6a4db94011d3 306 #if !defined(CONF_CLOCK_GCLK_1_PRESCALER)
sahilmgandhi 18:6a4db94011d3 307 # error CONF_CLOCK_GCLK_1_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 308 #endif
sahilmgandhi 18:6a4db94011d3 309
sahilmgandhi 18:6a4db94011d3 310 #if !defined(CONF_CLOCK_GCLK_1_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 311 # error CONF_CLOCK_GCLK_1_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 312 #endif
sahilmgandhi 18:6a4db94011d3 313
sahilmgandhi 18:6a4db94011d3 314 #if !defined(CONF_CLOCK_GCLK_2_ENABLE)
sahilmgandhi 18:6a4db94011d3 315 # error CONF_CLOCK_GCLK_2_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 316 #endif
sahilmgandhi 18:6a4db94011d3 317
sahilmgandhi 18:6a4db94011d3 318 #if !defined(CONF_CLOCK_GCLK_2_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 319 # error CONF_CLOCK_GCLK_2_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 320 #endif
sahilmgandhi 18:6a4db94011d3 321
sahilmgandhi 18:6a4db94011d3 322 #if !defined(CONF_CLOCK_GCLK_2_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 323 # error CONF_CLOCK_GCLK_2_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 324 #endif
sahilmgandhi 18:6a4db94011d3 325
sahilmgandhi 18:6a4db94011d3 326 #if !defined(CONF_CLOCK_GCLK_2_PRESCALER)
sahilmgandhi 18:6a4db94011d3 327 # error CONF_CLOCK_GCLK_2_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 328 #endif
sahilmgandhi 18:6a4db94011d3 329
sahilmgandhi 18:6a4db94011d3 330 #if !defined(CONF_CLOCK_GCLK_2_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 331 # error CONF_CLOCK_GCLK_2_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 332 #endif
sahilmgandhi 18:6a4db94011d3 333
sahilmgandhi 18:6a4db94011d3 334 #if !defined(CONF_CLOCK_GCLK_3_ENABLE)
sahilmgandhi 18:6a4db94011d3 335 # error CONF_CLOCK_GCLK_3_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 336 #endif
sahilmgandhi 18:6a4db94011d3 337
sahilmgandhi 18:6a4db94011d3 338 #if !defined(CONF_CLOCK_GCLK_3_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 339 # error CONF_CLOCK_GCLK_3_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 340 #endif
sahilmgandhi 18:6a4db94011d3 341
sahilmgandhi 18:6a4db94011d3 342 #if !defined(CONF_CLOCK_GCLK_3_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 343 # error CONF_CLOCK_GCLK_3_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 344 #endif
sahilmgandhi 18:6a4db94011d3 345
sahilmgandhi 18:6a4db94011d3 346 #if !defined(CONF_CLOCK_GCLK_3_PRESCALER)
sahilmgandhi 18:6a4db94011d3 347 # error CONF_CLOCK_GCLK_3_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 348 #endif
sahilmgandhi 18:6a4db94011d3 349
sahilmgandhi 18:6a4db94011d3 350 #if !defined(CONF_CLOCK_GCLK_3_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 351 # error CONF_CLOCK_GCLK_3_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 352 #endif
sahilmgandhi 18:6a4db94011d3 353
sahilmgandhi 18:6a4db94011d3 354 #if !defined(CONF_CLOCK_GCLK_4_ENABLE)
sahilmgandhi 18:6a4db94011d3 355 # error CONF_CLOCK_GCLK_4_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 356 #endif
sahilmgandhi 18:6a4db94011d3 357
sahilmgandhi 18:6a4db94011d3 358 #if !defined(CONF_CLOCK_GCLK_4_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 359 # error CONF_CLOCK_GCLK_4_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 360 #endif
sahilmgandhi 18:6a4db94011d3 361
sahilmgandhi 18:6a4db94011d3 362 #if !defined(CONF_CLOCK_GCLK_4_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 363 # error CONF_CLOCK_GCLK_4_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 364 #endif
sahilmgandhi 18:6a4db94011d3 365
sahilmgandhi 18:6a4db94011d3 366 #if !defined(CONF_CLOCK_GCLK_4_PRESCALER)
sahilmgandhi 18:6a4db94011d3 367 # error CONF_CLOCK_GCLK_4_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 368 #endif
sahilmgandhi 18:6a4db94011d3 369
sahilmgandhi 18:6a4db94011d3 370 #if !defined(CONF_CLOCK_GCLK_4_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 371 # error CONF_CLOCK_GCLK_4_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 372 #endif
sahilmgandhi 18:6a4db94011d3 373
sahilmgandhi 18:6a4db94011d3 374 #if !defined(CONF_CLOCK_GCLK_5_ENABLE)
sahilmgandhi 18:6a4db94011d3 375 # error CONF_CLOCK_GCLK_5_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 376 #endif
sahilmgandhi 18:6a4db94011d3 377
sahilmgandhi 18:6a4db94011d3 378 #if !defined(CONF_CLOCK_GCLK_5_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 379 # error CONF_CLOCK_GCLK_5_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 380 #endif
sahilmgandhi 18:6a4db94011d3 381
sahilmgandhi 18:6a4db94011d3 382 #if !defined(CONF_CLOCK_GCLK_5_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 383 # error CONF_CLOCK_GCLK_5_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 384 #endif
sahilmgandhi 18:6a4db94011d3 385
sahilmgandhi 18:6a4db94011d3 386 #if !defined(CONF_CLOCK_GCLK_5_PRESCALER)
sahilmgandhi 18:6a4db94011d3 387 # error CONF_CLOCK_GCLK_5_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 388 #endif
sahilmgandhi 18:6a4db94011d3 389
sahilmgandhi 18:6a4db94011d3 390 #if !defined(CONF_CLOCK_GCLK_5_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 391 # error CONF_CLOCK_GCLK_5_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 392 #endif
sahilmgandhi 18:6a4db94011d3 393
sahilmgandhi 18:6a4db94011d3 394 #if !defined(CONF_CLOCK_GCLK_6_ENABLE)
sahilmgandhi 18:6a4db94011d3 395 # error CONF_CLOCK_GCLK_6_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 396 #endif
sahilmgandhi 18:6a4db94011d3 397
sahilmgandhi 18:6a4db94011d3 398 #if !defined(CONF_CLOCK_GCLK_6_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 399 # error CONF_CLOCK_GCLK_6_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 400 #endif
sahilmgandhi 18:6a4db94011d3 401
sahilmgandhi 18:6a4db94011d3 402 #if !defined(CONF_CLOCK_GCLK_6_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 403 # error CONF_CLOCK_GCLK_6_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 404 #endif
sahilmgandhi 18:6a4db94011d3 405
sahilmgandhi 18:6a4db94011d3 406 #if !defined(CONF_CLOCK_GCLK_6_PRESCALER)
sahilmgandhi 18:6a4db94011d3 407 # error CONF_CLOCK_GCLK_6_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 408 #endif
sahilmgandhi 18:6a4db94011d3 409
sahilmgandhi 18:6a4db94011d3 410 #if !defined(CONF_CLOCK_GCLK_6_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 411 # error CONF_CLOCK_GCLK_6_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 412 #endif
sahilmgandhi 18:6a4db94011d3 413
sahilmgandhi 18:6a4db94011d3 414 #if !defined(CONF_CLOCK_GCLK_7_ENABLE)
sahilmgandhi 18:6a4db94011d3 415 # error CONF_CLOCK_GCLK_7_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 416 #endif
sahilmgandhi 18:6a4db94011d3 417
sahilmgandhi 18:6a4db94011d3 418 #if !defined(CONF_CLOCK_GCLK_7_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 419 # error CONF_CLOCK_GCLK_7_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 420 #endif
sahilmgandhi 18:6a4db94011d3 421
sahilmgandhi 18:6a4db94011d3 422 #if !defined(CONF_CLOCK_GCLK_7_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 423 # error CONF_CLOCK_GCLK_7_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 424 #endif
sahilmgandhi 18:6a4db94011d3 425
sahilmgandhi 18:6a4db94011d3 426 #if !defined(CONF_CLOCK_GCLK_7_PRESCALER)
sahilmgandhi 18:6a4db94011d3 427 # error CONF_CLOCK_GCLK_7_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 428 #endif
sahilmgandhi 18:6a4db94011d3 429
sahilmgandhi 18:6a4db94011d3 430 #if !defined(CONF_CLOCK_GCLK_7_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 431 # error CONF_CLOCK_GCLK_7_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 432 #endif
sahilmgandhi 18:6a4db94011d3 433
sahilmgandhi 18:6a4db94011d3 434 #if !defined(CONF_CLOCK_GCLK_8_ENABLE)
sahilmgandhi 18:6a4db94011d3 435 # error CONF_CLOCK_GCLK_8_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 436 #endif
sahilmgandhi 18:6a4db94011d3 437
sahilmgandhi 18:6a4db94011d3 438 #if !defined(CONF_CLOCK_GCLK_8_RUN_IN_STANDBY)
sahilmgandhi 18:6a4db94011d3 439 # error CONF_CLOCK_GCLK_8_RUN_IN_STANDBY not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 440 #endif
sahilmgandhi 18:6a4db94011d3 441
sahilmgandhi 18:6a4db94011d3 442 #if !defined(CONF_CLOCK_GCLK_8_CLOCK_SOURCE)
sahilmgandhi 18:6a4db94011d3 443 # error CONF_CLOCK_GCLK_8_CLOCK_SOURCE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 444 #endif
sahilmgandhi 18:6a4db94011d3 445
sahilmgandhi 18:6a4db94011d3 446 #if !defined(CONF_CLOCK_GCLK_8_PRESCALER)
sahilmgandhi 18:6a4db94011d3 447 # error CONF_CLOCK_GCLK_8_PRESCALER not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 448 #endif
sahilmgandhi 18:6a4db94011d3 449
sahilmgandhi 18:6a4db94011d3 450 #if !defined(CONF_CLOCK_GCLK_8_OUTPUT_ENABLE)
sahilmgandhi 18:6a4db94011d3 451 # error CONF_CLOCK_GCLK_8_OUTPUT_ENABLE not defined in conf_clocks.h
sahilmgandhi 18:6a4db94011d3 452 #endif
sahilmgandhi 18:6a4db94011d3 453
sahilmgandhi 18:6a4db94011d3 454 #endif /* CLOCK_CONFIG_CHECK_H */