From: Nathael Pajani Date: Sun, 29 Dec 2013 00:34:14 +0000 (+0100) Subject: Forgotten include gards X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=ba9c8f19440d344f43adad2b719e5986eed4fbac;p=soft%2Flpc122x%2Fcore Forgotten include gards --- diff --git a/include/drivers/adc.h b/include/drivers/adc.h index b5e29f9..896432c 100644 --- a/include/drivers/adc.h +++ b/include/drivers/adc.h @@ -18,6 +18,8 @@ * *************************************************************************** */ +#ifndef DRIVERS_ADC_H +#define DRIVERS_ADC_H /***************************************************************************** */ @@ -63,3 +65,5 @@ void adc_clk_update(void); void adc_on(void); void adc_off(void); +#endif /* DRIVERS_ADC_H */ + diff --git a/include/drivers/ssp.h b/include/drivers/ssp.h index a46463a..d3f15ae 100644 --- a/include/drivers/ssp.h +++ b/include/drivers/ssp.h @@ -18,6 +18,8 @@ * *************************************************************************** */ +#ifndef DRIVERS_SSP_H +#define DRIVERS_SSP_H /***************************************************************************** */ @@ -93,3 +95,7 @@ int ssp_slave_on(uint8_t frame_type, uint8_t data_width, uint8_t out_en, uint32_ /* Turn off the SSP block */ void ssp_off(void); + + +#endif /* DRIVERS_SSP_H */ + diff --git a/include/drivers/temp.h b/include/drivers/temp.h index 2dcde7c..10fd4ea 100644 --- a/include/drivers/temp.h +++ b/include/drivers/temp.h @@ -20,6 +20,9 @@ * *************************************************************************** */ +#ifndef DRIVERS_TEMP_H +#define DRIVERS_TEMP_H + #include @@ -96,3 +99,5 @@ int sensor_config(uint32_t resolution); int sensor_start_conversion(void); +#endif /* DRIVERS_TEMP_H */ + diff --git a/include/drivers/timers.h b/include/drivers/timers.h index f562fb8..a3dff99 100644 --- a/include/drivers/timers.h +++ b/include/drivers/timers.h @@ -18,6 +18,8 @@ * *************************************************************************** */ +#ifndef DRIVERS_TIMERS_H +#define DRIVERS_TIMERS_H #include #include "core/lpc_regs_12xx.h" @@ -166,3 +168,6 @@ void timer_on(uint32_t timer_num, uint32_t clkrate); /* Removes the main clock from the selected timer block */ void timer_off(uint32_t timer_num); + +#endif /* DRIVERS_TIMERS_H */ +