资源简介
把n52832应用程序源代码不常用的内容进行精简,原来程序模版压缩后为23M,精简之后的模版为1.7M,大大减少了存储空间,并减少源代码太多,查找困难问题。其中协议栈hex文件在.\components\softdevice\s132\hex目录下,APP生成的hex在.\obj目录下。
代码片段和文件信息
/* Copyright (c) 2012 ARM LIMITED
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice this
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of ARM nor the names of its contributors may be used to
* endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include
#include
#include “nrf.h“
#include “system_nrf52.h“
/*lint ++flb “Enter library region“ */
#define __SYSTEM_CLOCK_64M (64000000UL)
static bool errata_16(void);
static bool errata_31(void);
static bool errata_32(void);
static bool errata_36(void);
static bool errata_37(void);
static bool errata_57(void);
static bool errata_66(void);
static bool errata_108(void);
#if defined ( __CC_ARM )
uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
#elif defined ( __ICCARM__ )
__root uint32_t SystemCoreClock = __SYSTEM_CLOCK_64M;
#elif defined ( __GNUC__ )
uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
#endif
void SystemCoreClockUpdate(void)
{
SystemCoreClock = __SYSTEM_CLOCK_64M;
}
void SystemInit(void)
{
/* Workaround for Errata 16 “System: RAM may be corrupt on wakeup from CPU IDLE“ found at the Errata document
for your device located at https://infocenter.nordicsemi.com/ */
if (errata_16()){
*(volatile uint32_t *)0x4007C074 = 3131961357ul;
}
/* Workaround for Errata 31 “CLOCK: Calibration values are not correctly loaded from FICR at reset“ found at the Errata document
for your device located at https://infocenter.nordicsemi.com/ */
if (errata_31()){
*(volatile uint32_t *)0x4000053C = ((*(volati
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 24423 2015-10-20 10:13 ble_app_uart\V1000\CMSIS_CORE\cmsis_armcc.h
文件 114498 2015-10-20 11:37 ble_app_uart\V1000\CMSIS_CORE\core_cm4.h
文件 3620 2015-10-20 10:13 ble_app_uart\V1000\CMSIS_CORE\core_cmFunc.h
文件 3636 2015-10-20 10:13 ble_app_uart\V1000\CMSIS_CORE\core_cmInstr.h
文件 3662 2015-10-20 10:13 ble_app_uart\V1000\CMSIS_CORE\core_cmSimd.h
文件 21773 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_advertising\ble_advertising.c
文件 10808 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_advertising\ble_advertising.h
文件 291 2016-11-29 04:26 ble_app_uart\V1000\components\ble\ble_advertising\ble_advertising_dox_config.h
文件 38655 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_db_discovery\ble_db_discovery.c
文件 9149 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_db_discovery\ble_db_discovery.h
文件 302 2016-11-29 04:26 ble_app_uart\V1000\components\ble\ble_db_discovery\ble_db_discovery_dox_config.h
文件 2132 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_debug_assert_handler\ble_debug_assert_handler.c
文件 2154 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_debug_assert_handler\ble_debug_assert_handler.h
文件 28384 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_dtm\ble_dtm.c
文件 9367 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_dtm\ble_dtm.h
文件 285 2016-11-29 04:26 ble_app_uart\V1000\components\ble\ble_dtm\ble_dtm_dox_config.h
文件 2394 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_dtm\ble_dtm_hw.h
文件 3014 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_dtm\ble_dtm_hw_nrf51.c
文件 2726 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_dtm\ble_dtm_hw_nrf52.c
文件 1883 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_error_log\ble_error_log.c
文件 3112 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_error_log\ble_error_log.h
文件 1572 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_racp\ble_racp.c
文件 6021 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_racp\ble_racp.h
文件 280 2016-11-29 04:26 ble_app_uart\V1000\components\ble\ble_racp\ble_racp_dox_config.h
文件 1817 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_radio_notification\ble_radio_notification.c
文件 1817 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_radio_notification\ble_radio_notification.h
文件 14790 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_services\ble_ancs_c\ancs_app_attr_get.c
文件 1305 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_services\ble_ancs_c\ancs_app_attr_get.h
文件 14384 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_services\ble_ancs_c\ancs_attr_parser.c
文件 2163 2016-11-29 04:25 ble_app_uart\V1000\components\ble\ble_services\ble_ancs_c\ancs_attr_parser.h
............此处省略796个文件信息
- 上一篇:A Mathematical Gift 2
- 下一篇:在线阅读系统毕业设计完整项目
相关资源
- 广义Einstein-Cartan-Kibble-Sciama引力和引力
- Continuum of positive solutions for discrete &
- BLE-CC254x-1.3.2 蓝牙官方源代码
- New Analytical Solution of a Generalized Negat
- Multiplicity of positive solutions for p(x)
- Existence of positive solutions for some singu
- Guide to Reliable Distributed Systems
- Cluster Ensembles – A Knowledge Reuse fr
- Forefront让CableWireless从容面对垃圾邮件
- STM32 SRAM启动的 KeiL 配置
- A discrete fruit fly optimization algorithm fo
- flowable整合Spring
- THERMAL ANNEALING TREATMENT TO ACHIEVE SWITCHA
- A Novel Algorithm for Ternary Reversible Logic
- Discovery of Reversible and Persistent Electri
- 磁盘分区助手PA5.2_Portable
- Facile hydrothermal synthesis of Tb2(MoO4)
- A Facile Mixed-Solvothermal Route to γ-B
- IT十年经典书系列英文版-Design_Patter
- 狼群算法Multi-strategy ensemble grey wolf
- 基于AT89C51的十字路口交通灯设计pro
- keil调试仿真技巧-从入门到精通
- 飞控代码源码-台湾飞控大神版
- AndreaMosaicPortable蒙太奇马赛克拼图制作
- Bumblebee2双目立体摄像机资料
- Keil4破解版下载150129
- 基于51单片机的十字路口交通灯Protu
- keilc51源代码
- 6进制与浮点数包括float和double互转、
- CRC_GEN_CONFIGUABLE.rar
评论
共有 条评论