summaryrefslogtreecommitdiff
path: root/ports/nrf/drivers/ticker.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/nrf/drivers/ticker.h')
-rw-r--r--ports/nrf/drivers/ticker.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/ports/nrf/drivers/ticker.h b/ports/nrf/drivers/ticker.h
deleted file mode 100644
index 6ac87cd50..000000000
--- a/ports/nrf/drivers/ticker.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef __MICROPY_INCLUDED_LIB_TICKER_H__
-#define __MICROPY_INCLUDED_LIB_TICKER_H__
-
-/*************************************
- * 62.5kHz (16µs cycle time) ticker.
- ************************************/
-
-#include "nrf.h"
-
-typedef void (*callback_ptr)(void);
-typedef int32_t (*ticker_callback_ptr)(void);
-
-void ticker_init(callback_ptr slow_ticker_callback);
-void ticker_start(void);
-void ticker_stop(void);
-
-int clear_ticker_callback(uint32_t index);
-int set_ticker_callback(uint32_t index, ticker_callback_ptr func, int32_t initial_delay_us);
-
-int set_low_priority_callback(callback_ptr callback, int id);
-
-#define CYCLES_PER_MICROSECONDS 16
-
-#define MICROSECONDS_PER_TICK 16
-#define CYCLES_PER_TICK (CYCLES_PER_MICROSECONDS*MICROSECONDS_PER_TICK)
-// This must be an integer multiple of MICROSECONDS_PER_TICK
-#define MICROSECONDS_PER_MACRO_TICK 6000
-#define MILLISECONDS_PER_MACRO_TICK 6
-
-#endif // __MICROPY_INCLUDED_LIB_TICKER_H__ \ No newline at end of file