mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

Committer:
screamer
Date:
Tue Aug 02 14:07:36 2016 +0000
Revision:
144:423e1876dc07
Parent:
18:da299f395b9e
Added targets.json file for the supported targets in the release

Who changed what in which revision?

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