mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

Committer:
mbed_official
Date:
Fri Jan 15 07:45:16 2016 +0000
Revision:
50:a417edff4437
Child:
54:2a2065e67ef6
Synchronized with git revision 6010f32619bfcbb01cc73747d4ff9040863482d9

Full URL: https://github.com/mbedmicro/mbed/commit/6010f32619bfcbb01cc73747d4ff9040863482d9/

Remove doubling of buffer size in realiseEndpoint()

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 50:a417edff4437 1 /***************************************************************************//**
mbed_official 50:a417edff4437 2 * @file device_peripherals.h
mbed_official 50:a417edff4437 3 *******************************************************************************
mbed_official 50:a417edff4437 4 * @section License
mbed_official 50:a417edff4437 5 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
mbed_official 50:a417edff4437 6 *******************************************************************************
mbed_official 50:a417edff4437 7 *
mbed_official 50:a417edff4437 8 * Permission is granted to anyone to use this software for any purpose,
mbed_official 50:a417edff4437 9 * including commercial applications, and to alter it and redistribute it
mbed_official 50:a417edff4437 10 * freely, subject to the following restrictions:
mbed_official 50:a417edff4437 11 *
mbed_official 50:a417edff4437 12 * 1. The origin of this software must not be misrepresented; you must not
mbed_official 50:a417edff4437 13 * claim that you wrote the original software.
mbed_official 50:a417edff4437 14 * 2. Altered source versions must be plainly marked as such, and must not be
mbed_official 50:a417edff4437 15 * misrepresented as being the original software.
mbed_official 50:a417edff4437 16 * 3. This notice may not be removed or altered from any source distribution.
mbed_official 50:a417edff4437 17 *
mbed_official 50:a417edff4437 18 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no
mbed_official 50:a417edff4437 19 * obligation to support this Software. Silicon Labs is providing the
mbed_official 50:a417edff4437 20 * Software "AS IS", with no express or implied warranties of any kind,
mbed_official 50:a417edff4437 21 * including, but not limited to, any implied warranties of merchantability
mbed_official 50:a417edff4437 22 * or fitness for any particular purpose or warranties against infringement
mbed_official 50:a417edff4437 23 * of any proprietary rights of a third party.
mbed_official 50:a417edff4437 24 *
mbed_official 50:a417edff4437 25 * Silicon Labs will not be liable for any consequential, incidental, or
mbed_official 50:a417edff4437 26 * special damages, or any other relief, or for any claim by any third party,
mbed_official 50:a417edff4437 27 * arising from your use of this Software.
mbed_official 50:a417edff4437 28 *
mbed_official 50:a417edff4437 29 ******************************************************************************/
mbed_official 50:a417edff4437 30 #ifndef MBED_DEVICE_PERIPHERALS_H
mbed_official 50:a417edff4437 31 #define MBED_DEVICE_PERIPHERALS_H
mbed_official 50:a417edff4437 32
mbed_official 50:a417edff4437 33 /* us ticker */
mbed_official 50:a417edff4437 34 #define US_TICKER_TIMER TIMER0
mbed_official 50:a417edff4437 35 #define US_TICKER_TIMER_CLOCK cmuClock_TIMER0
mbed_official 50:a417edff4437 36 #define US_TICKER_TIMER_IRQ TIMER0_IRQn
mbed_official 50:a417edff4437 37
mbed_official 50:a417edff4437 38 /* PWM */
mbed_official 50:a417edff4437 39 #define PWM_TIMER TIMER1
mbed_official 50:a417edff4437 40 #define PWM_TIMER_CLOCK cmuClock_TIMER1
mbed_official 50:a417edff4437 41 #define PWM_ROUTE TIMER_ROUTE_LOCATION_LOC1
mbed_official 50:a417edff4437 42
mbed_official 50:a417edff4437 43 /* Clocks */
mbed_official 50:a417edff4437 44
mbed_official 50:a417edff4437 45 /* Clock definitions */
mbed_official 50:a417edff4437 46 #define LFXO 0
mbed_official 50:a417edff4437 47 #define HFXO 1
mbed_official 50:a417edff4437 48 #define LFRCO 2
mbed_official 50:a417edff4437 49 #define HFRCO 3
mbed_official 50:a417edff4437 50 #define ULFRCO 4
mbed_official 50:a417edff4437 51
mbed_official 50:a417edff4437 52
mbed_official 50:a417edff4437 53 /* Low Energy peripheral clock source.
mbed_official 50:a417edff4437 54 * Options:
mbed_official 50:a417edff4437 55 * * LFXO: external crystal, please define frequency.
mbed_official 50:a417edff4437 56 * * LFRCO: internal RC oscillator (32.768kHz)
mbed_official 50:a417edff4437 57 * * ULFRCO: internal ultra-low power RC oscillator (available down to EM3) (1kHz)
mbed_official 50:a417edff4437 58 */
mbed_official 50:a417edff4437 59 #define LOW_ENERGY_CLOCK_SOURCE LFXO
mbed_official 50:a417edff4437 60
mbed_official 50:a417edff4437 61 /** Core clock source.
mbed_official 50:a417edff4437 62 * Options:
mbed_official 50:a417edff4437 63 * * HFXO: external crystal, please define frequency.
mbed_official 50:a417edff4437 64 * * HFRCO: High-frequency internal RC oscillator. Please select frequency as well.
mbed_official 50:a417edff4437 65 */
mbed_official 50:a417edff4437 66 #define CORE_CLOCK_SOURCE HFXO
mbed_official 50:a417edff4437 67
mbed_official 50:a417edff4437 68 #define HFRCO_FREQUENCY_ENUM cmuHFRCOFreq_19M0Hz
mbed_official 50:a417edff4437 69 #define HFRCO_FREQUENCY 19000000
mbed_official 50:a417edff4437 70
mbed_official 50:a417edff4437 71 #define LFXO_FREQUENCY 32768
mbed_official 50:a417edff4437 72 #define HFXO_FREQUENCY 40000000
mbed_official 50:a417edff4437 73
mbed_official 50:a417edff4437 74 #if (LOW_ENERGY_CLOCK_SOURCE == LFXO)
mbed_official 50:a417edff4437 75 #define LOW_ENERGY_CLOCK_FREQUENCY LFXO_FREQUENCY
mbed_official 50:a417edff4437 76 #elif (LOW_ENERGY_CLOCK_SOURCE == LFRCO)
mbed_official 50:a417edff4437 77 #define LOW_ENERGY_CLOCK_FREQUENCY 32768
mbed_official 50:a417edff4437 78 #elif (LOW_ENERGY_CLOCK_SOURCE == ULFRCO)
mbed_official 50:a417edff4437 79 #define LOW_ENERGY_CLOCK_FREQUENCY 1000
mbed_official 50:a417edff4437 80 #else
mbed_official 50:a417edff4437 81 #error "Unknown Low Energy Clock selection"
mbed_official 50:a417edff4437 82 #endif
mbed_official 50:a417edff4437 83
mbed_official 50:a417edff4437 84 #endif