資源簡介
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)?????/*!
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?<????}
????/*?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個文件信息
評論
共有 條評論