1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

kinetis: Remove periph driver xxx_NUMOF guards

This commit is contained in:
Joakim Nohlgård 2017-11-09 13:31:01 +01:00
parent 925a908d95
commit 33e751e8a8
4 changed files with 0 additions and 19 deletions

View File

@ -31,9 +31,6 @@
#include "periph/dac.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)
{
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);
}
#endif /* DAC_NUMOF */

View File

@ -43,8 +43,6 @@
#else
#define TRACE(...)
#endif
/* guard file in case no I2C device is defined */
#if I2C_NUMOF
/**
* @brief Array holding one pre-initialized mutex for each I2C device
@ -518,5 +516,3 @@ void i2c_poweroff(i2c_t dev)
#endif
}
}
#endif /* I2C_NUMOF */

View File

@ -30,9 +30,6 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if RTC_NUMOF
typedef struct {
rtc_alarm_cb_t cb; /**< callback called from RTC interrupt */
} rtc_state_t;
@ -111,5 +108,3 @@ static void rtc_cb(void* arg)
rtc_callback.cb(arg);
}
}
#endif /* RTC_NUMOF */

View File

@ -35,9 +35,6 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if RTT_NUMOF
#ifndef RTC_LOAD_CAP_BITS
#define RTC_LOAD_CAP_BITS 0
#endif
@ -200,5 +197,3 @@ void RTT_ISR(void)
cortexm_isr_end();
}
#endif /* RTC_NUMOF */