ikea-tradfri/include/board.h File Reference

Board specific definitions for the IKEA TRÅDFRI modules. More...

Detailed Description

Board specific definitions for the IKEA TRÅDFRI modules.

Author
Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com

Definition in file ikea-tradfri/include/board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph/gpio.h"
#include "periph/spi.h"
+ Include dependency graph for ikea-tradfri/include/board.h:

Go to the source code of this file.

Macros

Xtimer configuration

The timer runs at 250 KHz to increase accuracy.

#define XTIMER_HZ   (250000UL)
 
#define XTIMER_WIDTH   (16)
 
LED pin definitions
#define LED0_PIN   GPIO_PIN(PA, 1)
 
#define LED1_PIN   GPIO_PIN(PB, 13)
 
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)
 

Functions

void board_init (void)
 Initialize the board (GPIO, sensors, clocks).