28#include "periph_cpu.h"
42#ifndef STDIO_UART_BAUDRATE
43#define STDIO_UART_BAUDRATE (9600U)
50#define STDIO_UART_DEV (UART_DEV(1))
59#define XTIMER_CHAN (0)
60#define XTIMER_WIDTH (16)
61#define XTIMER_HZ (125000UL)
62#define XTIMER_BACKOFF (40)
70#define LED1_PIN GPIO_PIN(PORT_B, 3)
71#define LED1_MODE GPIO_OUT
73#define LED3_PIN GPIO_PIN(PORT_B, 2)
74#define LED3_MODE GPIO_OUT
82#define LED1_ENABLE_PORT DDRB |= LED1_PIN
83#define LED1_ON PORTB |= LED1_PIN
84#define LED1_OFF PORTB &= ~LED1_PIN
85#define LED1_TOGGLE PORTB ^= LED1_PIN
87#define LED3_ENABLE_PORT DDRB |= LED3_PIN
88#define LED3_ON PORTB |= LED3_PIN
89#define LED3_OFF PORTB &= ~LED3_PIN
90#define LED3_TOGGLE PORTB ^= LED3_PIN
97#define LED_PANIC LED1_ON
104#define BTN0_PIN GPIO_PIN(PORT_B, 0)
105#define BTN0_MODE GPIO_IN
107#define BTN1_PIN GPIO_PIN(PORT_B, 1)
108#define BTN1_MODE GPIO_IN
116#define NTC_OUTPUT ADC_LINE(7)
117#define LIGHT_SENSOR_OUTPUT ADC_LINE(6)
118#define FILTER_OUTPUT ADC_LINE(5)
125#define CPU_ATMEGA_CLK_SCALE_INIT CPU_ATMEGA_CLK_SCALE_DIV1
Mapping from MCU pins to Mega Xplained pins.