my fork
Fork of mbed by
TARGET_ARCH_BLE/system_nrf51822.h@97:4298809c7c9e, 2015-04-08 (annotated)
- Committer:
- filartrix
- Date:
- Wed Apr 08 14:12:53 2015 +0000
- Revision:
- 97:4298809c7c9e
- Parent:
- 87:6213f644d804
First reale BlueNRG module for nucleo 401 board
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 87:6213f644d804 | 1 | /* mbed Microcontroller Library |
bogdanm | 87:6213f644d804 | 2 | |
bogdanm | 87:6213f644d804 | 3 | * Copyright (c) 2013 Nordic Semiconductor. |
bogdanm | 87:6213f644d804 | 4 | * |
bogdanm | 87:6213f644d804 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 87:6213f644d804 | 6 | * you may not use this file except in compliance with the License. |
bogdanm | 87:6213f644d804 | 7 | * You may obtain a copy of the License at |
bogdanm | 87:6213f644d804 | 8 | * |
bogdanm | 87:6213f644d804 | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 87:6213f644d804 | 10 | * |
bogdanm | 87:6213f644d804 | 11 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 87:6213f644d804 | 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 87:6213f644d804 | 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 87:6213f644d804 | 14 | * See the License for the specific language governing permissions and |
bogdanm | 87:6213f644d804 | 15 | * limitations under the License. |
bogdanm | 87:6213f644d804 | 16 | */ |
bogdanm | 87:6213f644d804 | 17 | |
bogdanm | 87:6213f644d804 | 18 | |
bogdanm | 87:6213f644d804 | 19 | #ifndef SYSTEM_NRF51_H |
bogdanm | 87:6213f644d804 | 20 | #define SYSTEM_NRF51_H |
bogdanm | 87:6213f644d804 | 21 | |
bogdanm | 87:6213f644d804 | 22 | #ifdef __cplusplus |
bogdanm | 87:6213f644d804 | 23 | extern "C" { |
bogdanm | 87:6213f644d804 | 24 | #endif |
bogdanm | 87:6213f644d804 | 25 | |
bogdanm | 87:6213f644d804 | 26 | #include <stdint.h> |
bogdanm | 87:6213f644d804 | 27 | |
bogdanm | 87:6213f644d804 | 28 | |
bogdanm | 87:6213f644d804 | 29 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
bogdanm | 87:6213f644d804 | 30 | |
bogdanm | 87:6213f644d804 | 31 | /** |
bogdanm | 87:6213f644d804 | 32 | * Initialize the system |
bogdanm | 87:6213f644d804 | 33 | * |
bogdanm | 87:6213f644d804 | 34 | * @param none |
bogdanm | 87:6213f644d804 | 35 | * @return none |
bogdanm | 87:6213f644d804 | 36 | * |
bogdanm | 87:6213f644d804 | 37 | * @brief Setup the microcontroller system. |
bogdanm | 87:6213f644d804 | 38 | * Initialize the System and update the SystemCoreClock variable. |
bogdanm | 87:6213f644d804 | 39 | */ |
bogdanm | 87:6213f644d804 | 40 | extern void SystemInit (void); |
bogdanm | 87:6213f644d804 | 41 | |
bogdanm | 87:6213f644d804 | 42 | |
bogdanm | 87:6213f644d804 | 43 | /** |
bogdanm | 87:6213f644d804 | 44 | * Update SystemCoreClock variable |
bogdanm | 87:6213f644d804 | 45 | * |
bogdanm | 87:6213f644d804 | 46 | * @param none |
bogdanm | 87:6213f644d804 | 47 | * @return none |
bogdanm | 87:6213f644d804 | 48 | * |
bogdanm | 87:6213f644d804 | 49 | * @brief Updates the SystemCoreClock with current core Clock |
bogdanm | 87:6213f644d804 | 50 | * retrieved from cpu registers. |
bogdanm | 87:6213f644d804 | 51 | */ |
bogdanm | 87:6213f644d804 | 52 | extern void SystemCoreClockUpdate (void); |
bogdanm | 87:6213f644d804 | 53 | |
bogdanm | 87:6213f644d804 | 54 | #ifdef __cplusplus |
bogdanm | 87:6213f644d804 | 55 | } |
bogdanm | 87:6213f644d804 | 56 | #endif |
bogdanm | 87:6213f644d804 | 57 | |
bogdanm | 87:6213f644d804 | 58 | #endif /* SYSTEM_NRF51_H */ |