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