Skip to content

Commit

Permalink
drivers/kw2xrf: add missing header guards
Browse files Browse the repository at this point in the history
  • Loading branch information
smlng committed Jan 23, 2017
1 parent 5e9d2fb commit b0aecf3
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 3 deletions.
5 changes: 5 additions & 0 deletions drivers/kw2xrf/include/kw2xrf_getset.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* @author Johann Fischer <j.fischer@phytec.de>
*/

#ifndef KW2XRF_GETSET_H
#define KW2XRF_GETSET_H

#include "kw2xrf.h"

#ifdef __cplusplus
Expand Down Expand Up @@ -184,4 +187,6 @@ void kw2xrf_set_option(kw2xrf_t *dev, uint16_t option, bool state);
#ifdef __cplusplus
}
#endif

#endif /* KW2XRF_GETSET_H */
/** @} */
5 changes: 5 additions & 0 deletions drivers/kw2xrf/include/kw2xrf_intern.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* @author Johann Fischer <j.fischer@phytec.de>
*/

#ifndef KW2XRF_INTERN_H
#define KW2XRF_INTERN_H

#include <stdint.h>
#include "kw2xrf.h"

Expand Down Expand Up @@ -229,4 +232,6 @@ uint32_t kw2xrf_get_timestamp(kw2xrf_t *dev);
#ifdef __cplusplus
}
#endif

#endif /* KW2XRF_INTERN_H */
/** @} */
5 changes: 5 additions & 0 deletions drivers/kw2xrf/include/kw2xrf_netdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* @author Johann Fischer <j.fischer@phytec.de>
*/

#ifndef KW2XRF_NETDEV_H
#define KW2XRF_NETDEV_H

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -28,4 +31,6 @@ extern const netdev2_driver_t kw2xrf_driver;
#ifdef __cplusplus
}
#endif

#endif /* KW2XRF_NETDEV_H */
/** @} */
2 changes: 1 addition & 1 deletion drivers/kw2xrf/include/kw2xrf_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,5 +564,5 @@ enum mkw2xdrf_iregister {
}
#endif

#endif
#endif /* MKW2XD_MODEM_REG_H */
/** @} */
3 changes: 2 additions & 1 deletion drivers/kw2xrf/include/kw2xrf_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*
* @author Johann Fischer <j.fischer@phytec.de>
*/

#ifndef KW2XRF_SPI_H
#define KW2XRF_SPI_H

Expand Down Expand Up @@ -139,5 +140,5 @@ void kw2xrf_read_fifo(kw2xrf_t *dev, uint8_t *data, uint8_t data_length);
}
#endif

#endif
#endif /* KW2XRF_SPI_H */
/** @} */
5 changes: 5 additions & 0 deletions drivers/kw2xrf/include/kw2xrf_tm.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* @author Johann Fischer <j.fischer@phytec.de>
*/

#ifndef KW2XRF_TM_H
#define KW2XRF_TM_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -44,4 +47,6 @@ int kw2xrf_set_test_mode(kw2xrf_t *dev, uint8_t mode);
#ifdef __cplusplus
}
#endif

#endif /* KW2XRF_TM_H */
/** @} */
8 changes: 7 additions & 1 deletion drivers/kw2xrf/include/overwrites.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
#ifndef OVERWRITES_H_
#define OVERWRITES_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef struct overwrites_tag {
char address;
char data;
Expand Down Expand Up @@ -304,5 +308,7 @@ overwrites_t const overwrites_indirect[] ={
end of deprecated versions */


#ifdef __cplusplus
}
#endif
#endif //OVERWRITES_H_

0 comments on commit b0aecf3

Please sign in to comment.