Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of OmniWheels by
mbed-os/targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_clock.h@2:798925c9e4a8, 2018-05-01 (annotated)
- Committer:
- gustavatmel
- Date:
- Tue May 01 15:55:34 2018 +0000
- Revision:
- 2:798925c9e4a8
- Parent:
- 1:9c5af431a1f1
bluetooth
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| gustavatmel | 1:9c5af431a1f1 | 1 | /** |
| gustavatmel | 1:9c5af431a1f1 | 2 | * \file |
| gustavatmel | 1:9c5af431a1f1 | 3 | * |
| gustavatmel | 1:9c5af431a1f1 | 4 | * \brief SAMG55 clock configuration. |
| gustavatmel | 1:9c5af431a1f1 | 5 | * |
| gustavatmel | 1:9c5af431a1f1 | 6 | * Copyright (c) 2014-2015 Atmel Corporation. All rights reserved. |
| gustavatmel | 1:9c5af431a1f1 | 7 | * |
| gustavatmel | 1:9c5af431a1f1 | 8 | * \asf_license_start |
| gustavatmel | 1:9c5af431a1f1 | 9 | * |
| gustavatmel | 1:9c5af431a1f1 | 10 | * \page License |
| gustavatmel | 1:9c5af431a1f1 | 11 | * |
| gustavatmel | 1:9c5af431a1f1 | 12 | * Redistribution and use in source and binary forms, with or without |
| gustavatmel | 1:9c5af431a1f1 | 13 | * modification, are permitted provided that the following conditions are met: |
| gustavatmel | 1:9c5af431a1f1 | 14 | * |
| gustavatmel | 1:9c5af431a1f1 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| gustavatmel | 1:9c5af431a1f1 | 16 | * this list of conditions and the following disclaimer. |
| gustavatmel | 1:9c5af431a1f1 | 17 | * |
| gustavatmel | 1:9c5af431a1f1 | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| gustavatmel | 1:9c5af431a1f1 | 19 | * this list of conditions and the following disclaimer in the documentation |
| gustavatmel | 1:9c5af431a1f1 | 20 | * and/or other materials provided with the distribution. |
| gustavatmel | 1:9c5af431a1f1 | 21 | * |
| gustavatmel | 1:9c5af431a1f1 | 22 | * 3. The name of Atmel may not be used to endorse or promote products derived |
| gustavatmel | 1:9c5af431a1f1 | 23 | * from this software without specific prior written permission. |
| gustavatmel | 1:9c5af431a1f1 | 24 | * |
| gustavatmel | 1:9c5af431a1f1 | 25 | * 4. This software may only be redistributed and used in connection with an |
| gustavatmel | 1:9c5af431a1f1 | 26 | * Atmel microcontroller product. |
| gustavatmel | 1:9c5af431a1f1 | 27 | * |
| gustavatmel | 1:9c5af431a1f1 | 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED |
| gustavatmel | 1:9c5af431a1f1 | 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| gustavatmel | 1:9c5af431a1f1 | 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE |
| gustavatmel | 1:9c5af431a1f1 | 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR |
| gustavatmel | 1:9c5af431a1f1 | 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| gustavatmel | 1:9c5af431a1f1 | 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| gustavatmel | 1:9c5af431a1f1 | 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| gustavatmel | 1:9c5af431a1f1 | 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| gustavatmel | 1:9c5af431a1f1 | 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
| gustavatmel | 1:9c5af431a1f1 | 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| gustavatmel | 1:9c5af431a1f1 | 38 | * POSSIBILITY OF SUCH DAMAGE. |
| gustavatmel | 1:9c5af431a1f1 | 39 | * |
| gustavatmel | 1:9c5af431a1f1 | 40 | * \asf_license_stop |
| gustavatmel | 1:9c5af431a1f1 | 41 | * |
| gustavatmel | 1:9c5af431a1f1 | 42 | */ |
| gustavatmel | 1:9c5af431a1f1 | 43 | /* |
| gustavatmel | 1:9c5af431a1f1 | 44 | * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a> |
| gustavatmel | 1:9c5af431a1f1 | 45 | */ |
| gustavatmel | 1:9c5af431a1f1 | 46 | |
| gustavatmel | 1:9c5af431a1f1 | 47 | #ifndef CONF_CLOCK_H_INCLUDED |
| gustavatmel | 1:9c5af431a1f1 | 48 | #define CONF_CLOCK_H_INCLUDED |
| gustavatmel | 1:9c5af431a1f1 | 49 | |
| gustavatmel | 1:9c5af431a1f1 | 50 | /* |
| gustavatmel | 1:9c5af431a1f1 | 51 | * ===== System Clock (MCK) Source Options |
| gustavatmel | 1:9c5af431a1f1 | 52 | * #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_SLCK_RC |
| gustavatmel | 1:9c5af431a1f1 | 53 | * #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_SLCK_XTAL |
| gustavatmel | 1:9c5af431a1f1 | 54 | * #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_SLCK_BYPASS |
| gustavatmel | 1:9c5af431a1f1 | 55 | * #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_MAINCK_8M_RC |
| gustavatmel | 1:9c5af431a1f1 | 56 | * #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_MAINCK_16M_RC |
| gustavatmel | 1:9c5af431a1f1 | 57 | * #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_MAINCK_24M_RC |
| gustavatmel | 1:9c5af431a1f1 | 58 | * #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_MAINCK_XTAL |
| gustavatmel | 1:9c5af431a1f1 | 59 | * #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_MAINCK_BYPASS |
| gustavatmel | 1:9c5af431a1f1 | 60 | */ |
| gustavatmel | 1:9c5af431a1f1 | 61 | #define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_PLLACK |
| gustavatmel | 1:9c5af431a1f1 | 62 | |
| gustavatmel | 1:9c5af431a1f1 | 63 | /* |
| gustavatmel | 1:9c5af431a1f1 | 64 | * ===== System Clock (MCK) Prescaler Options (Fmck = Fsys / (SYSCLK_PRES)) |
| gustavatmel | 1:9c5af431a1f1 | 65 | */ |
| gustavatmel | 1:9c5af431a1f1 | 66 | #define CONFIG_SYSCLK_PRES SYSCLK_PRES_1 |
| gustavatmel | 1:9c5af431a1f1 | 67 | /* |
| gustavatmel | 1:9c5af431a1f1 | 68 | * #define CONFIG_SYSCLK_PRES SYSCLK_PRES_2 |
| gustavatmel | 1:9c5af431a1f1 | 69 | * #define CONFIG_SYSCLK_PRES SYSCLK_PRES_4 |
| gustavatmel | 1:9c5af431a1f1 | 70 | * #define CONFIG_SYSCLK_PRES SYSCLK_PRES_8 |
| gustavatmel | 1:9c5af431a1f1 | 71 | * #define CONFIG_SYSCLK_PRES SYSCLK_PRES_16 |
| gustavatmel | 1:9c5af431a1f1 | 72 | * #define CONFIG_SYSCLK_PRES SYSCLK_PRES_32 |
| gustavatmel | 1:9c5af431a1f1 | 73 | * #define CONFIG_SYSCLK_PRES SYSCLK_PRES_64 |
| gustavatmel | 1:9c5af431a1f1 | 74 | * #define CONFIG_SYSCLK_PRES SYSCLK_PRES_3 |
| gustavatmel | 1:9c5af431a1f1 | 75 | */ |
| gustavatmel | 1:9c5af431a1f1 | 76 | |
| gustavatmel | 1:9c5af431a1f1 | 77 | /* |
| gustavatmel | 1:9c5af431a1f1 | 78 | * ===== PLL0 (A) Options (Fpll = (Fclk * PLL_mul) / PLL_div) |
| gustavatmel | 1:9c5af431a1f1 | 79 | * Use mul and div effective values here. |
| gustavatmel | 1:9c5af431a1f1 | 80 | */ |
| gustavatmel | 1:9c5af431a1f1 | 81 | #define CONFIG_PLL0_SOURCE PLL_SRC_SLCK_XTAL |
| gustavatmel | 1:9c5af431a1f1 | 82 | #define CONFIG_PLL0_MUL 3662 |
| gustavatmel | 1:9c5af431a1f1 | 83 | #define CONFIG_PLL0_DIV 1 |
| gustavatmel | 1:9c5af431a1f1 | 84 | |
| gustavatmel | 1:9c5af431a1f1 | 85 | /* |
| gustavatmel | 1:9c5af431a1f1 | 86 | * ===== Target frequency (System clock) |
| gustavatmel | 1:9c5af431a1f1 | 87 | * - External XTAL frequency: 32768Hz |
| gustavatmel | 1:9c5af431a1f1 | 88 | * - System clock source: SLCK XTAL |
| gustavatmel | 1:9c5af431a1f1 | 89 | * - System clock prescaler: 1 (divided by 1) |
| gustavatmel | 1:9c5af431a1f1 | 90 | * - PLLA source: SLCK_XTAL |
| gustavatmel | 1:9c5af431a1f1 | 91 | * - PLLA output: SLCK_XTAL * 3662 / 1 |
| gustavatmel | 1:9c5af431a1f1 | 92 | * - System clock: SLCK_XTAL * 3662 / 1 / 1 = 120MHz |
| gustavatmel | 1:9c5af431a1f1 | 93 | */ |
| gustavatmel | 1:9c5af431a1f1 | 94 | |
| gustavatmel | 1:9c5af431a1f1 | 95 | #endif /* CONF_CLOCK_H_INCLUDED */ |
