mirror of
https://github.com/jam422470459/EPD-nRF52-hema213.git
synced 2025-12-06 08:32:54 +08:00
use internal rc oscillator
This commit is contained in:
@@ -10552,12 +10552,12 @@
|
|||||||
// <2=> NRF_CLOCK_LF_SRC_SYNTH
|
// <2=> NRF_CLOCK_LF_SRC_SYNTH
|
||||||
|
|
||||||
#ifndef NRF_SDH_CLOCK_LF_SRC
|
#ifndef NRF_SDH_CLOCK_LF_SRC
|
||||||
#define NRF_SDH_CLOCK_LF_SRC 2
|
#define NRF_SDH_CLOCK_LF_SRC 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
|
// <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
|
||||||
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
|
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
|
||||||
#define NRF_SDH_CLOCK_LF_RC_CTIV 0
|
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
|
// <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
|
||||||
@@ -10565,7 +10565,7 @@
|
|||||||
// <i> if the temperature has not changed.
|
// <i> if the temperature has not changed.
|
||||||
|
|
||||||
#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
|
#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
|
||||||
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
|
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
|
// <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
|
||||||
@@ -10584,7 +10584,7 @@
|
|||||||
// <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
|
// <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
|
||||||
|
|
||||||
#ifndef NRF_SDH_CLOCK_LF_ACCURACY
|
#ifndef NRF_SDH_CLOCK_LF_ACCURACY
|
||||||
#define NRF_SDH_CLOCK_LF_ACCURACY 7
|
#define NRF_SDH_CLOCK_LF_ACCURACY 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// </h>
|
// </h>
|
||||||
|
|||||||
8
main.c
8
main.c
@@ -63,10 +63,10 @@
|
|||||||
#else
|
#else
|
||||||
#define TIMER_TICKS(MS) APP_TIMER_TICKS(MS, APP_TIMER_PRESCALER)
|
#define TIMER_TICKS(MS) APP_TIMER_TICKS(MS, APP_TIMER_PRESCALER)
|
||||||
// Low frequency clock source to be used by the SoftDevice
|
// Low frequency clock source to be used by the SoftDevice
|
||||||
#define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_SYNTH, \
|
#define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_RC, \
|
||||||
.rc_ctiv = 0, \
|
.rc_ctiv = 16, \
|
||||||
.rc_temp_ctiv = 0, \
|
.rc_temp_ctiv = 2, \
|
||||||
.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
|
.xtal_accuracy = 0}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**< Minimum connection interval (7.5 ms) */
|
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**< Minimum connection interval (7.5 ms) */
|
||||||
|
|||||||
Reference in New Issue
Block a user