move USE_LFXO/USE_LFRC to variant.h
This commit is contained in:
1 parent
a7f8694220
commit
2b229f4929
5 files changed
+11
-6
No files matched your search
@@ -257,14 +257,10 @@ err_t AdafruitBluefruit::begin(uint8_t prph_count, uint8_t central_count)
|
||||
.source = NRF_CLOCK_LF_SRC_RC,
|
||||
.rc_ctiv = 16,
|
||||
.rc_temp_ctiv = 2,
|
||||
#if SD_VER < 500
|
||||
.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM
|
||||
#else
|
||||
.accuracy = NRF_CLOCK_LF_ACCURACY_250_PPM
|
||||
#endif
|
||||
};
|
||||
#else
|
||||
#error Clock Source is not configured, define USE_LFXO or USE_LFRC according to your board
|
||||
#error Clock Source is not configured, define USE_LFXO or USE_LFRC according to your board in variant.h
|
||||
#endif
|
||||
|
||||
VERIFY_STATUS( sd_softdevice_enable(&clock_cfg, nrf_error_cb) );
|
||||
|
||||
Reference in new issue
Block a user