Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
108:34e6b704fe68
.

Who changed what in which revision?

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