资源简介
MDK 5 Nordic nRF系列MCU 支持包NordicSemiconductor.nRF_DeviceFamilyPack.8.17.0
代码片段和文件信息
/*
Copyright (c) 2009-2018 ARM Limited. All rights reserved.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License Version 2.0 (the License); you may
not use this file except in compliance with the License.
You may obtain a copy of the License at
www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing software
distributed under the License is distributed on an AS IS BASIS WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
NOTICE: This file has been modified by Nordic Semiconductor ASA.
*/
/* NOTE: Template files (including this one) are application specific and therefore expected to
be copied into the application project folder prior to its use! */
#include
#include
#include “nrf.h“
#include “system_nrf51.h“
/*lint ++flb “Enter library region“ */
#define __SYSTEM_CLOCK (16000000UL) /*!< nRF51 devices use a fixed System Clock Frequency of 16MHz */
static bool is_manual_peripheral_setup_needed(void);
static bool is_disabled_in_debug_needed(void);
static bool is_peripheral_domain_setup_needed(void);
#if defined ( __CC_ARM )
uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK;
#elif defined ( __ICCARM__ )
__root uint32_t SystemCoreClock = __SYSTEM_CLOCK;
#elif defined ( __GNUC__ )
uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK;
#endif
void SystemCoreClockUpdate(void)
{
SystemCoreClock = __SYSTEM_CLOCK;
}
void SystemInit(void)
{
/* If desired switch off the unused RAM to lower consumption by the use of RAMON register.
It can also be done in the application main() function. */
/* Prepare the peripherals for use as indicated by the PAN 26 “System: Manual setup is required
to enable the use of peripherals“ found at Product Anomaly document for your device found at
https://www.nordicsemi.com/. The side effect of executing these instructions in the devices
that do not need it is that the new peripherals in the second generation devices (LPCOMP for
example) will not be available. */
if (is_manual_peripheral_setup_needed())
{
*(uint32_t volatile *)0x40000504 = 0xC007FFDF;
*(uint32_t volatile *)0x40006C18 = 0x00008000;
}
/* Disable PROTENSET registers under debug as indicated by PAN 59 “MPU: Reset value of DISABLEINDEBUG
register is incorrect“ found at Product Anomaly document for your device found at
https://www.nordicsemi.com/. There is no side effect of using these instruction if not needed. */
if (is_disabled_in_debug_needed())
{
NRF_MPU->DISABLEINDEBUG = MPU_DISABLEINDEBUG_DISABLEINDEBUG_Disabled << MPU_DISABLEINDEBUG_DISABLEINDEBUG_Pos;
}
/* Execute the following code to eliminate e
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3951 2018-06-06 21:21 Device\Include\compiler_abstraction.h
文件 3520 2018-06-06 21:21 Device\Include\nrf.h
文件 98514 2018-06-06 21:21 Device\Include\nrf51.h
文件 3910 2018-06-06 21:21 Device\Include\nrf51422_peripherals.h
文件 3910 2018-06-06 21:21 Device\Include\nrf51801_peripherals.h
文件 3910 2018-06-06 21:21 Device\Include\nrf51802_peripherals.h
文件 3912 2018-06-06 21:21 Device\Include\nrf51822_peripherals.h
文件 3912 2018-06-06 21:21 Device\Include\nrf51824_peripherals.h
文件 349356 2018-06-06 21:21 Device\Include\nrf51_bitfields.h
文件 26713 2018-06-06 21:21 Device\Include\nrf51_deprecated.h
文件 3870 2018-06-06 21:21 Device\Include\nrf51_peripherals.h
文件 47549 2018-06-06 21:21 Device\Include\nrf51_to_nrf52.h
文件 21239 2018-06-06 21:21 Device\Include\nrf51_to_nrf52810.h
文件 23336 2018-06-06 21:21 Device\Include\nrf51_to_nrf52840.h
文件 188334 2018-06-06 21:21 Device\Include\nrf52.h
文件 141972 2018-06-06 21:21 Device\Include\nrf52810.h
文件 582724 2018-06-06 21:21 Device\Include\nrf52810_bitfields.h
文件 5012 2018-06-06 21:21 Device\Include\nrf52810_peripherals.h
文件 6660 2018-06-06 21:21 Device\Include\nrf52832_peripherals.h
文件 231926 2018-06-06 21:21 Device\Include\nrf52840.h
文件 992969 2018-06-06 21:21 Device\Include\nrf52840_bitfields.h
文件 7293 2018-06-06 21:21 Device\Include\nrf52840_peripherals.h
文件 752901 2018-06-06 21:21 Device\Include\nrf52_bitfields.h
文件 3706 2018-06-06 21:21 Device\Include\nrf52_name_change.h
文件 5179 2018-06-06 21:21 Device\Include\nrf52_to_nrf52810.h
文件 4710 2018-06-06 21:21 Device\Include\nrf52_to_nrf52840.h
文件 2464 2018-06-06 21:21 Device\Include\nrf_peripherals.h
文件 2811 2018-06-06 21:21 Device\Include\startup_config.h
文件 1448 2018-06-06 21:21 Device\Include\system_nrf51.h
文件 1448 2018-06-06 21:21 Device\Include\system_nrf52.h
文件 1457 2018-06-06 21:21 Device\Include\system_nrf52810.h
............此处省略40个文件信息
相关资源
- NRF52832量产烧录打包工具指令.rar
- NORDIC DFU移植
- Nordic的nRF-Toolbox的源代码
- 清风蓝牙教程-nrf52832
- 2018年Nordic Technica Tour
- 基于Nordic蓝牙芯片的智能手环端源码
- NordicSemiconductor.nRF_DeviceFamilyPack.8.24.
- nordic蓝牙抓包工具以及教程
- 青风带你学蓝牙5.0初稿).pdf
- NRF51822 SDK
- Nordic51822 被连接时打开广播
- NordicSemiconductor.nRF_DeviceFamilyPack.8.14.
- 蓝牙Mesh基础开发-Nordic nRF5 SDK for Mes
- NordicSemiconductor.nRF_DeviceFamilyPack.8.15.
- micro_ecc_lib_nrf52.lib
- nrf_sniffer_for_bluetooth_le_2.0.0_c87e17d.zip
- nRF Mesh网络
- nRF52832开发指南-上册
- NordicSemiconductor.nRF_DeviceFamilyPack.8.32.
- NordicSemiconductor.nRF_DeviceFamilyPack.8.11.
- NordicSemiconductor.nRF_DeviceFamilyPack(8.1
评论
共有 条评论