Commit c9a41892 authored by Aurelio Colosimo's avatar Aurelio Colosimo Committed by Alessandro Rubini

removed unused include/timer.h and move TICS_PER_SECOND

This also changes ptp-noposix as needed
parent f9703570
...@@ -32,6 +32,7 @@ struct s_i2c_if { ...@@ -32,6 +32,7 @@ struct s_i2c_if {
extern struct s_i2c_if i2c_if[2]; extern struct s_i2c_if i2c_if[2];
#define TICS_PER_SECOND 1000
void timer_init(uint32_t enable); void timer_init(uint32_t enable);
uint32_t timer_get_tics(); uint32_t timer_get_tics();
void timer_delay(uint32_t how_long); void timer_delay(uint32_t how_long);
......
#ifndef __TIMER_H
#define __TIMER_H
#include "types.h"
#define TICS_PER_SECOND 1000
uint32_t timer_get_tics();
void timer_delay(uint32_t how_long);
#endif
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "minic.h" #include "minic.h"
#include "pps_gen.h" #include "pps_gen.h"
#include "util.h" #include "util.h"
#include "timer.h" #include "syscon.h"
#include "onewire.h" #include "onewire.h"
#define UI_REFRESH_PERIOD TICS_PER_SECOND /* 1 sec */ #define UI_REFRESH_PERIOD TICS_PER_SECOND /* 1 sec */
......
ptp-noposix @ 1e2c71d1
Subproject commit 5c104cc9d7258fa43648dddcdc803a27334522d8 Subproject commit 1e2c71d1f0e1094adc6c2eb46e30d4164262f85c
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "ptpd.h" #include "ptpd.h"
#include "ptpd_netif.h" #include "ptpd_netif.h"
#include "timer.h" #include "syscon.h"
#include "softpll_ng.h" #include "softpll_ng.h"
#include "wrc_ptp.h" #include "wrc_ptp.h"
#include "pps_gen.h" #include "pps_gen.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment