From 7d1cecc2b4e3f68a534fb9cf814e97dd425cb197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 29 Sep 2017 00:54:57 +0200 Subject: [PATCH] Move macros from i2c_watchdog.c to i2c_watchdog.h --- right/src/i2c_watchdog.c | 4 ---- right/src/i2c_watchdog.h | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/right/src/i2c_watchdog.c b/right/src/i2c_watchdog.c index b677bf3..4d6876b 100644 --- a/right/src/i2c_watchdog.c +++ b/right/src/i2c_watchdog.c @@ -5,10 +5,6 @@ #include "i2c_watchdog.h" #include "slave_scheduler.h" -#define PIT_I2C_WATCHDOG_HANDLER PIT0_IRQHandler -#define PIT_I2C_WATCHDOG_IRQ_ID PIT0_IRQn -#define PIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_BusClk) - uint32_t I2cWatchdog_OuterCounter; uint32_t I2cWatchdog_InnerCounter; diff --git a/right/src/i2c_watchdog.h b/right/src/i2c_watchdog.h index 2926ef1..9d0fb4b 100644 --- a/right/src/i2c_watchdog.h +++ b/right/src/i2c_watchdog.h @@ -1,6 +1,12 @@ #ifndef __I2C_WATCHDOG_H__ #define __I2C_WATCHDOG_H__ +// Macros: + + #define PIT_I2C_WATCHDOG_HANDLER PIT0_IRQHandler + #define PIT_I2C_WATCHDOG_IRQ_ID PIT0_IRQn + #define PIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_BusClk) + // Variables: extern uint32_t I2cWatchdog_InnerCounter;