aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Reeder2015-06-17 09:48:42 -0500
committerJason Reeder2015-06-17 09:48:42 -0500
commit12d635bf0c43530264227538723329f017604b05 (patch)
tree0b5a88b5d3691cfc22af76b979e0314fd440d594 /include
parentfbab6e901115df694f732395038f21dbcf389203 (diff)
downloadpru-software-support-package-12d635bf0c43530264227538723329f017604b05.tar.gz
pru-software-support-package-12d635bf0c43530264227538723329f017604b05.tar.xz
pru-software-support-package-12d635bf0c43530264227538723329f017604b05.zip
Added include guards to the header files in the include folder
Signed-off-by: Jason Reeder <jreeder@ti.com>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/pru_cfg.h4
-rwxr-xr-xinclude/pru_ctrl.h5
-rwxr-xr-xinclude/pru_ecap.h4
-rwxr-xr-xinclude/pru_iep.h3
-rwxr-xr-xinclude/pru_intc.h3
-rwxr-xr-xinclude/pru_types.h4
-rwxr-xr-xinclude/pru_uart.h5
-rwxr-xr-xinclude/pru_vring.h7
-rwxr-xr-xinclude/types.h5
9 files changed, 33 insertions, 7 deletions
diff --git a/include/pru_cfg.h b/include/pru_cfg.h
index fb1cbf3..2024c83 100755
--- a/include/pru_cfg.h
+++ b/include/pru_cfg.h
@@ -1,3 +1,5 @@
1#ifndef _PRU_CFG_H_
2#define _PRU_CFG_H_
1 3
2/* PRU_CFG register set */ 4/* PRU_CFG register set */
3typedef struct{ 5typedef struct{
@@ -203,3 +205,5 @@ typedef struct{
203 } PIN_MX_bit; 205 } PIN_MX_bit;
204 } ; //0x40 206 } ; //0x40
205} pruCfg; 207} pruCfg;
208
209#endif /* _PRU_CFG_H_ */
diff --git a/include/pru_ctrl.h b/include/pru_ctrl.h
index bcbc212..62a7457 100755
--- a/include/pru_ctrl.h
+++ b/include/pru_ctrl.h
@@ -1,4 +1,5 @@
1 1#ifndef _PRU_CTRL_H_
2#define _PRU_CTRL_H_
2 3
3/* PRU_CTRL register set */ 4/* PRU_CTRL register set */
4typedef struct{ 5typedef struct{
@@ -118,3 +119,5 @@ typedef struct{
118#define PRU0_CTRL (*((volatile pruCtrl*)0x22000)) 119#define PRU0_CTRL (*((volatile pruCtrl*)0x22000))
119#define PRU1_CTRL (*((volatile pruCtrl*)0x24000)) 120#define PRU1_CTRL (*((volatile pruCtrl*)0x24000))
120 121
122
123#endif /* _PRU_CTRL_H_ */
diff --git a/include/pru_ecap.h b/include/pru_ecap.h
index a1a5929..6d90102 100755
--- a/include/pru_ecap.h
+++ b/include/pru_ecap.h
@@ -1,3 +1,5 @@
1#ifndef _PRU_ECAP_H_
2#define _PRU_ECAP_H_
1 3
2/* PRU_ECAP register set */ 4/* PRU_ECAP register set */
3typedef struct{ 5typedef struct{
@@ -89,3 +91,5 @@ typedef struct{
89 } REVID_bit; 91 } REVID_bit;
90 } ; // 0x5C 92 } ; // 0x5C
91} pruEcap; 93} pruEcap;
94
95#endif /* _PRU_ECAP_H_ */
diff --git a/include/pru_iep.h b/include/pru_iep.h
index 35064aa..9d531ec 100755
--- a/include/pru_iep.h
+++ b/include/pru_iep.h
@@ -1,3 +1,5 @@
1#ifndef _PRU_IEP_H_
2#define _PRU_IEP_H_
1 3
2/* PRU IEP register set */ 4/* PRU IEP register set */
3typedef struct{ 5typedef struct{
@@ -216,3 +218,4 @@ typedef struct{
216 218
217} pruIep; 219} pruIep;
218 220
221#endif /* _PRU_IEP_H_ */
diff --git a/include/pru_intc.h b/include/pru_intc.h
index 79225b0..3b4d083 100755
--- a/include/pru_intc.h
+++ b/include/pru_intc.h
@@ -1,3 +1,5 @@
1#ifndef _PRU_INTC_H_
2#define _PRU_INTC_H_
1 3
2/* PRU INTC register set */ 4/* PRU INTC register set */
3typedef struct{ 5typedef struct{
@@ -867,3 +869,4 @@ typedef struct{
867 869
868} pruIntc; 870} pruIntc;
869 871
872#endif /* _PRU_INTC_H_ */
diff --git a/include/pru_types.h b/include/pru_types.h
index 9bca83b..c571486 100755
--- a/include/pru_types.h
+++ b/include/pru_types.h
@@ -31,6 +31,9 @@
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 32 */
33 33
34#ifndef _PRU_TYPES_H_
35#define _PRU_TYPES_H_
36
34/* Custom Resource info: Must match drivers/remoteproc/pru_rproc.h */ 37/* Custom Resource info: Must match drivers/remoteproc/pru_rproc.h */
35#define TYPE_PRU_INTS 1 38#define TYPE_PRU_INTS 1
36 39
@@ -77,3 +80,4 @@ struct fw_rsc_custom_ints {
77 struct ch_map *event_channel; 80 struct ch_map *event_channel;
78}; 81};
79 82
83#endif /* _PRU_TYPES_H_ */
diff --git a/include/pru_uart.h b/include/pru_uart.h
index 85a0a59..29d858e 100755
--- a/include/pru_uart.h
+++ b/include/pru_uart.h
@@ -1,3 +1,5 @@
1#ifndef _PRU_UART_H_
2#define _PRU_UART_H_
1 3
2/* UART Register set */ 4/* UART Register set */
3typedef struct { 5typedef struct {
@@ -244,5 +246,4 @@ typedef struct {
244 246
245} pruUart; 247} pruUart;
246 248
247 249#endif /* _PRU_UART_H_ */
248
diff --git a/include/pru_vring.h b/include/pru_vring.h
index 28f34f3..d0269a8 100755
--- a/include/pru_vring.h
+++ b/include/pru_vring.h
@@ -1,6 +1,5 @@
1 1#ifndef _PRU_VRING_H
2#ifndef PRU_VRING_H 2#define _PRU_VRING_H
3#define PRU_VRING_H
4 3
5#include "pru_virtio_ring.h" 4#include "pru_virtio_ring.h"
6#include "rsc_types.h" 5#include "rsc_types.h"
@@ -115,4 +114,4 @@ int pru_vring_pop(struct pru_vring *pvr, struct pru_vring_elem *pvre);
115void pru_vring_push(struct pru_vring *pvr, const struct pru_vring_elem *pvre, 114void pru_vring_push(struct pru_vring *pvr, const struct pru_vring_elem *pvre,
116 uint32_t len); 115 uint32_t len);
117 116
118#endif 117#endif /* _PRU_VRING_H */
diff --git a/include/types.h b/include/types.h
index 405481a..35acdcf 100755
--- a/include/types.h
+++ b/include/types.h
@@ -2,6 +2,9 @@
2 * types.h - standard redefined types 2 * types.h - standard redefined types
3 */ 3 */
4 4
5#ifndef _TYPES_H_
6#define _TYPES_H_
7
5typedef uint8_t __u8; 8typedef uint8_t __u8;
6typedef uint16_t __u16; 9typedef uint16_t __u16;
7typedef uint32_t __u32; 10typedef uint32_t __u32;
@@ -11,3 +14,5 @@ typedef uint8_t u8;
11typedef uint16_t u16; 14typedef uint16_t u16;
12typedef uint32_t u32; 15typedef uint32_t u32;
13typedef uint64_t u64; 16typedef uint64_t u64;
17
18#endif /* _TYPES_H_ */