mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
<>
Date:
Tue Dec 20 17:27:56 2016 +0000
Revision:
153:fa9ff456f731
Child:
161:2cc1468da177
This updates the lib to the mbed lib v132

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 153:fa9ff456f731 1 /***************************************************************************//**
<> 153:fa9ff456f731 2 * @file device_peripherals.h
<> 153:fa9ff456f731 3 *******************************************************************************
<> 153:fa9ff456f731 4 * @section License
<> 153:fa9ff456f731 5 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
<> 153:fa9ff456f731 6 *******************************************************************************
<> 153:fa9ff456f731 7 *
<> 153:fa9ff456f731 8 * SPDX-License-Identifier: Apache-2.0
<> 153:fa9ff456f731 9 *
<> 153:fa9ff456f731 10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
<> 153:fa9ff456f731 11 * not use this file except in compliance with the License.
<> 153:fa9ff456f731 12 * You may obtain a copy of the License at
<> 153:fa9ff456f731 13 *
<> 153:fa9ff456f731 14 * http://www.apache.org/licenses/LICENSE-2.0
<> 153:fa9ff456f731 15 *
<> 153:fa9ff456f731 16 * Unless required by applicable law or agreed to in writing, software
<> 153:fa9ff456f731 17 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
<> 153:fa9ff456f731 18 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 153:fa9ff456f731 19 * See the License for the specific language governing permissions and
<> 153:fa9ff456f731 20 * limitations under the License.
<> 153:fa9ff456f731 21 *
<> 153:fa9ff456f731 22 ******************************************************************************/
<> 153:fa9ff456f731 23 #ifndef MBED_DEVICE_PERIPHERALS_H
<> 153:fa9ff456f731 24 #define MBED_DEVICE_PERIPHERALS_H
<> 153:fa9ff456f731 25
<> 153:fa9ff456f731 26 /* us ticker */
<> 153:fa9ff456f731 27 #define US_TICKER_TIMER TIMER0
<> 153:fa9ff456f731 28 #define US_TICKER_TIMER_CLOCK cmuClock_TIMER0
<> 153:fa9ff456f731 29 #define US_TICKER_TIMER_IRQ TIMER0_IRQn
<> 153:fa9ff456f731 30
<> 153:fa9ff456f731 31 /* PWM */
<> 153:fa9ff456f731 32 #define PWM_TIMER TIMER1
<> 153:fa9ff456f731 33 #define PWM_TIMER_CLOCK cmuClock_TIMER1
<> 153:fa9ff456f731 34 #define PWM_ROUTE TIMER_ROUTE_LOCATION_LOC1
<> 153:fa9ff456f731 35
<> 153:fa9ff456f731 36 /* Crystal calibration */
<> 153:fa9ff456f731 37 #if !defined(CMU_HFXOINIT_WSTK_DEFAULT)
<> 153:fa9ff456f731 38 #define CMU_HFXOINIT_WSTK_DEFAULT \
<> 153:fa9ff456f731 39 { \
<> 153:fa9ff456f731 40 false, /* Low-noise mode for EFR32 */ \
<> 153:fa9ff456f731 41 false, /* Disable auto-start on EM0/1 entry */ \
<> 153:fa9ff456f731 42 false, /* Disable auto-select on EM0/1 entry */ \
<> 153:fa9ff456f731 43 false, /* Disable auto-start and select on RAC wakeup */ \
<> 153:fa9ff456f731 44 _CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
<> 153:fa9ff456f731 45 0x142, /* Steady-state CTUNE for WSTK boards without load caps */ \
<> 153:fa9ff456f731 46 _CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
<> 153:fa9ff456f731 47 _CMU_HFXOSTARTUPCTRL_IBTRIMXOCORE_DEFAULT, \
<> 153:fa9ff456f731 48 0x7, /* Recommended steady-state XO core bias current */ \
<> 153:fa9ff456f731 49 0x6, /* Recommended peak detection threshold */ \
<> 153:fa9ff456f731 50 _CMU_HFXOTIMEOUTCTRL_SHUNTOPTTIMEOUT_DEFAULT, \
<> 153:fa9ff456f731 51 0xA, /* Recommended peak detection timeout */ \
<> 153:fa9ff456f731 52 _CMU_HFXOTIMEOUTCTRL_STEADYTIMEOUT_DEFAULT, \
<> 153:fa9ff456f731 53 _CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
<> 153:fa9ff456f731 54 }
<> 153:fa9ff456f731 55 #endif
<> 153:fa9ff456f731 56 #endif