Extract PIT related macros to the newly created peripherals/pit.h

This commit is contained in:
László Monda
2017-11-12 04:06:46 +01:00
parent 5da6510d7c
commit 27e64adc33
4 changed files with 25 additions and 13 deletions
+4 -4
View File
@@ -1,14 +1,14 @@
#ifndef __I2C_WATCHDOG_H__
#define __I2C_WATCHDOG_H__
// Includes:
#include "peripherals/pit.h"
// Macros:
#define I2C_WATCHDOG_INTERVAL_USEC 100000
#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_RecoveryCounter;