Peripheral configuration for the BBC micro:bit v2.
More...
Peripheral configuration for the BBC micro:bit v2.
- Author
- Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
Definition in file periph_conf.h.
#include "board.h"
#include "periph_cpu.h"
#include "cfg_clock_32_0.h"
#include "cfg_timer_default.h"
#include "cfg_rtt_default.h"
Go to the source code of this file.
◆ I2C_NUMOF
◆ PWM_NUMOF
◆ SPI_NUMOF
◆ UART_0_ISR
◆ UART_NUMOF
◆ i2c_config
Initial value:= {
{
.dev = NRF_TWIM1,
},
{
.dev = NRF_TWIM0,
},
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
Definition at line 76 of file periph_conf.h.
◆ pwm_config
Initial value:= {
{
NRF_PWM0,
{
}
},
}
#define SPEAKER_PIN
Speaker pin (A0)
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition at line 58 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = NRF_SPIM0,
}
}
Definition at line 97 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.dev = NRF_UARTE0,
.irqn = UARTE0_UART0_IRQn,
},
}
Definition at line 36 of file periph_conf.h.