Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
targets/TARGET_ublox/TARGET_HI2110/device/system_hi2110.h@153:9398a535854b, 2016-12-22 (annotated)
- Committer:
- fwndz
- Date:
- Thu Dec 22 05:12:40 2016 +0000
- Revision:
- 153:9398a535854b
- Parent:
- 150:02e0a0aed4ec
device target maximize
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 150:02e0a0aed4ec | 1 | /* mbed Microcontroller Library |
<> | 150:02e0a0aed4ec | 2 | * Copyright (c) 2016 u-blox |
<> | 150:02e0a0aed4ec | 3 | * |
<> | 150:02e0a0aed4ec | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 150:02e0a0aed4ec | 5 | * you may not use this file except in compliance with the License. |
<> | 150:02e0a0aed4ec | 6 | * You may obtain a copy of the License at |
<> | 150:02e0a0aed4ec | 7 | * |
<> | 150:02e0a0aed4ec | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 150:02e0a0aed4ec | 9 | * |
<> | 150:02e0a0aed4ec | 10 | * Unless required by applicable law or agreed to in writing, software |
<> | 150:02e0a0aed4ec | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 150:02e0a0aed4ec | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 150:02e0a0aed4ec | 13 | * See the License for the specific language governing permissions and |
<> | 150:02e0a0aed4ec | 14 | * limitations under the License. |
<> | 150:02e0a0aed4ec | 15 | */ |
<> | 150:02e0a0aed4ec | 16 | |
<> | 150:02e0a0aed4ec | 17 | #ifndef SYSTEM_HI2110_H |
<> | 150:02e0a0aed4ec | 18 | #define SYSTEM_HI2110_H |
<> | 150:02e0a0aed4ec | 19 | |
<> | 150:02e0a0aed4ec | 20 | #ifdef __cplusplus |
<> | 150:02e0a0aed4ec | 21 | extern "C" { |
<> | 150:02e0a0aed4ec | 22 | #endif |
<> | 150:02e0a0aed4ec | 23 | |
<> | 150:02e0a0aed4ec | 24 | #include <stdint.h> |
<> | 150:02e0a0aed4ec | 25 | |
<> | 150:02e0a0aed4ec | 26 | |
<> | 150:02e0a0aed4ec | 27 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
<> | 150:02e0a0aed4ec | 28 | |
<> | 150:02e0a0aed4ec | 29 | /** |
<> | 150:02e0a0aed4ec | 30 | * Initialize the system |
<> | 150:02e0a0aed4ec | 31 | * |
<> | 150:02e0a0aed4ec | 32 | * @param none |
<> | 150:02e0a0aed4ec | 33 | * @return none |
<> | 150:02e0a0aed4ec | 34 | * |
<> | 150:02e0a0aed4ec | 35 | * @brief Setup the microcontroller system. |
<> | 150:02e0a0aed4ec | 36 | * Initialize the System and update the SystemCoreClock variable. |
<> | 150:02e0a0aed4ec | 37 | */ |
<> | 150:02e0a0aed4ec | 38 | extern void SystemInit (void); |
<> | 150:02e0a0aed4ec | 39 | |
<> | 150:02e0a0aed4ec | 40 | /** |
<> | 150:02e0a0aed4ec | 41 | * Update SystemCoreClock variable |
<> | 150:02e0a0aed4ec | 42 | * |
<> | 150:02e0a0aed4ec | 43 | * @param none |
<> | 150:02e0a0aed4ec | 44 | * @return none |
<> | 150:02e0a0aed4ec | 45 | * |
<> | 150:02e0a0aed4ec | 46 | * @brief Updates the SystemCoreClock with current core Clock |
<> | 150:02e0a0aed4ec | 47 | * retrieved from cpu registers. |
<> | 150:02e0a0aed4ec | 48 | */ |
<> | 150:02e0a0aed4ec | 49 | extern void SystemCoreClockUpdate (void); |
<> | 150:02e0a0aed4ec | 50 | |
<> | 150:02e0a0aed4ec | 51 | |
<> | 150:02e0a0aed4ec | 52 | /** |
<> | 150:02e0a0aed4ec | 53 | * Allow the system to go to sleep, shutting down clocks, etc. |
<> | 150:02e0a0aed4ec | 54 | * or not. If the system is allowed to sleep it will awake |
<> | 150:02e0a0aed4ec | 55 | * and restore clocks automatically on an interrupt however |
<> | 150:02e0a0aed4ec | 56 | * there will be a 200 to 300 usecond delay. |
<> | 150:02e0a0aed4ec | 57 | * |
<> | 150:02e0a0aed4ec | 58 | * @param sleepAllowed if true then sleep is allowed. |
<> | 150:02e0a0aed4ec | 59 | * @return none |
<> | 150:02e0a0aed4ec | 60 | * |
<> | 150:02e0a0aed4ec | 61 | * @brief Allow full sleep, or not. |
<> | 150:02e0a0aed4ec | 62 | */ |
<> | 150:02e0a0aed4ec | 63 | extern void SystemAllowSleep(bool sleepAllowed); |
<> | 150:02e0a0aed4ec | 64 | |
<> | 150:02e0a0aed4ec | 65 | #ifdef __cplusplus |
<> | 150:02e0a0aed4ec | 66 | } |
<> | 150:02e0a0aed4ec | 67 | #endif |
<> | 150:02e0a0aed4ec | 68 | |
<> | 150:02e0a0aed4ec | 69 | #endif /* SYSTEM_HI2110_H */ |