add stop LF clock in board_init()

just in case we jump from application without reset
This commit is contained in:
hathach
2018-11-08 20:17:36 +07:00
parent 3de5afc067
commit 3925ef5872
9 changed files with 3276 additions and 3272 deletions

View File

@ -61,6 +61,9 @@ uint16_t _pwm_blue_seq[PWM_CHANNEL_NUM] = { PWM_MAXCOUNT/2, 0, 0 , 0 };
void board_init(void)
{
// stop LF clock just in case we jump from application without reset
NRF_CLOCK->TASKS_LFCLKSTOP = 1UL;
// Use Internal OSC to compatible with all boards
NRF_CLOCK->LFCLKSRC = CLOCK_LFCLKSRC_SRC_RC;
NRF_CLOCK->TASKS_LFCLKSTART = 1UL;