net: contiki: Set the clock ticks according to system config

Use sys_clock_ticks_per_sec that is defined from Kconfig,
to set the Contiki clock.

Change-Id: I1d0198fb39e83a59258b7c067107c25b63db50ed
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2015-08-06 15:37:09 +03:00 committed by Anas Nashif
parent a895e38ad2
commit 3257916346
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
/* contiki-conf.h - These settings override the default configuration */
#include <stdint.h>
#include <sys_clock.h>
#ifndef __CONTIKI_CONF_H__
#define __CONTIKI_CONF_H__
@ -13,7 +14,7 @@
typedef uint32_t clock_time_t;
typedef unsigned int uip_stats_t;
#define CLOCK_CONF_SECOND 100
#define CLOCK_CONF_SECOND sys_clock_ticks_per_sec
/* It is either IPv6 or IPv4 but not both at the same time. */
#ifdef CONFIG_NETWORKING_WITH_IPV6