Skip to content

Commit 9b7d776

Browse files
committed
[TY51822r3] add description on comment, fixed years
1 parent 9a9885e commit 9b7d776

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ void SystemCoreClockUpdate(void)
6262
void SystemInit(void)
6363
{
6464
#if defined(TARGET_NRF_32MHZ_XTAL)
65-
// For 32MHz external XTAL such as Taiyo Yuden
65+
/* For 32MHz HFCLK XTAL such as Taiyo Yuden
66+
Physically, tiny footprint XTAL oscillate higher freq. To make BLE modules smaller, some modules
67+
are using 32MHz XTAL.
68+
This code wriging the value 0xFFFFFF00 to the UICR (User Information Configuration Register)
69+
at address 0x10001008, to make nRF51 works with 32MHz system clock. This register will be overwritten
70+
by SoftDevice to 0xFFFFFFFF, the default value. Each hex files built with mbed classic online compiler
71+
contain SoftDevice, so that, this code run once just after the hex file will be flashed onto nRF51.
72+
After changing the value, nRF51 need to reboot. */
6673
if (*(uint32_t *)0x10001008 == 0xFFFFFFFF)
6774
{
6875
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;

libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/PinNames.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* mbed Microcontroller Library
2-
* Copyright (c) 2013 Nordic Semiconductor
2+
* Copyright (c) 2015 Nordic Semiconductor
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* mbed Microcontroller Library
2-
* Copyright (c) 2006-2013 ARM Limited
2+
* Copyright (c) 2006-2015 ARM Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)