board.h File Reference

Board specific definitions for the STK3600 starter kit. More...

Detailed Description

Board specific definitions for the STK3600 starter kit.

Hauke Petersen
Bas Stottelaar

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Xtimer configuration

The timer runs at 250 kHz to increase accuracy, or at 32.768 kHz if LETIMER is used.

#define XTIMER_DEV   (TIMER_DEV(0))
#define XTIMER_HZ   (250000UL)
#define XTIMER_WIDTH   (16)
#define XTIMER_CHAN   (0)

Board controller configuration

Define the GPIO pin to enable the BC, to allow serial communication via the USB port.

#define BC_PIN   GPIO_PIN(PF, 7)

Push button pin definitions

#define PB0_PIN   GPIO_PIN(PB, 9)
#define PB1_PIN   GPIO_PIN(PB, 10)

LED pin definitions

#define LED0_PIN   GPIO_PIN(PE, 2)
#define LED1_PIN   GPIO_PIN(PE, 3)

Macros for controlling the on-board LEDs

#define LED0_ON   gpio_set(LED0_PIN)
#define LED0_OFF   gpio_clear(LED0_PIN)
#define LED0_TOGGLE   gpio_toggle(LED0_PIN)
#define LED1_ON   gpio_set(LED1_PIN)
#define LED1_OFF   gpio_clear(LED1_PIN)
#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Core temperature sensor configuration

Connection to the on-chip temperature sensor.


Macro Definition Documentation


#define BC_PIN   GPIO_PIN(PF, 7)

Definition at line 59 of file board.h.



Definition at line 96 of file board.h.


#define LED0_OFF   gpio_clear(LED0_PIN)

Definition at line 83 of file board.h.


#define LED0_ON   gpio_set(LED0_PIN)

Definition at line 82 of file board.h.


#define LED0_PIN   GPIO_PIN(PE, 2)

Definition at line 74 of file board.h.


#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Definition at line 84 of file board.h.


#define LED1_OFF   gpio_clear(LED1_PIN)

Definition at line 86 of file board.h.


#define LED1_ON   gpio_set(LED1_PIN)

Definition at line 85 of file board.h.


#define LED1_PIN   GPIO_PIN(PE, 3)

Definition at line 75 of file board.h.


#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Definition at line 87 of file board.h.


#define PB0_PIN   GPIO_PIN(PB, 9)

Definition at line 66 of file board.h.


#define PB1_PIN   GPIO_PIN(PB, 10)

Definition at line 67 of file board.h.


#define XTIMER_CHAN   (0)

Definition at line 49 of file board.h.


#define XTIMER_DEV   (TIMER_DEV(0))

Definition at line 45 of file board.h.


#define XTIMER_HZ   (250000UL)

Definition at line 46 of file board.h.


#define XTIMER_WIDTH   (16)

Definition at line 47 of file board.h.