mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 17:52:47 +01:00
boards/p-nucleo-wb55: provide Arduino features
This provides the features: - `arduino_i2c` - `arduino_spi` - `arduino_uart`
This commit is contained in:
parent
b16c85c5a5
commit
08379cde27
@ -26,8 +26,11 @@ config BOARD_P_NUCLEO_WB55
|
|||||||
|
|
||||||
# Put other features for this board (in alphabetical order)
|
# Put other features for this board (in alphabetical order)
|
||||||
select HAS_ARDUINO_ANALOG
|
select HAS_ARDUINO_ANALOG
|
||||||
|
select HAS_ARDUINO_I2C
|
||||||
select HAS_ARDUINO_PINS
|
select HAS_ARDUINO_PINS
|
||||||
select HAS_ARDUINO_SHIELD_UNO
|
select HAS_ARDUINO_SHIELD_UNO
|
||||||
|
select HAS_ARDUINO_SPI
|
||||||
|
select HAS_ARDUINO_UART
|
||||||
select HAS_RIOTBOOT
|
select HAS_RIOTBOOT
|
||||||
select HAS_TINYUSB_DEVICE
|
select HAS_TINYUSB_DEVICE
|
||||||
|
|
||||||
|
@ -14,7 +14,10 @@ FEATURES_PROVIDED += periph_usbdev
|
|||||||
|
|
||||||
# Put other features for this board (in alphabetical order)
|
# Put other features for this board (in alphabetical order)
|
||||||
FEATURES_PROVIDED += arduino_analog
|
FEATURES_PROVIDED += arduino_analog
|
||||||
|
FEATURES_PROVIDED += arduino_i2c
|
||||||
FEATURES_PROVIDED += arduino_pins
|
FEATURES_PROVIDED += arduino_pins
|
||||||
FEATURES_PROVIDED += arduino_shield_uno
|
FEATURES_PROVIDED += arduino_shield_uno
|
||||||
|
FEATURES_PROVIDED += arduino_spi
|
||||||
|
FEATURES_PROVIDED += arduino_uart
|
||||||
FEATURES_PROVIDED += riotboot
|
FEATURES_PROVIDED += riotboot
|
||||||
FEATURES_PROVIDED += tinyusb_device
|
FEATURES_PROVIDED += tinyusb_device
|
||||||
|
@ -88,6 +88,33 @@ extern "C" {
|
|||||||
#define ARDUINO_ANALOG_PIN_LAST 5
|
#define ARDUINO_ANALOG_PIN_LAST 5
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name Arduino's default UART device
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
#define ARDUINO_UART_D0D1 UART_DEV(1)
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name Arduino's I2C buses
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* @brief The only configured I2C
|
||||||
|
*/
|
||||||
|
#define ARDUINO_I2C_UNO I2C_DEV(0)
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name Arduino's SPI buses
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* @brief SPI_DEV(0) is connected to D11/D12/D13
|
||||||
|
*/
|
||||||
|
#define ARDUINO_SPI_D11D12D13 SPI_DEV(0)
|
||||||
|
/** @} */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user