#include <zephyr/kernel.h>

int main(void)
{
	/* This is a dummy delay to see if the device resets */
	uint32_t delay = 0x100000;
	while (delay --);

    NRF_POWER->RAM[2].POWER = 0;
    NRF_POWER->RAM[3].POWER = 0;
    NRF_POWER->RAM[4].POWER = 0;
    NRF_POWER->RAM[5].POWER = 0;
    NRF_POWER->RAM[6].POWER = 0;
    NRF_POWER->RAM[7].POWER = 0;

	/* 1. Enable LFXO */
#if 1
    NRF_CLOCK->LFCLKSRC = CLOCK_LFCLKSRCCOPY_SRC_Xtal;
    NRF_CLOCK->TASKS_LFCLKSTART = 1;

	/* 2. Start NRF_GRTC */

    NRF_RTC0->TASKS_START = 1;

#endif

	while (1) {
		k_cpu_idle();
	}
	return 0;
}
