boards/microbit/include/periph_conf.h File Reference

Peripheral configuration for the BBC micro:bit. More...

Detailed Description

Peripheral 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

Definition in file boards/microbit/include/periph_conf.h.

#include "periph_cpu.h"
#include "cfg_clock_16_0.h"
+ Include dependency graph for boards/microbit/include/periph_conf.h:

Go to the source code of this file.

Timer configuration

#define TIMER_0_ISR   isr_timer0
 
#define TIMER_1_ISR   isr_timer1
 
#define TIMER_2_ISR   isr_timer2
 
#define TIMER_NUMOF   (sizeof(timer_config) / sizeof(timer_config[0]))
 
static const timer_conf_t timer_config []
 

Real time counter configuration

#define RTT_NUMOF   (1U)
 
#define RTT_DEV   (1) /* NRF_RTC1 */
 
#define RTT_MAX_VALUE   (0x00ffffff)
 
#define RTT_FREQUENCY   (1024)
 

UART configuration

#define UART_NUMOF   (1U)
 
#define UART_HWFLOWCTRL   0
 
#define UART_PIN_RX   25
 
#define UART_PIN_TX   24
 

I2C (TWI) configuration

#define I2C_NUMOF   (sizeof(i2c_config) / sizeof(i2c_config[0]))
 
static const i2c_conf_t i2c_config []
 

Variable Documentation

◆ i2c_config

const i2c_conf_t i2c_config[]
static
Initial value:
= {
{
.dev = NRF_TWI0,
.pin_scl = 0,
.pin_sda = 30,
.ppi = 0,
.speed = I2C_SPEED_NORMAL,
}
}
normal mode: ~100kbit/s

Definition at line 86 of file boards/microbit/include/periph_conf.h.

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = NRF_TIMER0,
.channels = 3,
.bitmode = TIMER_BITMODE_BITMODE_24Bit,
.irqn = TIMER0_IRQn
},
{
.dev = NRF_TIMER1,
.channels = 3,
.bitmode = TIMER_BITMODE_BITMODE_16Bit,
.irqn = TIMER1_IRQn
},
{
.dev = NRF_TIMER2,
.channels = 3,
.bitmode = TIMER_BITMODE_BITMODE_16Bit,
.irqn = TIMER2_IRQn
}
}

Definition at line 33 of file boards/microbit/include/periph_conf.h.