Skip to content
Permalink
Browse files

boards: nucleo_wb55rg: Enable ADC

Enable ADC on nucleo_wb55rg

Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
  • Loading branch information...
Rick Conrey authored and galak committed Jul 1, 2019
1 parent 8e62304 commit 710ab470c83d836bfea1449c8026643f8e5dc02a
@@ -44,6 +44,13 @@ config SPI_1

endif # SPI

if ADC

config ADC_1
default y

endif # ADC

if BT_DEBUG_MONITOR

config LPUART_1
@@ -166,6 +166,8 @@ The Zephyr nucleo_wb55rg board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+

Other hardware features are not yet supported on this Zephyr port.

@@ -199,6 +201,7 @@ Default Zephyr Peripheral Mapping:
- SPI_1_MISO : PA6 (arduino_spi)
- SPI_1_MOSI : PA7 (arduino_spi)
- PWM_2 CH 1 : PA0
- ADC_1_CH3 : PC2

System Clock
------------
@@ -93,6 +93,10 @@ arduino_serial: &lpuart1 {
status = "okay";
};

&adc1 {
status = "okay";
};

&flash0 {
/*
* For more information, see:
@@ -15,3 +15,4 @@ supported:
- counter
- spi
- pwm
- adc
@@ -39,6 +39,9 @@ static const struct pin_config pinconf[] = {
#ifdef CONFIG_PWM_STM32_2
{STM32_PIN_PA0, STM32WBX_PINMUX_FUNC_PA0_TMR2_CH1},
#endif /* CONFIG_PWM_STM32_2 */
#ifdef CONFIG_ADC_1
{STM32_PIN_PC2, STM32WBX_PINMUX_FUNC_PC2_ADC1_IN3},
#endif /* CONFIG_ADC_1 */
};

static int pinmux_stm32_init(struct device *port)

0 comments on commit 710ab47

Please sign in to comment.
You can’t perform that action at this time.