File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
targets/cmsis/TARGET_NORDIC/TARGET_NRF5 Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1107
1107
},
1108
1108
"program_cycle_s" : 6 ,
1109
1109
"default_build" : " small" ,
1110
- "features" : [" BLE" ]
1110
+ "features" : [" BLE" ],
1111
+ "config" :{
1112
+ "lf_clock_src" : {
1113
+ "value" : " NRF_LF_SRC_XTAL" ,
1114
+ "macro_name" : " MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC"
1115
+ }
1116
+ }
1111
1117
},
1112
1118
"MCU_NRF51_16K_BASE" : {
1113
1119
"inherits" : [" MCU_NRF51" ],
1721
1727
"toolchains" : [" ARM_STD" , " GCC_ARM" ]
1722
1728
},
1723
1729
"MERGE_BOOTLOADER" : false ,
1724
- "features" : [" BLE" ]
1730
+ "features" : [" BLE" ],
1731
+ "config" :{
1732
+ "lf_clock_src" : {
1733
+ "value" : " NRF_LF_SRC_XTAL" ,
1734
+ "macro_name" : " MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC"
1735
+ }
1736
+ }
1725
1737
},
1726
1738
"NRF52_DK" : {
1727
1739
"supported_form_factors" : [" ARDUINO" ],
Original file line number Diff line number Diff line change 38
38
39
39
#ifndef __NRF5X_LF_CLK_HELPER_H_
40
40
41
- #ifndef MBED_CONF_APP_NORDIC_NRF_LF_CLOCK_SRC
42
- #define MBED_CONF_APP_NORDIC_NRF_LF_CLOCK_SRC (NRF_LF_SRC_XTAL)
43
- #warning Non of LF clk src configurartion! Sett to LF Xtal .
41
+ #ifndef MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC
42
+ #define MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC (NRF_LF_SRC_XTAL)
43
+ #warning No configuration for LF clock source. Xtal source will be used as a default configuration .
44
44
#endif
45
45
46
46
49
49
#define NRF_LF_SRC_SYNTH 3
50
50
#define NRF_LF_SRC_RC 4
51
51
52
- #if MBED_CONF_APP_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_SYNTH
52
+ #if MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_SYNTH
53
53
#define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_Synth)
54
- #elif MBED_CONF_APP_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_XTAL
54
+ #elif MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_XTAL
55
55
#define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_Xtal)
56
- #elif MBED_CONF_APP_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_RC
56
+ #elif MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_RC
57
57
#define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_RC)
58
58
#else
59
59
#error Bad LFCLK configuration. Declare proper source through mbed configuration.
You can’t perform that action at this time.
0 commit comments