Contiki-NG
Functions | Variables

Software clock implementation for the nRF52. More...

#include <stdint.h>
#include <stdbool.h>
#include "nrf.h"
#include "nrf_drv_config.h"
#include "nrf_drv_rtc.h"
#include "nrf_drv_clock.h"
#include "nrf_delay.h"
#include "app_error.h"
#include "contiki.h"

Go to the source code of this file.

Functions

static void rtc_handler (nrf_drv_rtc_int_type_t int_type)
 Function for handling the RTC0 interrupts. More...
 
static void lfclk_config (void)
 Function starting the internal LFCLK XTAL oscillator.
 
static void rtc_config (void)
 Function initialization and configuration of RTC driver instance.
 
void clock_init (void)
 Initialize the clock library. More...
 
clock_time_t clock_time (void)
 Get the current clock time. More...
 
unsigned long clock_seconds (void)
 Get the current value of the platform seconds. More...
 
void clock_wait (clock_time_t i)
 Wait for a given number of ticks. More...
 
void clock_delay_usec (uint16_t dt)
 Delay a given number of microseconds. More...
 
void clock_delay (unsigned int i)
 Obsolete delay function but we implement it here since some code still uses it. More...
 

Variables

const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(PLATFORM_RTC_INSTANCE_ID)
 RTC instance used for platform clock.
 

Detailed Description

Software clock implementation for the nRF52.

Author
Wojciech Bober wojci.nosp@m.ech..nosp@m.bober.nosp@m.@nor.nosp@m.dicse.nosp@m.mi.n.nosp@m.o

Definition in file clock.c.