|
這邊是外部32K震盪...
// Low frequency clock source to be used by the SoftDevice
//#define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_XTAL, \
// .rc_ctiv = 0, \
// .rc_temp_ctiv = 0, \
// .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
下面是nRF52832跑內部32K震盪的設定
#define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_RC, \
.rc_ctiv = 16, \
.rc_temp_ctiv = 2, \
.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
|
|