microbit/include/board.h File Reference

Board specific configuration for the BBC micro:bit. More...

Detailed Description

Board specific configuration for the BBC micro:bit.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file microbit/include/board.h.

#include "cpu.h"
#include "periph_conf.h"
+ Include dependency graph for microbit/include/board.h:

Go to the source code of this file.

Macros

Xtimer configuration
#define XTIMER_WIDTH   (24)
 
#define XTIMER_BACKOFF   (40)
 
LED matrix pin configuration
#define MICROBIT_LED_COL1   GPIO_PIN(0, 4)
 
#define MICROBIT_LED_COL2   GPIO_PIN(0, 5)
 
#define MICROBIT_LED_COL3   GPIO_PIN(0, 6)
 
#define MICROBIT_LED_COL4   GPIO_PIN(0, 7)
 
#define MICROBIT_LED_COL5   GPIO_PIN(0, 8)
 
#define MICROBIT_LED_COL6   GPIO_PIN(0, 9)
 
#define MICROBIT_LED_COL7   GPIO_PIN(0, 10)
 
#define MICROBIT_LED_COL8   GPIO_PIN(0, 11)
 
#define MICROBIT_LED_COL9   GPIO_PIN(0, 12)
 
#define MICROBIT_LED_ROW1   GPIO_PIN(0, 13)
 
#define MICROBIT_LED_ROW2   GPIO_PIN(0, 14)
 
#define MICROBIT_LED_ROW3   GPIO_PIN(0, 15)
 
Button configuration
#define BTN0_PIN   GPIO_PIN(0, 17)
 
#define BTN0_MODE   GPIO_IN
 
#define BTN1_PIN   GPIO_PIN(0, 26)
 
#define BTN1_MODE   GPIO_IN
 
MMA8653 accelerometer configuration
#define MMA8653_PARAM_I2C   I2C_DEV(0)
 
#define MMA8653_PARAM_ADDR   0x1d
 
MAG3110 magnetometer configuration
#define MAG3110_PARAM_I2C   I2C_DEV(0)
 
#define MAG3110_PARAM_ADDR   0x0e
 

Functions

void board_init (void)
 Initialize the board, also triggers the CPU initialization.