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

Merge pull request #8959 from aabadie/pr/cpu/guard_atmega_common

cpu/atmega_common: remove useless periph file guard
This commit is contained in:
Francisco Acosta 2018-05-22 19:57:46 +02:00 committed by GitHub
commit 8ab908146e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 18 deletions

View File

@ -32,9 +32,6 @@
#include "debug.h"
#define ENABLE_DEBUG (0)
/* guard file in case no I2C device is defined */
#if I2C_NUMOF
#define MT_START 0x08
#define MT_START_REPEATED 0x10
#define MT_ADDRESS_ACK 0x18
@ -369,5 +366,3 @@ static void _stop(void)
DEBUG("STOP condition transmitted\n");
TWCR = 0;
}
#endif /* I2C_NUMOF */

View File

@ -62,9 +62,7 @@ typedef struct {
/**
* @brief Allocate memory for saving the device states
* @{
*/
#ifdef TIMER_NUMOF
static ctx_t ctx[] = {
#ifdef TIMER_0
{ TIMER_0, TIMER_0_MASK, TIMER_0_FLAG, NULL, NULL, 0, 0 },
@ -79,11 +77,6 @@ static ctx_t ctx[] = {
{ TIMER_3, TIMER_3_MASK, TIMER_3_FLAG, NULL, NULL, 0, 0 },
#endif
};
#else
/* fallback if no timer is configured */
static ctx_t *ctx[] = {{ NULL }};
#endif
/** @} */
/**
* @brief Setup the given timer

View File

@ -58,9 +58,7 @@
/**
* @brief Configured device map
* @{
*/
#if UART_NUMOF
static mega_uart_t *dev[] = {
#ifdef UART_0
UART_0,
@ -75,10 +73,6 @@ static mega_uart_t *dev[] = {
UART_3
#endif
};
#else
/* fallback if no UART is defined */
static const mega_uart_t *dev[] = { NULL };
#endif
/**
* @brief Allocate memory to store the callback functions.