test

Committer:
elijahsj
Date:
Mon Nov 09 00:33:19 2020 -0500
Revision:
2:4364577b5ad8
Parent:
1:8a094db1347f
copied mbed library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elijahsj 1:8a094db1347f 1 /**
elijahsj 1:8a094db1347f 2 * @file
elijahsj 1:8a094db1347f 3 * @brief Registers, Bit Masks and Bit Positions for the System Clock
elijahsj 1:8a094db1347f 4 * Management (CLKMAN) module.
elijahsj 1:8a094db1347f 5 */
elijahsj 1:8a094db1347f 6 /* ****************************************************************************
elijahsj 1:8a094db1347f 7 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
elijahsj 1:8a094db1347f 8 *
elijahsj 1:8a094db1347f 9 * Permission is hereby granted, free of charge, to any person obtaining a
elijahsj 1:8a094db1347f 10 * copy of this software and associated documentation files (the "Software"),
elijahsj 1:8a094db1347f 11 * to deal in the Software without restriction, including without limitation
elijahsj 1:8a094db1347f 12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
elijahsj 1:8a094db1347f 13 * and/or sell copies of the Software, and to permit persons to whom the
elijahsj 1:8a094db1347f 14 * Software is furnished to do so, subject to the following conditions:
elijahsj 1:8a094db1347f 15 *
elijahsj 1:8a094db1347f 16 * The above copyright notice and this permission notice shall be included
elijahsj 1:8a094db1347f 17 * in all copies or substantial portions of the Software.
elijahsj 1:8a094db1347f 18 *
elijahsj 1:8a094db1347f 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
elijahsj 1:8a094db1347f 20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
elijahsj 1:8a094db1347f 21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
elijahsj 1:8a094db1347f 22 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
elijahsj 1:8a094db1347f 23 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
elijahsj 1:8a094db1347f 24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
elijahsj 1:8a094db1347f 25 * OTHER DEALINGS IN THE SOFTWARE.
elijahsj 1:8a094db1347f 26 *
elijahsj 1:8a094db1347f 27 * Except as contained in this notice, the name of Maxim Integrated
elijahsj 1:8a094db1347f 28 * Products, Inc. shall not be used except as stated in the Maxim Integrated
elijahsj 1:8a094db1347f 29 * Products, Inc. Branding Policy.
elijahsj 1:8a094db1347f 30 *
elijahsj 1:8a094db1347f 31 * The mere transfer of this software does not imply any licenses
elijahsj 1:8a094db1347f 32 * of trade secrets, proprietary technology, copyrights, patents,
elijahsj 1:8a094db1347f 33 * trademarks, maskwork rights, or any other form of intellectual
elijahsj 1:8a094db1347f 34 * property whatsoever. Maxim Integrated Products, Inc. retains all
elijahsj 1:8a094db1347f 35 * ownership rights.
elijahsj 1:8a094db1347f 36 *
elijahsj 1:8a094db1347f 37 * $Date: 2016-08-15 11:08:12 -0500 (Mon, 15 Aug 2016) $
elijahsj 1:8a094db1347f 38 * $Revision: 24058 $
elijahsj 1:8a094db1347f 39 *
elijahsj 1:8a094db1347f 40 **************************************************************************** */
elijahsj 1:8a094db1347f 41
elijahsj 1:8a094db1347f 42 /* Define to prevent redundant inclusion */
elijahsj 1:8a094db1347f 43 #ifndef _CLKMAN_H_
elijahsj 1:8a094db1347f 44 #define _CLKMAN_H_
elijahsj 1:8a094db1347f 45
elijahsj 1:8a094db1347f 46 /* **** Includes **** */
elijahsj 1:8a094db1347f 47 #include "mxc_config.h"
elijahsj 1:8a094db1347f 48 #include "clkman_regs.h"
elijahsj 1:8a094db1347f 49
elijahsj 1:8a094db1347f 50 #ifdef __cplusplus
elijahsj 1:8a094db1347f 51 extern "C" {
elijahsj 1:8a094db1347f 52 #endif
elijahsj 1:8a094db1347f 53
elijahsj 1:8a094db1347f 54 /**
elijahsj 1:8a094db1347f 55 * @defgroup clkman Clock Management
elijahsj 1:8a094db1347f 56 * @ingroup sysconfig
elijahsj 1:8a094db1347f 57 * @{
elijahsj 1:8a094db1347f 58 */
elijahsj 1:8a094db1347f 59
elijahsj 1:8a094db1347f 60 /* **** Definitions **** */
elijahsj 1:8a094db1347f 61
elijahsj 1:8a094db1347f 62 /**
elijahsj 1:8a094db1347f 63 * Enumeration type specifying the System Clock Rate. @see CLKMAN_SYSTEM_SOURCE_values
elijahsj 1:8a094db1347f 64 */
elijahsj 1:8a094db1347f 65 typedef enum {
elijahsj 1:8a094db1347f 66 CLKMAN_SYSTEM_SOURCE_96MHZ = 0, /**< Clock select for 96MHz oscillator.*/
elijahsj 1:8a094db1347f 67 CLKMAN_SYSTEM_SOURCE_4MHZ = 1 /**< Clock select for 4MHz oscillator. */
elijahsj 1:8a094db1347f 68 }
elijahsj 1:8a094db1347f 69 clkman_system_source_select_t;
elijahsj 1:8a094db1347f 70
elijahsj 1:8a094db1347f 71 /**
elijahsj 1:8a094db1347f 72 * Enumeration type for setting the system clock divider.
elijahsj 1:8a094db1347f 73 * @note 4MHz System source can only be divided down by a maximum factor of 8.
elijahsj 1:8a094db1347f 74 */
elijahsj 1:8a094db1347f 75 typedef enum {
elijahsj 1:8a094db1347f 76 CLKMAN_SYSTEM_SCALE_DIV_1 = 0, /**< Clock scale for dividing system by 1. */
elijahsj 1:8a094db1347f 77 CLKMAN_SYSTEM_SCALE_DIV_2 = 1, /**< Clock scale for dividing system by 2. */
elijahsj 1:8a094db1347f 78 CLKMAN_SYSTEM_SCALE_DIV_4 = 2, /**< Clock scale for dividing system by 4. */
elijahsj 1:8a094db1347f 79 CLKMAN_SYSTEM_SCALE_DIV_8 = 3, /**< Clock scale for dividing system by 8. */
elijahsj 1:8a094db1347f 80 CLKMAN_SYSTEM_SCALE_DIV_16 = 4 /**< Clock scale for dividing system by 16. */
elijahsj 1:8a094db1347f 81 } clkman_system_scale_t;
elijahsj 1:8a094db1347f 82
elijahsj 1:8a094db1347f 83 /**
elijahsj 1:8a094db1347f 84 * Enumeration type for selecting a peripheral module for setting and getting it's clock scale.
elijahsj 1:8a094db1347f 85 */
elijahsj 1:8a094db1347f 86 typedef enum {
elijahsj 1:8a094db1347f 87 CLKMAN_CLK_CPU = 0, /**< CPU clock. */
elijahsj 1:8a094db1347f 88 CLKMAN_CLK_SYNC = 1, /**< Synchronizer clock. */
elijahsj 1:8a094db1347f 89 CLKMAN_CLK_SPIX = 2, /**< SPI XIP module clock. */
elijahsj 1:8a094db1347f 90 CLKMAN_CLK_PRNG = 3, /**< PRNG module clock. */
elijahsj 1:8a094db1347f 91 CLKMAN_CLK_WDT0 = 4, /**< Watchdog Timer 0 clock. */
elijahsj 1:8a094db1347f 92 CLKMAN_CLK_WDT1 = 5, /**< Watchdog Timer 1 clock. */
elijahsj 1:8a094db1347f 93 CLKMAN_CLK_GPIO = 6, /**< GPIO module clock. */
elijahsj 1:8a094db1347f 94 CLKMAN_CLK_PT = 7, /**< Pulse Train engine clock. */
elijahsj 1:8a094db1347f 95 CLKMAN_CLK_UART = 8, /**< UART clock. */
elijahsj 1:8a094db1347f 96 CLKMAN_CLK_I2CM = 9, /**< I2C Master module clock (for all instances). */
elijahsj 1:8a094db1347f 97 CLKMAN_CLK_I2CS = 10, /**< I2C Slave module clock. */
elijahsj 1:8a094db1347f 98 CLKMAN_CLK_SPIM0 = 11, /**< SPI Master instance 0 module clock. */
elijahsj 1:8a094db1347f 99 CLKMAN_CLK_SPIM1 = 12, /**< SPI Master instance 1 module clock. */
elijahsj 1:8a094db1347f 100 CLKMAN_CLK_SPIM2 = 13, /**< SPI Master instance 2 module clock. */
elijahsj 1:8a094db1347f 101 CLKMAN_CLK_SPIB = 14, /**< SPI Bridge module clock. */
elijahsj 1:8a094db1347f 102 CLKMAN_CLK_OWM = 15, /**< OWM module clock. */
elijahsj 1:8a094db1347f 103 CLKMAN_CLK_SPIS = 16, /**< SPI Slave module clock. */
elijahsj 1:8a094db1347f 104 CLKMAN_CRYPTO_CLK_AES = 17, /**< AES engine clock. */
elijahsj 1:8a094db1347f 105 CLKMAN_CRYPTO_CLK_MAA = 18, /**< Modular Arithmetic Accelerator (MAA) clock. */
elijahsj 1:8a094db1347f 106 CLKMAN_CRYPTO_CLK_PRNG = 19, /**< Pseudo-random number Generator (PRNG) clock. */
elijahsj 1:8a094db1347f 107 CLKMAN_CLK_MAX /**< Maximum value of enum for limit checking. */
elijahsj 1:8a094db1347f 108 } clkman_clk_t;
elijahsj 1:8a094db1347f 109
elijahsj 1:8a094db1347f 110 /**
elijahsj 1:8a094db1347f 111 * Enumeration type for selecting a peripheral module (USB, Cryto, ADC, WDT0, WDT1 and RTC/RTOS)
elijahsj 1:8a094db1347f 112 * to enable/disable clock gating.
elijahsj 1:8a094db1347f 113 */
elijahsj 1:8a094db1347f 114 typedef enum {
elijahsj 1:8a094db1347f 115 CLKMAN_USB_CLOCK = MXC_F_CLKMAN_CLK_CTRL_USB_CLOCK_ENABLE, /**< Enable/Disable mask for USB. */
elijahsj 1:8a094db1347f 116 CLKMAN_CRYPTO_CLOCK = MXC_F_CLKMAN_CLK_CTRL_CRYPTO_CLOCK_ENABLE, /**< Enable/Disable mask for Crypto Clock. */
elijahsj 1:8a094db1347f 117 CLKMAN_ADC_CLOCK = MXC_F_CLKMAN_CLK_CTRL_ADC_CLOCK_ENABLE, /**< Enable/Disable mask for ADC. */
elijahsj 1:8a094db1347f 118 CLKMAN_WDT0_CLOCK = MXC_F_CLKMAN_CLK_CTRL_WDT0_CLOCK_ENABLE, /**< Enable/Disable mask for Watch Dog Timer 0. */
elijahsj 1:8a094db1347f 119 CLKMAN_WDT1_CLOCK = MXC_F_CLKMAN_CLK_CTRL_WDT1_CLOCK_ENABLE, /**< Enable/Disable mask for Watch Dog Timer 1. */
elijahsj 1:8a094db1347f 120 CLKMAN_RTOS_MODE = MXC_F_CLKMAN_CLK_CTRL_RTOS_MODE /**< Enable/Disable mask for 32kHz clock in LP1
elijahsj 1:8a094db1347f 121 * required to use JTAG for debug.
elijahsj 1:8a094db1347f 122 */
elijahsj 1:8a094db1347f 123 } clkman_enable_clk_t;
elijahsj 1:8a094db1347f 124
elijahsj 1:8a094db1347f 125 /**
elijahsj 1:8a094db1347f 126 * Enumeration type for selecting the clock scale for the system or peripheral module.
elijahsj 1:8a094db1347f 127 */
elijahsj 1:8a094db1347f 128 typedef enum {
elijahsj 1:8a094db1347f 129 CLKMAN_SCALE_DISABLED = MXC_V_CLKMAN_CLK_SCALE_DISABLED, /**< Clock disabled. */
elijahsj 1:8a094db1347f 130 CLKMAN_SCALE_DIV_1 = MXC_V_CLKMAN_CLK_SCALE_DIV_1, /**< Clock scale for dividing by 1. */
elijahsj 1:8a094db1347f 131 CLKMAN_SCALE_DIV_2 = MXC_V_CLKMAN_CLK_SCALE_DIV_2, /**< Clock scale for dividing by 2. */
elijahsj 1:8a094db1347f 132 CLKMAN_SCALE_DIV_4 = MXC_V_CLKMAN_CLK_SCALE_DIV_4, /**< Clock scale for dividing by 4. */
elijahsj 1:8a094db1347f 133 CLKMAN_SCALE_DIV_8 = MXC_V_CLKMAN_CLK_SCALE_DIV_8, /**< Clock scale for dividing by 8. */
elijahsj 1:8a094db1347f 134 CLKMAN_SCALE_DIV_16 = MXC_V_CLKMAN_CLK_SCALE_DIV_16, /**< Clock scale for dividing by 16. */
elijahsj 1:8a094db1347f 135 CLKMAN_SCALE_DIV_32 = MXC_V_CLKMAN_CLK_SCALE_DIV_32, /**< Clock scale for dividing by 32. */
elijahsj 1:8a094db1347f 136 CLKMAN_SCALE_DIV_64 = MXC_V_CLKMAN_CLK_SCALE_DIV_64, /**< Clock scale for dividing by 64. */
elijahsj 1:8a094db1347f 137 CLKMAN_SCALE_DIV_128 = MXC_V_CLKMAN_CLK_SCALE_DIV_128, /**< Clock scale for dividing by 128. */
elijahsj 1:8a094db1347f 138 CLKMAN_SCALE_DIV_256 = MXC_V_CLKMAN_CLK_SCALE_DIV_256, /**< Clock scale for dividing by 256. */
elijahsj 1:8a094db1347f 139 CLKMAN_SCALE_AUTO /**< Clock scale to auto select divider. */
elijahsj 1:8a094db1347f 140 } clkman_scale_t;
elijahsj 1:8a094db1347f 141
elijahsj 1:8a094db1347f 142 /*
elijahsj 1:8a094db1347f 143 * Enumeration type for selecting the source clock for the Watch Dog Timers.
elijahsj 1:8a094db1347f 144 * | Enumeration Selection | Value | WDT Clock Source |
elijahsj 1:8a094db1347f 145 * | :--------------------------------------: | :---: | :-------------------------- |
elijahsj 1:8a094db1347f 146 * | CLKMAN_WDT_SELECT_SCALED_SYS_CLK_CTRL | 0 | Scaled System Clock |
elijahsj 1:8a094db1347f 147 * | CLKMAN_WDT_SELECT_32KHZ_RTC_OSCILLATOR | 1 | 32 kHz Real-Time Clock |
elijahsj 1:8a094db1347f 148 * | CLKMAN_WDT_SELECT_96MHZ_OSCILLATOR | 2 | 96 MHz Oscillator unscaled |
elijahsj 1:8a094db1347f 149 * | CLKMAN_WDT_SELECT_NANO_RING_OSCILLATOR | 3 | Nano-ring clock |
elijahsj 1:8a094db1347f 150 * | CLKMAN_WDT_SELECT_DISABLED | 4 | WDT0 Clock is disabled |
elijahsj 1:8a094db1347f 151 */
elijahsj 1:8a094db1347f 152 typedef enum {
elijahsj 1:8a094db1347f 153 CLKMAN_WDT_SELECT_SCALED_SYS_CLK_CTRL = MXC_V_CLKMAN_WDT0_CLOCK_SELECT_SCALED_SYS_CLK_CTRL_4_WDT0, /**< Use scaled system clock for Watchdog Timer 0. */
elijahsj 1:8a094db1347f 154 CLKMAN_WDT_SELECT_32KHZ_RTC_OSCILLATOR = MXC_V_CLKMAN_WDT0_CLOCK_SELECT_32KHZ_RTC_OSCILLATOR, /**< Use 32kHz oscillator for Watchdog Timer 0. */
elijahsj 1:8a094db1347f 155 CLKMAN_WDT_SELECT_96MHZ_OSCILLATOR = MXC_V_CLKMAN_WDT0_CLOCK_SELECT_96MHZ_OSCILLATOR, /**< Use 96MHz clock for Watchdog Timer 0. */
elijahsj 1:8a094db1347f 156 CLKMAN_WDT_SELECT_NANO_RING_OSCILLATOR = MXC_V_CLKMAN_WDT0_CLOCK_SELECT_NANO_RING_OSCILLATOR, /**< Use Nano-Ring Oscillator (8kHz) for Watchdog Timer 0 clock.*/
elijahsj 1:8a094db1347f 157 CLKMAN_WDT_SELECT_DISABLED /**< Watchdog Timer 0 clock disabled. */
elijahsj 1:8a094db1347f 158 } clkman_wdt_clk_select_t;
elijahsj 1:8a094db1347f 159
elijahsj 1:8a094db1347f 160
elijahsj 1:8a094db1347f 161 /* **** Function Prototypes **** */
elijahsj 1:8a094db1347f 162
elijahsj 1:8a094db1347f 163 /**
elijahsj 1:8a094db1347f 164 * @brief Selects the system clock source,
elijahsj 1:8a094db1347f 165 * @note 4MHz System source can only be divided down by a maximum factor
elijahsj 1:8a094db1347f 166 * of 8.
elijahsj 1:8a094db1347f 167 *
elijahsj 1:8a094db1347f 168 * @param select System clock source.
elijahsj 1:8a094db1347f 169 * @param scale System clock scaler.
elijahsj 1:8a094db1347f 170 */
elijahsj 1:8a094db1347f 171 void CLKMAN_SetSystemClock(clkman_system_source_select_t select, clkman_system_scale_t scale);
elijahsj 1:8a094db1347f 172
elijahsj 1:8a094db1347f 173 /**
elijahsj 1:8a094db1347f 174 * @brief Enables/disables the Crypto/TPU relaxation oscillator
elijahsj 1:8a094db1347f 175 *
elijahsj 1:8a094db1347f 176 * @param enable |:------- | :---: |
elijahsj 1:8a094db1347f 177 * | Enable | 1 |
elijahsj 1:8a094db1347f 178 * | Disable | 0 |
elijahsj 1:8a094db1347f 179 */
elijahsj 1:8a094db1347f 180 void CLKMAN_CryptoClockEnable(int enable);
elijahsj 1:8a094db1347f 181
elijahsj 1:8a094db1347f 182 /**
elijahsj 1:8a094db1347f 183 * @brief Enables/Disables clock gating for the specified peripheral
elijahsj 1:8a094db1347f 184 * module.
elijahsj 1:8a094db1347f 185 *
elijahsj 1:8a094db1347f 186 * @param clk Peripheral module to enable/disable clock gating.
elijahsj 1:8a094db1347f 187 * @param enable Enable (1) or Disable (0).
elijahsj 1:8a094db1347f 188 */
elijahsj 1:8a094db1347f 189 void CLKMAN_ClockGate(clkman_enable_clk_t clk, int enable);
elijahsj 1:8a094db1347f 190
elijahsj 1:8a094db1347f 191 /**
elijahsj 1:8a094db1347f 192 * @brief Sets the specified clock scaler value.
elijahsj 1:8a094db1347f 193 *
elijahsj 1:8a094db1347f 194 * @param clk Peripheral module to set the desired clock scale.
elijahsj 1:8a094db1347f 195 * @param scale Clock scale/divisor for the specified peripheral module.
elijahsj 1:8a094db1347f 196 */
elijahsj 1:8a094db1347f 197 void CLKMAN_SetClkScale(clkman_clk_t clk, clkman_scale_t scale);
elijahsj 1:8a094db1347f 198
elijahsj 1:8a094db1347f 199 /**
elijahsj 1:8a094db1347f 200 * @brief Get the clock scaler/divisor value for the specified peripheral
elijahsj 1:8a094db1347f 201 * module.
elijahsj 1:8a094db1347f 202 *
elijahsj 1:8a094db1347f 203 * @param clk The peripheral module to get the current clock scale setting, see #clkman_clk_t.
elijahsj 1:8a094db1347f 204 * @return A value indicating the clock divisor/scale of the requested
elijahsj 1:8a094db1347f 205 * peripheral module.
elijahsj 1:8a094db1347f 206 */
elijahsj 1:8a094db1347f 207 clkman_scale_t CLKMAN_GetClkScale(clkman_clk_t clk);
elijahsj 1:8a094db1347f 208
elijahsj 1:8a094db1347f 209 /**
elijahsj 1:8a094db1347f 210 * @brief Selects the clock source for the specified watchdog timer.
elijahsj 1:8a094db1347f 211 *
elijahsj 1:8a094db1347f 212 * @param idx Value indicating the WDT to set the clock source on.
elijahsj 1:8a094db1347f 213 * @param select Value of the desired clock source for the WDT.
elijahsj 1:8a094db1347f 214 */
elijahsj 1:8a094db1347f 215 int CLKMAN_WdtClkSelect(unsigned int idx, clkman_wdt_clk_select_t select);
elijahsj 1:8a094db1347f 216
elijahsj 1:8a094db1347f 217 /**
elijahsj 1:8a094db1347f 218 * @brief Get the interrupt flags for the CLKMAN module.
elijahsj 1:8a094db1347f 219 *
elijahsj 1:8a094db1347f 220 * @return The current interrupt flags.
elijahsj 1:8a094db1347f 221 */
elijahsj 1:8a094db1347f 222 __STATIC_INLINE uint32_t CLKMAN_GetFlags(void)
elijahsj 1:8a094db1347f 223 {
elijahsj 1:8a094db1347f 224 return MXC_CLKMAN->intfl;
elijahsj 1:8a094db1347f 225 }
elijahsj 1:8a094db1347f 226
elijahsj 1:8a094db1347f 227 /**
elijahsj 1:8a094db1347f 228 * @brief Clear the specified interrupt flags
elijahsj 1:8a094db1347f 229 *
elijahsj 1:8a094db1347f 230 * @param mask mask of clock management interrupt flags to clear
elijahsj 1:8a094db1347f 231 */
elijahsj 1:8a094db1347f 232 __STATIC_INLINE void CLKMAN_ClrFlags(uint32_t mask)
elijahsj 1:8a094db1347f 233 {
elijahsj 1:8a094db1347f 234 MXC_CLKMAN->intfl = mask;
elijahsj 1:8a094db1347f 235 }
elijahsj 1:8a094db1347f 236
elijahsj 1:8a094db1347f 237 /**
elijahsj 1:8a094db1347f 238 * @brief Enable the interrupts specified in the mask parameter.
elijahsj 1:8a094db1347f 239 *
elijahsj 1:8a094db1347f 240 * @param mask Mask of clock management interrupts to enable, 1 to enable
elijahsj 1:8a094db1347f 241 * a specific interrupt.
elijahsj 1:8a094db1347f 242 */
elijahsj 1:8a094db1347f 243 __STATIC_INLINE void CLKMAN_EnableInt(uint32_t mask)
elijahsj 1:8a094db1347f 244 {
elijahsj 1:8a094db1347f 245 MXC_CLKMAN->inten |= mask;
elijahsj 1:8a094db1347f 246 }
elijahsj 1:8a094db1347f 247
elijahsj 1:8a094db1347f 248 /**
elijahsj 1:8a094db1347f 249 * @brief Disable the specified interrupts
elijahsj 1:8a094db1347f 250 *
elijahsj 1:8a094db1347f 251 * @param mask Mask of CLKMAN interrupts to disable, 1 to disable a
elijahsj 1:8a094db1347f 252 * specific interrupt.
elijahsj 1:8a094db1347f 253 */
elijahsj 1:8a094db1347f 254 __STATIC_INLINE void CLKMAN_DisableInt(uint32_t mask)
elijahsj 1:8a094db1347f 255 {
elijahsj 1:8a094db1347f 256 MXC_CLKMAN->inten &= ~mask;
elijahsj 1:8a094db1347f 257 }
elijahsj 1:8a094db1347f 258
elijahsj 1:8a094db1347f 259 /**
elijahsj 1:8a094db1347f 260 * @brief Trim the ring oscillator.
elijahsj 1:8a094db1347f 261 * @note CLKMAN_TrimRO() is implemented in system_max32XXX.c
elijahsj 1:8a094db1347f 262 */
elijahsj 1:8a094db1347f 263 void CLKMAN_TrimRO(void);
elijahsj 1:8a094db1347f 264
elijahsj 1:8a094db1347f 265 /**@} end of group clkman */
elijahsj 1:8a094db1347f 266
elijahsj 1:8a094db1347f 267 #ifdef __cplusplus
elijahsj 1:8a094db1347f 268 }
elijahsj 1:8a094db1347f 269 #endif
elijahsj 1:8a094db1347f 270
elijahsj 1:8a094db1347f 271 #endif /* _CLKMAN_H_ */