mbed library sources. Supersedes mbed-src.

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

Committer:
Anna Bridge
Date:
Wed May 10 12:06:41 2017 +0100
Revision:
164:289d4deac6e4
Parent:
targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/TARGET_THUNDERBOARD_SENSE_12/device_peripherals.h@161:2cc1468da177
Child:
181:57724642e740
This updates the lib to the mbed lib v142

Who changed what in which revision?

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