mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_GigaDevice/TARGET_GD32E10X/device/system_gd32e10x.h@189:f392fc9709a3, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 22:31:08 2019 +0000
- Revision:
- 189:f392fc9709a3
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 189:f392fc9709a3 | 1 | /*! |
AnnaBridge | 189:f392fc9709a3 | 2 | \file system_gd32e10x.h |
AnnaBridge | 189:f392fc9709a3 | 3 | \brief CMSIS Cortex-M4 Device Peripheral Access Layer Header File for |
AnnaBridge | 189:f392fc9709a3 | 4 | GD32E10x Device Series |
AnnaBridge | 189:f392fc9709a3 | 5 | */ |
AnnaBridge | 189:f392fc9709a3 | 6 | |
AnnaBridge | 189:f392fc9709a3 | 7 | /* Copyright (c) 2012 ARM LIMITED |
AnnaBridge | 189:f392fc9709a3 | 8 | |
AnnaBridge | 189:f392fc9709a3 | 9 | All rights reserved. |
AnnaBridge | 189:f392fc9709a3 | 10 | Redistribution and use in source and binary forms, with or without |
AnnaBridge | 189:f392fc9709a3 | 11 | modification, are permitted provided that the following conditions are met: |
AnnaBridge | 189:f392fc9709a3 | 12 | - Redistributions of source code must retain the above copyright |
AnnaBridge | 189:f392fc9709a3 | 13 | notice, this list of conditions and the following disclaimer. |
AnnaBridge | 189:f392fc9709a3 | 14 | - Redistributions in binary form must reproduce the above copyright |
AnnaBridge | 189:f392fc9709a3 | 15 | notice, this list of conditions and the following disclaimer in the |
AnnaBridge | 189:f392fc9709a3 | 16 | documentation and/or other materials provided with the distribution. |
AnnaBridge | 189:f392fc9709a3 | 17 | - Neither the name of ARM nor the names of its contributors may be used |
AnnaBridge | 189:f392fc9709a3 | 18 | to endorse or promote products derived from this software without |
AnnaBridge | 189:f392fc9709a3 | 19 | specific prior written permission. |
AnnaBridge | 189:f392fc9709a3 | 20 | * |
AnnaBridge | 189:f392fc9709a3 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
AnnaBridge | 189:f392fc9709a3 | 22 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
AnnaBridge | 189:f392fc9709a3 | 23 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
AnnaBridge | 189:f392fc9709a3 | 24 | ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
AnnaBridge | 189:f392fc9709a3 | 25 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
AnnaBridge | 189:f392fc9709a3 | 26 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
AnnaBridge | 189:f392fc9709a3 | 27 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
AnnaBridge | 189:f392fc9709a3 | 28 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
AnnaBridge | 189:f392fc9709a3 | 29 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
AnnaBridge | 189:f392fc9709a3 | 30 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
AnnaBridge | 189:f392fc9709a3 | 31 | POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 189:f392fc9709a3 | 32 | ---------------------------------------------------------------------------*/ |
AnnaBridge | 189:f392fc9709a3 | 33 | |
AnnaBridge | 189:f392fc9709a3 | 34 | /* This file refers the CMSIS standard, some adjustments are made according to GigaDevice chips */ |
AnnaBridge | 189:f392fc9709a3 | 35 | |
AnnaBridge | 189:f392fc9709a3 | 36 | #ifndef SYSTEM_GD32E10X_H |
AnnaBridge | 189:f392fc9709a3 | 37 | #define SYSTEM_GD32E10X_H |
AnnaBridge | 189:f392fc9709a3 | 38 | |
AnnaBridge | 189:f392fc9709a3 | 39 | #ifdef __cplusplus |
AnnaBridge | 189:f392fc9709a3 | 40 | extern "C" { |
AnnaBridge | 189:f392fc9709a3 | 41 | #endif |
AnnaBridge | 189:f392fc9709a3 | 42 | |
AnnaBridge | 189:f392fc9709a3 | 43 | #include <stdint.h> |
AnnaBridge | 189:f392fc9709a3 | 44 | |
AnnaBridge | 189:f392fc9709a3 | 45 | /* system clock frequency (core clock) */ |
AnnaBridge | 189:f392fc9709a3 | 46 | extern uint32_t SystemCoreClock; |
AnnaBridge | 189:f392fc9709a3 | 47 | |
AnnaBridge | 189:f392fc9709a3 | 48 | /* function declarations */ |
AnnaBridge | 189:f392fc9709a3 | 49 | /* initialize the system and update the SystemCoreClock variable */ |
AnnaBridge | 189:f392fc9709a3 | 50 | extern void SystemInit(void); |
AnnaBridge | 189:f392fc9709a3 | 51 | /* update the SystemCoreClock with current core clock retrieved from cpu registers */ |
AnnaBridge | 189:f392fc9709a3 | 52 | extern void SystemCoreClockUpdate(void); |
AnnaBridge | 189:f392fc9709a3 | 53 | |
AnnaBridge | 189:f392fc9709a3 | 54 | #ifdef __cplusplus |
AnnaBridge | 189:f392fc9709a3 | 55 | } |
AnnaBridge | 189:f392fc9709a3 | 56 | #endif |
AnnaBridge | 189:f392fc9709a3 | 57 | |
AnnaBridge | 189:f392fc9709a3 | 58 | #endif /* SYSTEM_GD32E10X_H */ |