Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
TARGET_SEEED_TINY_BLE/system_nrf51822.h@96:487b796308b0, 2015-03-17 (annotated)
- Committer:
- Kojto
- Date:
- Tue Mar 17 14:27:45 2015 +0000
- Revision:
- 96:487b796308b0
- Parent:
- 94:9ad691361fac
Release 96 of the mbed library
Changes:
- IAR support for ble boards, lpc, ethernet stack
- RTC - attach function to redirect time functions
- Nucleo F103RB - cube driver
- k20xx - fixes for teensy and k20 platforms in sleep/deepsleep and usb
- STM32L0, Nucleo/Disco L053 - refactoring
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 */ |