kinetis: Remove periph driver xxx_NUMOF guards
This commit is contained in:
parent
925a908d95
commit
33e751e8a8
@ -31,9 +31,6 @@
|
|||||||
#include "periph/dac.h"
|
#include "periph/dac.h"
|
||||||
#include "periph_conf.h"
|
#include "periph_conf.h"
|
||||||
|
|
||||||
/* only compile this file if there are DAC lines defined */
|
|
||||||
#ifdef DAC_NUMOF
|
|
||||||
|
|
||||||
static inline DAC_Type *dev(dac_t line)
|
static inline DAC_Type *dev(dac_t line)
|
||||||
{
|
{
|
||||||
return dac_config[line].dev;
|
return dac_config[line].dev;
|
||||||
@ -84,5 +81,3 @@ void dac_poweroff(dac_t line)
|
|||||||
|
|
||||||
bit_clear8(&dac_config[line].dev->C0, DAC_C0_DACEN_SHIFT);
|
bit_clear8(&dac_config[line].dev->C0, DAC_C0_DACEN_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* DAC_NUMOF */
|
|
||||||
|
|||||||
@ -43,8 +43,6 @@
|
|||||||
#else
|
#else
|
||||||
#define TRACE(...)
|
#define TRACE(...)
|
||||||
#endif
|
#endif
|
||||||
/* guard file in case no I2C device is defined */
|
|
||||||
#if I2C_NUMOF
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Array holding one pre-initialized mutex for each I2C device
|
* @brief Array holding one pre-initialized mutex for each I2C device
|
||||||
@ -518,5 +516,3 @@ void i2c_poweroff(i2c_t dev)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* I2C_NUMOF */
|
|
||||||
|
|||||||
@ -30,9 +30,6 @@
|
|||||||
#define ENABLE_DEBUG (0)
|
#define ENABLE_DEBUG (0)
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
#if RTC_NUMOF
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
rtc_alarm_cb_t cb; /**< callback called from RTC interrupt */
|
rtc_alarm_cb_t cb; /**< callback called from RTC interrupt */
|
||||||
} rtc_state_t;
|
} rtc_state_t;
|
||||||
@ -111,5 +108,3 @@ static void rtc_cb(void* arg)
|
|||||||
rtc_callback.cb(arg);
|
rtc_callback.cb(arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* RTC_NUMOF */
|
|
||||||
|
|||||||
@ -35,9 +35,6 @@
|
|||||||
#define ENABLE_DEBUG (0)
|
#define ENABLE_DEBUG (0)
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
#if RTT_NUMOF
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef RTC_LOAD_CAP_BITS
|
#ifndef RTC_LOAD_CAP_BITS
|
||||||
#define RTC_LOAD_CAP_BITS 0
|
#define RTC_LOAD_CAP_BITS 0
|
||||||
#endif
|
#endif
|
||||||
@ -200,5 +197,3 @@ void RTT_ISR(void)
|
|||||||
|
|
||||||
cortexm_isr_end();
|
cortexm_isr_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* RTC_NUMOF */
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user