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 by
TARGET_BLE_SMURFS/system_nrf51822.h@93:e188a91d3eaa, 2015-02-03 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 03 15:31:20 2015 +0000
- Revision:
- 93:e188a91d3eaa
Release 93 of the mbed library
Main changes:
- Renesas RZ_A1H bugfixes - i2c, ticker
- new targets - Nucleo F303RE, Nucleo F070RB, BLE SMURFS,
Dragonfly 411RE,
- BusXXX - is connected method, plus operators addition
- LPC8xx - I2c fixes
- timestamp_t reverted to uint32_t
- RTX - fixes regarding stack (alignment, magic word)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 93:e188a91d3eaa | 1 | /* mbed Microcontroller Library |
Kojto | 93:e188a91d3eaa | 2 | |
Kojto | 93:e188a91d3eaa | 3 | * Copyright (c) 2013 Nordic Semiconductor. |
Kojto | 93:e188a91d3eaa | 4 | * |
Kojto | 93:e188a91d3eaa | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 93:e188a91d3eaa | 6 | * you may not use this file except in compliance with the License. |
Kojto | 93:e188a91d3eaa | 7 | * You may obtain a copy of the License at |
Kojto | 93:e188a91d3eaa | 8 | * |
Kojto | 93:e188a91d3eaa | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 93:e188a91d3eaa | 10 | * |
Kojto | 93:e188a91d3eaa | 11 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 93:e188a91d3eaa | 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 93:e188a91d3eaa | 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 93:e188a91d3eaa | 14 | * See the License for the specific language governing permissions and |
Kojto | 93:e188a91d3eaa | 15 | * limitations under the License. |
Kojto | 93:e188a91d3eaa | 16 | */ |
Kojto | 93:e188a91d3eaa | 17 | |
Kojto | 93:e188a91d3eaa | 18 | |
Kojto | 93:e188a91d3eaa | 19 | #ifndef SYSTEM_NRF51_H |
Kojto | 93:e188a91d3eaa | 20 | #define SYSTEM_NRF51_H |
Kojto | 93:e188a91d3eaa | 21 | |
Kojto | 93:e188a91d3eaa | 22 | #ifdef __cplusplus |
Kojto | 93:e188a91d3eaa | 23 | extern "C" { |
Kojto | 93:e188a91d3eaa | 24 | #endif |
Kojto | 93:e188a91d3eaa | 25 | |
Kojto | 93:e188a91d3eaa | 26 | #include <stdint.h> |
Kojto | 93:e188a91d3eaa | 27 | |
Kojto | 93:e188a91d3eaa | 28 | |
Kojto | 93:e188a91d3eaa | 29 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
Kojto | 93:e188a91d3eaa | 30 | |
Kojto | 93:e188a91d3eaa | 31 | /** |
Kojto | 93:e188a91d3eaa | 32 | * Initialize the system |
Kojto | 93:e188a91d3eaa | 33 | * |
Kojto | 93:e188a91d3eaa | 34 | * @param none |
Kojto | 93:e188a91d3eaa | 35 | * @return none |
Kojto | 93:e188a91d3eaa | 36 | * |
Kojto | 93:e188a91d3eaa | 37 | * @brief Setup the microcontroller system. |
Kojto | 93:e188a91d3eaa | 38 | * Initialize the System and update the SystemCoreClock variable. |
Kojto | 93:e188a91d3eaa | 39 | */ |
Kojto | 93:e188a91d3eaa | 40 | extern void SystemInit (void); |
Kojto | 93:e188a91d3eaa | 41 | |
Kojto | 93:e188a91d3eaa | 42 | |
Kojto | 93:e188a91d3eaa | 43 | /** |
Kojto | 93:e188a91d3eaa | 44 | * Update SystemCoreClock variable |
Kojto | 93:e188a91d3eaa | 45 | * |
Kojto | 93:e188a91d3eaa | 46 | * @param none |
Kojto | 93:e188a91d3eaa | 47 | * @return none |
Kojto | 93:e188a91d3eaa | 48 | * |
Kojto | 93:e188a91d3eaa | 49 | * @brief Updates the SystemCoreClock with current core Clock |
Kojto | 93:e188a91d3eaa | 50 | * retrieved from cpu registers. |
Kojto | 93:e188a91d3eaa | 51 | */ |
Kojto | 93:e188a91d3eaa | 52 | extern void SystemCoreClockUpdate (void); |
Kojto | 93:e188a91d3eaa | 53 | |
Kojto | 93:e188a91d3eaa | 54 | #ifdef __cplusplus |
Kojto | 93:e188a91d3eaa | 55 | } |
Kojto | 93:e188a91d3eaa | 56 | #endif |
Kojto | 93:e188a91d3eaa | 57 | |
Kojto | 93:e188a91d3eaa | 58 | #endif /* SYSTEM_NRF51_H */ |