Contiki-NG
Functions | Variables
rtimer-arch.c File Reference

Implementation of the architecture dependent rtimer functions for the nRF52. More...

#include <stdint.h>
#include <stddef.h>
#include "nrf.h"
#include "nrf_drv_timer.h"
#include "app_error.h"
#include "contiki.h"

Go to the source code of this file.

Functions

static void timer_event_handler (nrf_timer_event_t event_type, void *p_context)
 Handler for timer events. More...
 
void rtimer_arch_init (void)
 Initialize platform rtimer. More...
 
void rtimer_arch_schedule (rtimer_clock_t t)
 Schedules an rtimer task to be triggered at time t. More...
 
rtimer_clock_t rtimer_arch_now ()
 Returns the current real-time clock time. More...
 

Variables

static const nrf_drv_timer_t timer = NRF_DRV_TIMER_INSTANCE(PLATFORM_TIMER_INSTANCE_ID)
 Timer instance used for rtimer.
 

Detailed Description

Implementation of the architecture dependent rtimer functions 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 rtimer-arch.c.