anyThing Connected Team / mbed-dev

Dependents:   BREAK_SENSOR_LED

Fork of mbed-dev by mbed official

Committer:
Anythingconnected
Date:
Mon Dec 18 10:14:27 2017 +0000
Revision:
180:d79f997829d6
Parent:
170:19eb464bc2be
Getting byte by byte read to work

Who changed what in which revision?

UserRevisionLine numberNew 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>
Kojto 170:19eb464bc2be 25 #include <stdbool.h>
<> 150:02e0a0aed4ec 26
<> 150:02e0a0aed4ec 27
<> 150:02e0a0aed4ec 28 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
<> 150:02e0a0aed4ec 29
<> 150:02e0a0aed4ec 30 /**
<> 150:02e0a0aed4ec 31 * Initialize the system
<> 150:02e0a0aed4ec 32 *
<> 150:02e0a0aed4ec 33 * @param none
<> 150:02e0a0aed4ec 34 * @return none
<> 150:02e0a0aed4ec 35 *
<> 150:02e0a0aed4ec 36 * @brief Setup the microcontroller system.
<> 150:02e0a0aed4ec 37 * Initialize the System and update the SystemCoreClock variable.
<> 150:02e0a0aed4ec 38 */
<> 150:02e0a0aed4ec 39 extern void SystemInit (void);
<> 150:02e0a0aed4ec 40
<> 150:02e0a0aed4ec 41 /**
<> 150:02e0a0aed4ec 42 * Update SystemCoreClock variable
<> 150:02e0a0aed4ec 43 *
<> 150:02e0a0aed4ec 44 * @param none
<> 150:02e0a0aed4ec 45 * @return none
<> 150:02e0a0aed4ec 46 *
<> 150:02e0a0aed4ec 47 * @brief Updates the SystemCoreClock with current core Clock
<> 150:02e0a0aed4ec 48 * retrieved from cpu registers.
<> 150:02e0a0aed4ec 49 */
<> 150:02e0a0aed4ec 50 extern void SystemCoreClockUpdate (void);
<> 150:02e0a0aed4ec 51
<> 150:02e0a0aed4ec 52
<> 150:02e0a0aed4ec 53 /**
<> 150:02e0a0aed4ec 54 * Allow the system to go to sleep, shutting down clocks, etc.
<> 150:02e0a0aed4ec 55 * or not. If the system is allowed to sleep it will awake
<> 150:02e0a0aed4ec 56 * and restore clocks automatically on an interrupt however
<> 150:02e0a0aed4ec 57 * there will be a 200 to 300 usecond delay.
<> 150:02e0a0aed4ec 58 *
<> 150:02e0a0aed4ec 59 * @param sleepAllowed if true then sleep is allowed.
<> 150:02e0a0aed4ec 60 * @return none
<> 150:02e0a0aed4ec 61 *
<> 150:02e0a0aed4ec 62 * @brief Allow full sleep, or not.
<> 150:02e0a0aed4ec 63 */
<> 150:02e0a0aed4ec 64 extern void SystemAllowSleep(bool sleepAllowed);
<> 150:02e0a0aed4ec 65
<> 150:02e0a0aed4ec 66 #ifdef __cplusplus
<> 150:02e0a0aed4ec 67 }
<> 150:02e0a0aed4ec 68 #endif
<> 150:02e0a0aed4ec 69
<> 150:02e0a0aed4ec 70 #endif /* SYSTEM_HI2110_H */