Elijah Orr / mbed-renbed

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
Kojto
Date:
Tue Jun 09 14:29:26 2015 +0100
Revision:
101:7cff1c4259d7
Release 101 of the mbed library

Changes:
- new platform: APPNEARME_MICRONFCBOARD, MTS_DRAGONFLY_F411RE, MAX32600MBED, WIZwiki_W7500
- Silabs memory optimization in gpio, pwm fixes
- SPI - ssel documentation fixes and its use

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 101:7cff1c4259d7 1 /**************************************************************************//**
Kojto 101:7cff1c4259d7 2 * @file system_W7500x.h
Kojto 101:7cff1c4259d7 3 * @brief CMSIS Cortex-M# Device Peripheral Access Layer Header File for
Kojto 101:7cff1c4259d7 4 * Device W7500x
Kojto 101:7cff1c4259d7 5 * @version V3.10
Kojto 101:7cff1c4259d7 6 * @date 23. November 2012
Kojto 101:7cff1c4259d7 7 *
Kojto 101:7cff1c4259d7 8 * @note
Kojto 101:7cff1c4259d7 9 *
Kojto 101:7cff1c4259d7 10 ******************************************************************************/
Kojto 101:7cff1c4259d7 11 /* Copyright (c) 2012 ARM LIMITED
Kojto 101:7cff1c4259d7 12
Kojto 101:7cff1c4259d7 13 All rights reserved.
Kojto 101:7cff1c4259d7 14 Redistribution and use in source and binary forms, with or without
Kojto 101:7cff1c4259d7 15 modification, are permitted provided that the following conditions are met:
Kojto 101:7cff1c4259d7 16 - Redistributions of source code must retain the above copyright
Kojto 101:7cff1c4259d7 17 notice, this list of conditions and the following disclaimer.
Kojto 101:7cff1c4259d7 18 - Redistributions in binary form must reproduce the above copyright
Kojto 101:7cff1c4259d7 19 notice, this list of conditions and the following disclaimer in the
Kojto 101:7cff1c4259d7 20 documentation and/or other materials provided with the distribution.
Kojto 101:7cff1c4259d7 21 - Neither the name of ARM nor the names of its contributors may be used
Kojto 101:7cff1c4259d7 22 to endorse or promote products derived from this software without
Kojto 101:7cff1c4259d7 23 specific prior written permission.
Kojto 101:7cff1c4259d7 24 *
Kojto 101:7cff1c4259d7 25 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 101:7cff1c4259d7 26 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 101:7cff1c4259d7 27 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Kojto 101:7cff1c4259d7 28 ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
Kojto 101:7cff1c4259d7 29 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
Kojto 101:7cff1c4259d7 30 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
Kojto 101:7cff1c4259d7 31 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Kojto 101:7cff1c4259d7 32 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
Kojto 101:7cff1c4259d7 33 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
Kojto 101:7cff1c4259d7 34 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
Kojto 101:7cff1c4259d7 35 POSSIBILITY OF SUCH DAMAGE.
Kojto 101:7cff1c4259d7 36 ---------------------------------------------------------------------------*/
Kojto 101:7cff1c4259d7 37
Kojto 101:7cff1c4259d7 38
Kojto 101:7cff1c4259d7 39 #ifndef SYSTEM_W7500x_H /* ToDo: replace '<Device>' with your device name */
Kojto 101:7cff1c4259d7 40 #define SYSTEM_W7500x_H
Kojto 101:7cff1c4259d7 41
Kojto 101:7cff1c4259d7 42 #ifdef __cplusplus
Kojto 101:7cff1c4259d7 43 extern "C" {
Kojto 101:7cff1c4259d7 44 #endif
Kojto 101:7cff1c4259d7 45
Kojto 101:7cff1c4259d7 46 #include "W7500x.h"
Kojto 101:7cff1c4259d7 47
Kojto 101:7cff1c4259d7 48 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
Kojto 101:7cff1c4259d7 49 extern uint32_t GetSystemClock(void); /*!< Get System Clock Frequency */
Kojto 101:7cff1c4259d7 50
Kojto 101:7cff1c4259d7 51
Kojto 101:7cff1c4259d7 52 /**
Kojto 101:7cff1c4259d7 53 * Initialize the system
Kojto 101:7cff1c4259d7 54 *
Kojto 101:7cff1c4259d7 55 * @param none
Kojto 101:7cff1c4259d7 56 * @return none
Kojto 101:7cff1c4259d7 57 *
Kojto 101:7cff1c4259d7 58 * @brief Setup the microcontroller system.
Kojto 101:7cff1c4259d7 59 * Initialize the System and update the SystemCoreClock variable.
Kojto 101:7cff1c4259d7 60 */
Kojto 101:7cff1c4259d7 61 extern void SystemInit (void);
Kojto 101:7cff1c4259d7 62
Kojto 101:7cff1c4259d7 63 /**
Kojto 101:7cff1c4259d7 64 * Update SystemCoreClock variable
Kojto 101:7cff1c4259d7 65 *
Kojto 101:7cff1c4259d7 66 * @param none
Kojto 101:7cff1c4259d7 67 * @return none
Kojto 101:7cff1c4259d7 68 *
Kojto 101:7cff1c4259d7 69 * @brief Updates the SystemCoreClock with current core Clock
Kojto 101:7cff1c4259d7 70 * retrieved from cpu registers.
Kojto 101:7cff1c4259d7 71 */
Kojto 101:7cff1c4259d7 72 extern void SystemCoreClockUpdate (void);
Kojto 101:7cff1c4259d7 73
Kojto 101:7cff1c4259d7 74 /*----------------------------------------------------------------------------
Kojto 101:7cff1c4259d7 75 Define clocks
Kojto 101:7cff1c4259d7 76 *----------------------------------------------------------------------------*/
Kojto 101:7cff1c4259d7 77 #define EXTERN_XTAL (8000000UL) /* External Oscillator Frequency */
Kojto 101:7cff1c4259d7 78 #define INTERN_XTAL (8000000UL) /* Internal Oscillator Frequency */
Kojto 101:7cff1c4259d7 79
Kojto 101:7cff1c4259d7 80 #ifdef __cplusplus
Kojto 101:7cff1c4259d7 81 }
Kojto 101:7cff1c4259d7 82 #endif
Kojto 101:7cff1c4259d7 83
Kojto 101:7cff1c4259d7 84 #endif /* SYSTEM_W7500x_H */