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;