Move macros from i2c_watchdog.c to i2c_watchdog.h

This commit is contained in:
László Monda
2017-09-29 00:54:57 +02:00
parent 1889f78b98
commit 7d1cecc2b4
2 changed files with 6 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;