Board specific definitions for the ATxmegaA3BU Xplained board.
More...
Board specific definitions for the ATxmegaA3BU Xplained board.
- Author
- Gerson Fernando Budke nando.nosp@m.jve@.nosp@m.gmail.nosp@m..com
Definition in file board.h.
#include "cpu.h"
#include "macros/units.h"
Go to the source code of this file.
|
The standard configuration for STDIO in cpu/atxmega/periph/uart.c is to use double speed.
For 32MHz F_CPU following Baudrate have good error rates 115200
Matches this with BAUD in Board/Makefile.include
|
#define | STDIO_UART_BAUDRATE (115200U) |
|
|
if XTIMER_HZ > 1MHz then (XTIMER_HZ != (1000000ul << XTIMER_SHIFT)) if XTIMER_HZ < 1MHz then ((XTIMER_HZ << XTIMER_SHIFT) != 1000000ul)
32MHz Core Clock XTIMER_HZ 4000000 (clkdiv 8 ) XTIMER_SHIFT 2 XTIMER_HZ 1000000 () XTIMER_SHIFT 0 XTIMER_HZ 500000 (clkdiv 64) XTIMER_SHIFT 1 XTIMER_HZ 250000 (clkdiv 128) XTIMER_SHIFT 2 XTIMER_HZ 31250 (clkdiv 1024) XTIMER_SHIFT 5
|
#define | XTIMER_DEV TIMER_DEV(0) |
|
#define | XTIMER_CHAN (0) |
|
#define | XTIMER_WIDTH (16) |
|
#define | XTIMER_HZ KHZ(500) |
|
#define | XTIMER_BACKOFF (150) |
|
◆ BTN0_INT_FLANK
◆ BTN0_MODE
◆ BTN0_PIN
◆ BTN1_INT_FLANK
◆ BTN1_MODE
◆ BTN1_PIN
◆ BTN2_INT_FLANK
◆ BTN2_MODE
◆ BTN2_PIN
◆ CLOCK_CORECLOCK
#define CLOCK_CORECLOCK MHZ(32) |
Clock configuration.
Definition at line 32 of file board.h.
◆ LED0_MASK
#define LED0_MASK (PIN0_bm) |
◆ LED0_MODE
◆ LED0_OFF
#define LED0_OFF (LED_PORT.OUTSET = LED0_MASK) |
◆ LED0_ON
#define LED0_ON (LED_PORT.OUTCLR = LED0_MASK) |
◆ LED0_PIN
◆ LED0_TOGGLE
#define LED0_TOGGLE (LED_PORT.OUTTGL = LED0_MASK) |
◆ LED1_MASK
#define LED1_MASK (PIN1_bm) |
◆ LED1_MODE
◆ LED1_OFF
#define LED1_OFF (LED_PORT.OUTSET = LED1_MASK) |
◆ LED1_ON
#define LED1_ON (LED_PORT.OUTCLR = LED1_MASK) |
◆ LED1_PIN
◆ LED1_TOGGLE
#define LED1_TOGGLE (LED_PORT.OUTTGL = LED1_MASK) |
◆ LED_PORT
◆ LED_PORT_MASK
#define LED_PORT_MASK (LED0_MASK | LED1_MASK) |
◆ STDIO_UART_BAUDRATE
#define STDIO_UART_BAUDRATE (115200U) |
◆ XTIMER_BACKOFF
#define XTIMER_BACKOFF (150) |
◆ XTIMER_CHAN
◆ XTIMER_DEV
◆ XTIMER_HZ
#define XTIMER_HZ KHZ(500) |
◆ XTIMER_WIDTH
#define XTIMER_WIDTH (16) |