summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-03-04 22:02:39 +0000
committerTomasz Kramkowski <tk@the-tk.com>2017-03-04 22:02:39 +0000
commit6ef72d92b4490a168644838daec4ede202c8f458 (patch)
treea0df16eb695be18c8febac7bc9375d4a38c7d19f
parent7c6c15e2fe40b1d793616d26c148e4e3a08df879 (diff)
downloadmk20dx256-6ef72d92b4490a168644838daec4ede202c8f458.tar.gz
mk20dx256-6ef72d92b4490a168644838daec4ede202c8f458.tar.xz
mk20dx256-6ef72d92b4490a168644838daec4ede202c8f458.zip
Change header guards to reflect new structure.
-rw-r--r--reg.h6
-rw-r--r--reg/gpio.h6
-rw-r--r--reg/mcg.h6
-rw-r--r--reg/pit.h6
-rw-r--r--reg/pmc.h6
-rw-r--r--reg/port.h6
-rw-r--r--reg/regdefs.h6
-rw-r--r--reg/sim.h6
-rw-r--r--reg/usbotg.h6
-rw-r--r--reg/wdog.h6
10 files changed, 30 insertions, 30 deletions
diff --git a/reg.h b/reg.h
index 8d316e0..0330eaf 100644
--- a/reg.h
+++ b/reg.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_H
-#define LIB_REG_H
+#ifndef MK20DX256_REG_H
+#define MK20DX256_REG_H
#include <reg/port.h>
#include <reg/sim.h>
@@ -42,4 +42,4 @@
//#include <reg/tsi.h>
//#include <reg/jtagc.h>
-#endif /* LIB_REG_H */
+#endif /* MK20DX256_REG_H */
diff --git a/reg/gpio.h b/reg/gpio.h
index 6bb8d34..642110f 100644
--- a/reg/gpio.h
+++ b/reg/gpio.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_GPIO_H
-#define LIB_REG_GPIO_H
+#ifndef MK20DX256_REG_GPIO_H
+#define MK20DX256_REG_GPIO_H
#include <reg/regdefs.h>
@@ -38,4 +38,4 @@
#define GPIOE_PDIR REG_32(0x400FF110) /* Port Data Input Register */
#define GPIOE_PDDR REG_32(0x400FF114) /* Port Data Direction Register */
-#endif /* LIB_REG_GPIO_H */
+#endif /* MK20DX256_REG_GPIO_H */
diff --git a/reg/mcg.h b/reg/mcg.h
index bc1afcf..4b2ab6c 100644
--- a/reg/mcg.h
+++ b/reg/mcg.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_MCG_H
-#define LIB_REG_MCG_H
+#ifndef MK20DX256_REG_MCG_H
+#define MK20DX256_REG_MCG_H
#include <reg/regdefs.h>
@@ -53,4 +53,4 @@
#define MCG_C7 REG_8(0x4006400C) /* MCG Control 7 Register */
#define MCG_C8 REG_8(0x4006400D) /* MCG Control 8 Register */
-#endif /* LIB_REG_MCG_H */
+#endif /* MK20DX256_REG_MCG_H */
diff --git a/reg/pit.h b/reg/pit.h
index aafe520..db155dc 100644
--- a/reg/pit.h
+++ b/reg/pit.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_PIT_H
-#define LIB_REG_PIT_H
+#ifndef MK20DX256_REG_PIT_H
+#define MK20DX256_REG_PIT_H
#include "regdefs.h"
@@ -28,4 +28,4 @@
#define PIT_TFLG(n) REG_32(0x4003710C + 16 * (n))
#define TFLG_TIF 0 // Timer Interrupt Flag
-#endif /* LIB_REG_PIT_H */
+#endif /* MK20DX256_REG_PIT_H */
diff --git a/reg/pmc.h b/reg/pmc.h
index 4aef0be..3bfa128 100644
--- a/reg/pmc.h
+++ b/reg/pmc.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_PMC_H
-#define LIB_REG_PMC_H
+#ifndef MK20DX256_REG_PMC_H
+#define MK20DX256_REG_PMC_H
#include <reg/regdefs.h>
@@ -24,4 +24,4 @@
#define REGSC_REGONS 2 /* Regulator In Run Regulation Status */
#define REGSC_BGBE 1 /* Bandgap Buffer Enable */
-#endif /* LIB_REG_PMC_H */
+#endif /* MK20DX256_REG_PMC_H */
diff --git a/reg/port.h b/reg/port.h
index 76b8d9c..55e30bc 100644
--- a/reg/port.h
+++ b/reg/port.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_PORT_H
-#define LIB_REG_PORT_H
+#ifndef MK20DX256_REG_PORT_H
+#define MK20DX256_REG_PORT_H
#include <reg/regdefs.h>
@@ -39,4 +39,4 @@
#define PORTD_ISFR REG_32(0x4004C0A0) /* Interrupt Status Flag Register */
#define PORTE_ISFR REG_32(0x4004D0A0) /* Interrupt Status Flag Register */
-#endif /* LIB_REG_PORT_H */
+#endif /* MK20DX256_REG_PORT_H */
diff --git a/reg/regdefs.h b/reg/regdefs.h
index fa14689..802d7c0 100644
--- a/reg/regdefs.h
+++ b/reg/regdefs.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_REGDEFS_H
-#define LIB_REG_REGDEFS_H
+#ifndef MK20DX256_REG_REGDEFS_H
+#define MK20DX256_REG_REGDEFS_H
#include <stdint.h>
@@ -26,4 +26,4 @@
#define BITS(n) (0xffffffff >> (32 - (n)))
-#endif /* LIB_REG_REGDEFS_H */
+#endif /* MK20DX256_REG_REGDEFS_H */
diff --git a/reg/sim.h b/reg/sim.h
index 59b9107..a9559b1 100644
--- a/reg/sim.h
+++ b/reg/sim.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_SIM_H
-#define LIB_REG_SIM_H
+#ifndef MK20DX256_REG_SIM_H
+#define MK20DX256_REG_SIM_H
#include <reg/regdefs.h>
@@ -108,4 +108,4 @@
// Unique Identification Register Low
#define SIM_UIDL REG_32(0x40048060)
-#endif /* LIB_REG_SIM_H */
+#endif /* MK20DX256_REG_SIM_H */
diff --git a/reg/usbotg.h b/reg/usbotg.h
index 1343581..a806cbf 100644
--- a/reg/usbotg.h
+++ b/reg/usbotg.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_USBOTG_H
-#define LIB_REG_USBOTG_H
+#ifndef MK20DX256_REG_USBOTG_H
+#define MK20DX256_REG_USBOTG_H
#include "regdefs.h"
@@ -230,4 +230,4 @@ struct usb0_bd {
#define BD_TOK_PID_TIMEOUT 0x0
#define BD_TOK_PID_ERROR 0xf
-#endif /* LIB_REG_USBOTG_H */
+#endif /* MK20DX256_REG_USBOTG_H */
diff --git a/reg/wdog.h b/reg/wdog.h
index a2596c8..8b3b23e 100644
--- a/reg/wdog.h
+++ b/reg/wdog.h
@@ -1,5 +1,5 @@
-#ifndef LIB_REG_WDOG_H
-#define LIB_REG_WDOG_H
+#ifndef MK20DX256_REG_WDOG_H
+#define MK20DX256_REG_WDOG_H
#include <reg/regdefs.h>
@@ -34,4 +34,4 @@
#define WDOG_RSTCNT REG_16(0x40052014) /* Watchdog Reset Count register */
#define WDOG_PRESC REG_16(0x40052016) /* Watchdog Prescaler register */
-#endif /* LIB_REG_WDOG_H */
+#endif /* MK20DX256_REG_WDOG_H */