資源簡介
把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
- 下一篇:在線閱讀系統畢業設計完整項目
評論
共有 條評論