mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_clocks.h@144:423e1876dc07, 2016-08-02 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 15:a81a8d6c1dfe | 1 | /** |
mbed_official | 15:a81a8d6c1dfe | 2 | * \file |
mbed_official | 15:a81a8d6c1dfe | 3 | * |
mbed_official | 15:a81a8d6c1dfe | 4 | * \brief SAM R21 Clock configuration |
mbed_official | 15:a81a8d6c1dfe | 5 | * |
mbed_official | 15:a81a8d6c1dfe | 6 | * Copyright (C) 2014-2015 Atmel Corporation. All rights reserved. |
mbed_official | 15:a81a8d6c1dfe | 7 | * |
mbed_official | 15:a81a8d6c1dfe | 8 | * \asf_license_start |
mbed_official | 15:a81a8d6c1dfe | 9 | * |
mbed_official | 15:a81a8d6c1dfe | 10 | * \page License |
mbed_official | 15:a81a8d6c1dfe | 11 | * |
mbed_official | 15:a81a8d6c1dfe | 12 | * Redistribution and use in source and binary forms, with or without |
mbed_official | 15:a81a8d6c1dfe | 13 | * modification, are permitted provided that the following conditions are met: |
mbed_official | 15:a81a8d6c1dfe | 14 | * |
mbed_official | 15:a81a8d6c1dfe | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 15:a81a8d6c1dfe | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 15:a81a8d6c1dfe | 17 | * |
mbed_official | 15:a81a8d6c1dfe | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 15:a81a8d6c1dfe | 19 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 15:a81a8d6c1dfe | 20 | * and/or other materials provided with the distribution. |
mbed_official | 15:a81a8d6c1dfe | 21 | * |
mbed_official | 15:a81a8d6c1dfe | 22 | * 3. The name of Atmel may not be used to endorse or promote products derived |
mbed_official | 15:a81a8d6c1dfe | 23 | * from this software without specific prior written permission. |
mbed_official | 15:a81a8d6c1dfe | 24 | * |
mbed_official | 15:a81a8d6c1dfe | 25 | * 4. This software may only be redistributed and used in connection with an |
mbed_official | 15:a81a8d6c1dfe | 26 | * Atmel microcontroller product. |
mbed_official | 15:a81a8d6c1dfe | 27 | * |
mbed_official | 15:a81a8d6c1dfe | 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED |
mbed_official | 15:a81a8d6c1dfe | 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
mbed_official | 15:a81a8d6c1dfe | 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE |
mbed_official | 15:a81a8d6c1dfe | 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR |
mbed_official | 15:a81a8d6c1dfe | 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 15:a81a8d6c1dfe | 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
mbed_official | 15:a81a8d6c1dfe | 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
mbed_official | 15:a81a8d6c1dfe | 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
mbed_official | 15:a81a8d6c1dfe | 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
mbed_official | 15:a81a8d6c1dfe | 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
mbed_official | 15:a81a8d6c1dfe | 38 | * POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 15:a81a8d6c1dfe | 39 | * |
mbed_official | 15:a81a8d6c1dfe | 40 | * \asf_license_stop |
mbed_official | 15:a81a8d6c1dfe | 41 | * |
mbed_official | 15:a81a8d6c1dfe | 42 | */ |
mbed_official | 15:a81a8d6c1dfe | 43 | /* |
mbed_official | 15:a81a8d6c1dfe | 44 | * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a> |
mbed_official | 15:a81a8d6c1dfe | 45 | */ |
mbed_official | 15:a81a8d6c1dfe | 46 | #include <clock.h> |
mbed_official | 15:a81a8d6c1dfe | 47 | |
mbed_official | 15:a81a8d6c1dfe | 48 | #ifndef CONF_CLOCKS_H_INCLUDED |
mbed_official | 15:a81a8d6c1dfe | 49 | # define CONF_CLOCKS_H_INCLUDED |
mbed_official | 15:a81a8d6c1dfe | 50 | |
mbed_official | 15:a81a8d6c1dfe | 51 | /* System clock bus configuration */ |
mbed_official | 15:a81a8d6c1dfe | 52 | # define CONF_CLOCK_CPU_CLOCK_FAILURE_DETECT false |
mbed_official | 15:a81a8d6c1dfe | 53 | # define CONF_CLOCK_FLASH_WAIT_STATES 0 |
mbed_official | 15:a81a8d6c1dfe | 54 | # define CONF_CLOCK_CPU_DIVIDER SYSTEM_MAIN_CLOCK_DIV_1 |
mbed_official | 15:a81a8d6c1dfe | 55 | # define CONF_CLOCK_APBA_DIVIDER SYSTEM_MAIN_CLOCK_DIV_1 |
mbed_official | 15:a81a8d6c1dfe | 56 | # define CONF_CLOCK_APBB_DIVIDER SYSTEM_MAIN_CLOCK_DIV_1 |
mbed_official | 15:a81a8d6c1dfe | 57 | # define CONF_CLOCK_APBC_DIVIDER SYSTEM_MAIN_CLOCK_DIV_1 |
mbed_official | 15:a81a8d6c1dfe | 58 | |
mbed_official | 15:a81a8d6c1dfe | 59 | /* SYSTEM_CLOCK_SOURCE_OSC8M configuration - Internal 8MHz oscillator */ |
mbed_official | 15:a81a8d6c1dfe | 60 | # define CONF_CLOCK_OSC8M_PRESCALER SYSTEM_OSC8M_DIV_1 |
mbed_official | 15:a81a8d6c1dfe | 61 | # define CONF_CLOCK_OSC8M_ON_DEMAND true |
mbed_official | 15:a81a8d6c1dfe | 62 | # define CONF_CLOCK_OSC8M_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 63 | |
mbed_official | 15:a81a8d6c1dfe | 64 | /* SYSTEM_CLOCK_SOURCE_XOSC configuration - External clock/oscillator */ |
mbed_official | 15:a81a8d6c1dfe | 65 | # define CONF_CLOCK_XOSC_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 66 | # define CONF_CLOCK_XOSC_EXTERNAL_CRYSTAL SYSTEM_CLOCK_EXTERNAL_CRYSTAL |
mbed_official | 15:a81a8d6c1dfe | 67 | # define CONF_CLOCK_XOSC_EXTERNAL_FREQUENCY 12000000UL |
mbed_official | 15:a81a8d6c1dfe | 68 | # define CONF_CLOCK_XOSC_STARTUP_TIME SYSTEM_XOSC_STARTUP_32768 |
mbed_official | 15:a81a8d6c1dfe | 69 | # define CONF_CLOCK_XOSC_AUTO_GAIN_CONTROL true |
mbed_official | 15:a81a8d6c1dfe | 70 | # define CONF_CLOCK_XOSC_ON_DEMAND true |
mbed_official | 15:a81a8d6c1dfe | 71 | # define CONF_CLOCK_XOSC_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 72 | |
mbed_official | 15:a81a8d6c1dfe | 73 | /* SYSTEM_CLOCK_SOURCE_XOSC32K configuration - External 32KHz crystal/clock oscillator */ |
mbed_official | 15:a81a8d6c1dfe | 74 | # define CONF_CLOCK_XOSC32K_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 75 | # define CONF_CLOCK_XOSC32K_EXTERNAL_CRYSTAL SYSTEM_CLOCK_EXTERNAL_CRYSTAL |
mbed_official | 15:a81a8d6c1dfe | 76 | # define CONF_CLOCK_XOSC32K_STARTUP_TIME SYSTEM_XOSC32K_STARTUP_65536 |
mbed_official | 15:a81a8d6c1dfe | 77 | # define CONF_CLOCK_XOSC32K_AUTO_AMPLITUDE_CONTROL false |
mbed_official | 15:a81a8d6c1dfe | 78 | # define CONF_CLOCK_XOSC32K_ENABLE_1KHZ_OUPUT false |
mbed_official | 15:a81a8d6c1dfe | 79 | # define CONF_CLOCK_XOSC32K_ENABLE_32KHZ_OUTPUT true |
mbed_official | 15:a81a8d6c1dfe | 80 | # define CONF_CLOCK_XOSC32K_ON_DEMAND true |
mbed_official | 15:a81a8d6c1dfe | 81 | # define CONF_CLOCK_XOSC32K_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 82 | |
mbed_official | 15:a81a8d6c1dfe | 83 | //! [oscillator_settings] |
mbed_official | 15:a81a8d6c1dfe | 84 | /* SYSTEM_CLOCK_SOURCE_OSC32K configuration - Internal 32KHz oscillator */ |
mbed_official | 15:a81a8d6c1dfe | 85 | # define CONF_CLOCK_OSC32K_ENABLE true |
mbed_official | 15:a81a8d6c1dfe | 86 | # define CONF_CLOCK_OSC32K_STARTUP_TIME SYSTEM_OSC32K_STARTUP_130 |
mbed_official | 15:a81a8d6c1dfe | 87 | # define CONF_CLOCK_OSC32K_ENABLE_1KHZ_OUTPUT true |
mbed_official | 15:a81a8d6c1dfe | 88 | # define CONF_CLOCK_OSC32K_ENABLE_32KHZ_OUTPUT true |
mbed_official | 15:a81a8d6c1dfe | 89 | # define CONF_CLOCK_OSC32K_ON_DEMAND true |
mbed_official | 15:a81a8d6c1dfe | 90 | # define CONF_CLOCK_OSC32K_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 91 | //! [oscillator_settings] |
mbed_official | 15:a81a8d6c1dfe | 92 | |
mbed_official | 15:a81a8d6c1dfe | 93 | /* SYSTEM_CLOCK_SOURCE_DFLL configuration - Digital Frequency Locked Loop */ |
mbed_official | 15:a81a8d6c1dfe | 94 | # define CONF_CLOCK_DFLL_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 95 | # define CONF_CLOCK_DFLL_LOOP_MODE SYSTEM_CLOCK_DFLL_LOOP_MODE_OPEN |
mbed_official | 15:a81a8d6c1dfe | 96 | # define CONF_CLOCK_DFLL_ON_DEMAND false |
mbed_official | 15:a81a8d6c1dfe | 97 | |
mbed_official | 15:a81a8d6c1dfe | 98 | /* DFLL open loop mode configuration */ |
mbed_official | 15:a81a8d6c1dfe | 99 | # define CONF_CLOCK_DFLL_FINE_VALUE (0xff / 4) |
mbed_official | 15:a81a8d6c1dfe | 100 | |
mbed_official | 15:a81a8d6c1dfe | 101 | /* DFLL closed loop mode configuration */ |
mbed_official | 15:a81a8d6c1dfe | 102 | # define CONF_CLOCK_DFLL_SOURCE_GCLK_GENERATOR GCLK_GENERATOR_1 |
mbed_official | 15:a81a8d6c1dfe | 103 | # define CONF_CLOCK_DFLL_MULTIPLY_FACTOR 6 |
mbed_official | 15:a81a8d6c1dfe | 104 | # define CONF_CLOCK_DFLL_QUICK_LOCK true |
mbed_official | 15:a81a8d6c1dfe | 105 | # define CONF_CLOCK_DFLL_TRACK_AFTER_FINE_LOCK true |
mbed_official | 15:a81a8d6c1dfe | 106 | # define CONF_CLOCK_DFLL_KEEP_LOCK_ON_WAKEUP true |
mbed_official | 15:a81a8d6c1dfe | 107 | # define CONF_CLOCK_DFLL_ENABLE_CHILL_CYCLE true |
mbed_official | 15:a81a8d6c1dfe | 108 | # define CONF_CLOCK_DFLL_MAX_COARSE_STEP_SIZE (0x1f / 4) |
mbed_official | 15:a81a8d6c1dfe | 109 | # define CONF_CLOCK_DFLL_MAX_FINE_STEP_SIZE (0xff / 4) |
mbed_official | 15:a81a8d6c1dfe | 110 | |
mbed_official | 15:a81a8d6c1dfe | 111 | /* SYSTEM_CLOCK_SOURCE_DPLL configuration - Digital Phase-Locked Loop */ |
mbed_official | 15:a81a8d6c1dfe | 112 | # define CONF_CLOCK_DPLL_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 113 | # define CONF_CLOCK_DPLL_ON_DEMAND true |
mbed_official | 15:a81a8d6c1dfe | 114 | # define CONF_CLOCK_DPLL_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 115 | # define CONF_CLOCK_DPLL_LOCK_BYPASS false |
mbed_official | 15:a81a8d6c1dfe | 116 | # define CONF_CLOCK_DPLL_WAKE_UP_FAST false |
mbed_official | 15:a81a8d6c1dfe | 117 | # define CONF_CLOCK_DPLL_LOW_POWER_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 118 | |
mbed_official | 15:a81a8d6c1dfe | 119 | # define CONF_CLOCK_DPLL_LOCK_TIME SYSTEM_CLOCK_SOURCE_DPLL_LOCK_TIME_DEFAULT |
mbed_official | 15:a81a8d6c1dfe | 120 | # define CONF_CLOCK_DPLL_REFERENCE_CLOCK SYSTEM_CLOCK_SOURCE_DPLL_REFERENCE_CLOCK_XOSC32K |
mbed_official | 15:a81a8d6c1dfe | 121 | # define CONF_CLOCK_DPLL_FILTER SYSTEM_CLOCK_SOURCE_DPLL_FILTER_DEFAULT |
mbed_official | 15:a81a8d6c1dfe | 122 | |
mbed_official | 15:a81a8d6c1dfe | 123 | # define CONF_CLOCK_DPLL_REFERENCE_FREQUENCY 32768 |
mbed_official | 15:a81a8d6c1dfe | 124 | # define CONF_CLOCK_DPLL_REFERENCE_DIVIDER 1 |
mbed_official | 15:a81a8d6c1dfe | 125 | # define CONF_CLOCK_DPLL_OUTPUT_FREQUENCY 48000000 |
mbed_official | 15:a81a8d6c1dfe | 126 | |
mbed_official | 15:a81a8d6c1dfe | 127 | /* DPLL GCLK reference configuration */ |
mbed_official | 15:a81a8d6c1dfe | 128 | # define CONF_CLOCK_DPLL_REFERENCE_GCLK_GENERATOR GCLK_GENERATOR_1 |
mbed_official | 15:a81a8d6c1dfe | 129 | /* DPLL GCLK lock timer configuration */ |
mbed_official | 15:a81a8d6c1dfe | 130 | # define CONF_CLOCK_DPLL_LOCK_GCLK_GENERATOR GCLK_GENERATOR_1 |
mbed_official | 15:a81a8d6c1dfe | 131 | |
mbed_official | 15:a81a8d6c1dfe | 132 | /* Set this to true to configure the GCLK when running clocks_init. If set to |
mbed_official | 15:a81a8d6c1dfe | 133 | * false, none of the GCLK generators will be configured in clocks_init(). */ |
mbed_official | 15:a81a8d6c1dfe | 134 | # define CONF_CLOCK_CONFIGURE_GCLK true |
mbed_official | 15:a81a8d6c1dfe | 135 | |
mbed_official | 15:a81a8d6c1dfe | 136 | /* Configure GCLK generator 0 (Main Clock) */ |
mbed_official | 15:a81a8d6c1dfe | 137 | # define CONF_CLOCK_GCLK_0_ENABLE true |
mbed_official | 15:a81a8d6c1dfe | 138 | # define CONF_CLOCK_GCLK_0_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 139 | # define CONF_CLOCK_GCLK_0_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC8M |
mbed_official | 15:a81a8d6c1dfe | 140 | # define CONF_CLOCK_GCLK_0_PRESCALER 1 |
mbed_official | 15:a81a8d6c1dfe | 141 | # define CONF_CLOCK_GCLK_0_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 142 | |
mbed_official | 15:a81a8d6c1dfe | 143 | /* Configure GCLK generator 1 */ |
mbed_official | 15:a81a8d6c1dfe | 144 | # define CONF_CLOCK_GCLK_1_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 145 | # define CONF_CLOCK_GCLK_1_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 146 | # define CONF_CLOCK_GCLK_1_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC8M |
mbed_official | 15:a81a8d6c1dfe | 147 | # define CONF_CLOCK_GCLK_1_PRESCALER 1 |
mbed_official | 15:a81a8d6c1dfe | 148 | # define CONF_CLOCK_GCLK_1_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 149 | |
mbed_official | 15:a81a8d6c1dfe | 150 | //! [gclk_settings] |
mbed_official | 15:a81a8d6c1dfe | 151 | /* Configure GCLK generator 2 (RTC) */ |
mbed_official | 15:a81a8d6c1dfe | 152 | # define CONF_CLOCK_GCLK_2_ENABLE true |
mbed_official | 15:a81a8d6c1dfe | 153 | # define CONF_CLOCK_GCLK_2_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 154 | # define CONF_CLOCK_GCLK_2_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC32K |
mbed_official | 15:a81a8d6c1dfe | 155 | # define CONF_CLOCK_GCLK_2_PRESCALER 32 |
mbed_official | 15:a81a8d6c1dfe | 156 | # define CONF_CLOCK_GCLK_2_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 157 | //! [gclk_settings] |
mbed_official | 15:a81a8d6c1dfe | 158 | |
mbed_official | 15:a81a8d6c1dfe | 159 | /* Configure GCLK generator 3 */ |
mbed_official | 15:a81a8d6c1dfe | 160 | # define CONF_CLOCK_GCLK_3_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 161 | # define CONF_CLOCK_GCLK_3_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 162 | # define CONF_CLOCK_GCLK_3_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC8M |
mbed_official | 15:a81a8d6c1dfe | 163 | # define CONF_CLOCK_GCLK_3_PRESCALER 1 |
mbed_official | 15:a81a8d6c1dfe | 164 | # define CONF_CLOCK_GCLK_3_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 165 | |
mbed_official | 15:a81a8d6c1dfe | 166 | /* Configure GCLK generator 4 */ |
mbed_official | 15:a81a8d6c1dfe | 167 | # define CONF_CLOCK_GCLK_4_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 168 | # define CONF_CLOCK_GCLK_4_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 169 | # define CONF_CLOCK_GCLK_4_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC8M |
mbed_official | 15:a81a8d6c1dfe | 170 | # define CONF_CLOCK_GCLK_4_PRESCALER 1 |
mbed_official | 15:a81a8d6c1dfe | 171 | # define CONF_CLOCK_GCLK_4_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 172 | |
mbed_official | 15:a81a8d6c1dfe | 173 | /* Configure GCLK generator 5 */ |
mbed_official | 15:a81a8d6c1dfe | 174 | # define CONF_CLOCK_GCLK_5_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 175 | # define CONF_CLOCK_GCLK_5_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 176 | # define CONF_CLOCK_GCLK_5_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC8M |
mbed_official | 15:a81a8d6c1dfe | 177 | # define CONF_CLOCK_GCLK_5_PRESCALER 1 |
mbed_official | 15:a81a8d6c1dfe | 178 | # define CONF_CLOCK_GCLK_5_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 179 | |
mbed_official | 15:a81a8d6c1dfe | 180 | /* Configure GCLK generator 6 */ |
mbed_official | 15:a81a8d6c1dfe | 181 | # define CONF_CLOCK_GCLK_6_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 182 | # define CONF_CLOCK_GCLK_6_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 183 | # define CONF_CLOCK_GCLK_6_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC8M |
mbed_official | 15:a81a8d6c1dfe | 184 | # define CONF_CLOCK_GCLK_6_PRESCALER 1 |
mbed_official | 15:a81a8d6c1dfe | 185 | # define CONF_CLOCK_GCLK_6_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 186 | |
mbed_official | 15:a81a8d6c1dfe | 187 | /* Configure GCLK generator 7 */ |
mbed_official | 15:a81a8d6c1dfe | 188 | # define CONF_CLOCK_GCLK_7_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 189 | # define CONF_CLOCK_GCLK_7_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 190 | # define CONF_CLOCK_GCLK_7_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC8M |
mbed_official | 15:a81a8d6c1dfe | 191 | # define CONF_CLOCK_GCLK_7_PRESCALER 1 |
mbed_official | 15:a81a8d6c1dfe | 192 | # define CONF_CLOCK_GCLK_7_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 193 | |
mbed_official | 15:a81a8d6c1dfe | 194 | /* Configure GCLK generator 8 */ |
mbed_official | 15:a81a8d6c1dfe | 195 | # define CONF_CLOCK_GCLK_8_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 196 | # define CONF_CLOCK_GCLK_8_RUN_IN_STANDBY false |
mbed_official | 15:a81a8d6c1dfe | 197 | # define CONF_CLOCK_GCLK_8_CLOCK_SOURCE SYSTEM_CLOCK_SOURCE_OSC8M |
mbed_official | 15:a81a8d6c1dfe | 198 | # define CONF_CLOCK_GCLK_8_PRESCALER 1 |
mbed_official | 15:a81a8d6c1dfe | 199 | # define CONF_CLOCK_GCLK_8_OUTPUT_ENABLE false |
mbed_official | 15:a81a8d6c1dfe | 200 | |
mbed_official | 15:a81a8d6c1dfe | 201 | #endif /* CONF_CLOCKS_H_INCLUDED */ |
mbed_official | 15:a81a8d6c1dfe | 202 |