Move macros from i2c_watchdog.c to i2c_watchdog.h
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user