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.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/nrf5x_lf_clk_helper.h@138:093f2bd7b9eb, 2017-03-14 (annotated)
- Committer:
- <>
- Date:
- Tue Mar 14 16:20:51 2017 +0000
- Revision:
- 138:093f2bd7b9eb
- Parent:
- 128:9bcdf88f62b0
Release 138 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3716: fix for issue #3715: correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files https://github.com/ARMmbed/mbed-os/pull/3716
3741: STM32 remove warning in hal_tick_32b.c file https://github.com/ARMmbed/mbed-os/pull/3741
3780: STM32L4 : Fix GPIO G port compatibility https://github.com/ARMmbed/mbed-os/pull/3780
3831: NCS36510: SPISLAVE enabled (Conflict resolved) https://github.com/ARMmbed/mbed-os/pull/3831
3836: Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os https://github.com/ARMmbed/mbed-os/pull/3836
3840: STM32: gpio SPEED - always set High Speed by default https://github.com/ARMmbed/mbed-os/pull/3840
3844: STM32 GPIO: Typo correction. Update comment (GPIO_IP_WITHOUT_BRR) https://github.com/ARMmbed/mbed-os/pull/3844
3850: STM32: change spi error to debug warning https://github.com/ARMmbed/mbed-os/pull/3850
3860: Define GPIO_IP_WITHOUT_BRR for xDot platform https://github.com/ARMmbed/mbed-os/pull/3860
3880: DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated https://github.com/ARMmbed/mbed-os/pull/3880
3795: Fix pwm period calc https://github.com/ARMmbed/mbed-os/pull/3795
3828: STM32 CAN API: correct format and type https://github.com/ARMmbed/mbed-os/pull/3828
3842: TARGET_NRF: corrected spi_init() to properly handle re-initialization https://github.com/ARMmbed/mbed-os/pull/3842
3843: STM32L476xG: set APB2 clock to 80MHz (instead of 40MHz) https://github.com/ARMmbed/mbed-os/pull/3843
3879: NUCLEO_F446ZE: Add missing AnalogIn pins on PF_3, PF_5 and PF_10. https://github.com/ARMmbed/mbed-os/pull/3879
3902: Fix heap and stack size for NUCLEO_F746ZG https://github.com/ARMmbed/mbed-os/pull/3902
3829: can_write(): return error code when no tx mailboxes are available https://github.com/ARMmbed/mbed-os/pull/3829
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| AnnaBridge | 126:abea610beb85 | 1 | /* |
| AnnaBridge | 126:abea610beb85 | 2 | * Copyright (c) 2016 Nordic Semiconductor ASA |
| AnnaBridge | 126:abea610beb85 | 3 | * All rights reserved. |
| AnnaBridge | 126:abea610beb85 | 4 | * |
| AnnaBridge | 126:abea610beb85 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
| AnnaBridge | 126:abea610beb85 | 6 | * are permitted provided that the following conditions are met: |
| AnnaBridge | 126:abea610beb85 | 7 | * |
| AnnaBridge | 126:abea610beb85 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this list |
| AnnaBridge | 126:abea610beb85 | 9 | * of conditions and the following disclaimer. |
| AnnaBridge | 126:abea610beb85 | 10 | * |
| AnnaBridge | 126:abea610beb85 | 11 | * 2. Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA |
| AnnaBridge | 126:abea610beb85 | 12 | * integrated circuit in a product or a software update for such product, must reproduce |
| AnnaBridge | 126:abea610beb85 | 13 | * the above copyright notice, this list of conditions and the following disclaimer in |
| AnnaBridge | 126:abea610beb85 | 14 | * the documentation and/or other materials provided with the distribution. |
| AnnaBridge | 126:abea610beb85 | 15 | * |
| AnnaBridge | 126:abea610beb85 | 16 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be |
| AnnaBridge | 126:abea610beb85 | 17 | * used to endorse or promote products derived from this software without specific prior |
| AnnaBridge | 126:abea610beb85 | 18 | * written permission. |
| AnnaBridge | 126:abea610beb85 | 19 | * |
| AnnaBridge | 126:abea610beb85 | 20 | * 4. This software, with or without modification, must only be used with a |
| AnnaBridge | 126:abea610beb85 | 21 | * Nordic Semiconductor ASA integrated circuit. |
| AnnaBridge | 126:abea610beb85 | 22 | * |
| AnnaBridge | 126:abea610beb85 | 23 | * 5. Any software provided in binary or object form under this license must not be reverse |
| AnnaBridge | 126:abea610beb85 | 24 | * engineered, decompiled, modified and/or disassembled. |
| AnnaBridge | 126:abea610beb85 | 25 | * |
| AnnaBridge | 126:abea610beb85 | 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| AnnaBridge | 126:abea610beb85 | 27 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| AnnaBridge | 126:abea610beb85 | 28 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| AnnaBridge | 126:abea610beb85 | 29 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
| AnnaBridge | 126:abea610beb85 | 30 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| AnnaBridge | 126:abea610beb85 | 31 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| AnnaBridge | 126:abea610beb85 | 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| AnnaBridge | 126:abea610beb85 | 33 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| AnnaBridge | 126:abea610beb85 | 34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| AnnaBridge | 126:abea610beb85 | 35 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| AnnaBridge | 126:abea610beb85 | 36 | * |
| AnnaBridge | 126:abea610beb85 | 37 | */ |
| AnnaBridge | 126:abea610beb85 | 38 | |
| AnnaBridge | 126:abea610beb85 | 39 | #ifndef __NRF5X_LF_CLK_HELPER_H_ |
| AnnaBridge | 126:abea610beb85 | 40 | |
| AnnaBridge | 126:abea610beb85 | 41 | #ifndef MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC |
| AnnaBridge | 126:abea610beb85 | 42 | #define MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC (NRF_LF_SRC_XTAL) |
| AnnaBridge | 126:abea610beb85 | 43 | #warning No configuration for LF clock source. Xtal source will be used as a default configuration. |
| AnnaBridge | 126:abea610beb85 | 44 | #endif |
| AnnaBridge | 126:abea610beb85 | 45 | |
| AnnaBridge | 126:abea610beb85 | 46 | |
| AnnaBridge | 126:abea610beb85 | 47 | |
| AnnaBridge | 126:abea610beb85 | 48 | #define NRF_LF_SRC_XTAL 2 |
| AnnaBridge | 126:abea610beb85 | 49 | #define NRF_LF_SRC_SYNTH 3 |
| AnnaBridge | 126:abea610beb85 | 50 | #define NRF_LF_SRC_RC 4 |
| AnnaBridge | 126:abea610beb85 | 51 | |
| AnnaBridge | 126:abea610beb85 | 52 | #if MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_SYNTH |
| AnnaBridge | 126:abea610beb85 | 53 | #define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_Synth) |
| AnnaBridge | 126:abea610beb85 | 54 | #elif MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_XTAL |
| AnnaBridge | 126:abea610beb85 | 55 | #define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_Xtal) |
| AnnaBridge | 126:abea610beb85 | 56 | #elif MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_RC |
| AnnaBridge | 126:abea610beb85 | 57 | #define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_RC) |
| AnnaBridge | 126:abea610beb85 | 58 | #else |
| AnnaBridge | 126:abea610beb85 | 59 | #error Bad LFCLK configuration. Declare proper source through mbed configuration. |
| AnnaBridge | 126:abea610beb85 | 60 | #endif |
| AnnaBridge | 126:abea610beb85 | 61 | |
| AnnaBridge | 126:abea610beb85 | 62 | #undef NRF_LF_SRC_XTAL |
| AnnaBridge | 126:abea610beb85 | 63 | #undef NRF_LF_SRC_SYNTH |
| AnnaBridge | 126:abea610beb85 | 64 | #undef NRF_LF_SRC_RC |
| AnnaBridge | 126:abea610beb85 | 65 | |
| AnnaBridge | 126:abea610beb85 | 66 | #endif |


