boards: nucleo_wl55jc: Add support for ADC samples
Add pinmux for ADC on Arduino pin A0 and enable ADC1. Signed-off-by: Alexander Mihajlovic <a@abxy.se>
This commit is contained in:
parent
d5fb436f73
commit
44601330b0
3 changed files with 10 additions and 0 deletions
|
@ -204,6 +204,8 @@ features:
|
||||||
| UART | on-chip | serial port-polling; |
|
| UART | on-chip | serial port-polling; |
|
||||||
| | | serial port-interrupt |
|
| | | serial port-interrupt |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
| ADC | on-chip | ADC Controller |
|
||||||
|
+-----------+------------+-------------------------------------+
|
||||||
|
|
||||||
Other hardware features are not yet supported on this Zephyr port.
|
Other hardware features are not yet supported on this Zephyr port.
|
||||||
|
|
||||||
|
@ -231,6 +233,7 @@ Default Zephyr Peripheral Mapping:
|
||||||
- SPI_1_SCK : PA5 (arduino_spi)
|
- SPI_1_SCK : PA5 (arduino_spi)
|
||||||
- SPI_1_MISO : PA6 (arduino_spi)
|
- SPI_1_MISO : PA6 (arduino_spi)
|
||||||
- SPI_1_MOSI : PA7 (arduino_spi)
|
- SPI_1_MOSI : PA7 (arduino_spi)
|
||||||
|
- ADC1_IN5 : PB1 (Arduino pin A0)
|
||||||
|
|
||||||
System Clock
|
System Clock
|
||||||
------------
|
------------
|
||||||
|
|
|
@ -135,6 +135,12 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&adc1 {
|
||||||
|
pinctrl-0 = <&adc_in5_pb1>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&aes {
|
&aes {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,3 +15,4 @@ supported:
|
||||||
- arduino_gpio
|
- arduino_gpio
|
||||||
- arduino_i2c
|
- arduino_i2c
|
||||||
- arduino_spi
|
- arduino_spi
|
||||||
|
- adc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue