mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
boards/microbit: added I2C configuration
This commit is contained in:
parent
d9acf1f621
commit
2070e08787
@ -3,6 +3,7 @@ FEATURES_PROVIDED += periph_cpuid
|
||||
FEATURES_PROVIDED += periph_flashpage
|
||||
FEATURES_PROVIDED += periph_gpio
|
||||
FEATURES_PROVIDED += periph_hwrng
|
||||
FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_rtt
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
@ -96,6 +96,22 @@ static const timer_conf_t timer_config[] = {
|
||||
#define UART_PIN_TX 24
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief I2C (TWI) configuration
|
||||
* @{
|
||||
*/
|
||||
static const i2c_conf_t i2c_config[] = {
|
||||
{
|
||||
.dev = NRF_TWI0,
|
||||
.pin_scl = 0,
|
||||
.pin_sda = 30,
|
||||
.ppi = 0
|
||||
}
|
||||
};
|
||||
|
||||
#define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0]))
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief ADC configuration
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user