mirror of https://github.com/ARMmbed/mbed-os.git
[TY51822r3] add description on comment, fixed years
parent
9a9885e5fa
commit
9b7d776d40
|
@ -62,7 +62,14 @@ void SystemCoreClockUpdate(void)
|
||||||
void SystemInit(void)
|
void SystemInit(void)
|
||||||
{
|
{
|
||||||
#if defined(TARGET_NRF_32MHZ_XTAL)
|
#if defined(TARGET_NRF_32MHZ_XTAL)
|
||||||
// For 32MHz external XTAL such as Taiyo Yuden
|
/* For 32MHz HFCLK XTAL such as Taiyo Yuden
|
||||||
|
Physically, tiny footprint XTAL oscillate higher freq. To make BLE modules smaller, some modules
|
||||||
|
are using 32MHz XTAL.
|
||||||
|
This code wriging the value 0xFFFFFF00 to the UICR (User Information Configuration Register)
|
||||||
|
at address 0x10001008, to make nRF51 works with 32MHz system clock. This register will be overwritten
|
||||||
|
by SoftDevice to 0xFFFFFFFF, the default value. Each hex files built with mbed classic online compiler
|
||||||
|
contain SoftDevice, so that, this code run once just after the hex file will be flashed onto nRF51.
|
||||||
|
After changing the value, nRF51 need to reboot. */
|
||||||
if (*(uint32_t *)0x10001008 == 0xFFFFFFFF)
|
if (*(uint32_t *)0x10001008 == 0xFFFFFFFF)
|
||||||
{
|
{
|
||||||
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
|
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* mbed Microcontroller Library
|
/* mbed Microcontroller Library
|
||||||
* Copyright (c) 2013 Nordic Semiconductor
|
* Copyright (c) 2015 Nordic Semiconductor
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* mbed Microcontroller Library
|
/* mbed Microcontroller Library
|
||||||
* Copyright (c) 2006-2013 ARM Limited
|
* Copyright (c) 2006-2015 ARM Limited
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
Loading…
Reference in New Issue