samples: drivers: adc: naming adc sample
The adc sample was in the root directory of the adc samples. Move all the files to a subdirectory adc_dt. Signed-off-by: Paulo Santos <pauloroberto.santos@edge.ufal.br>
This commit is contained in:
parent
5243a76c31
commit
6173f71d42
|
@ -181,6 +181,7 @@ REDIRECTS = [
|
|||
('reference/usermode/overview', 'kernel/usermode/overview'),
|
||||
('reference/usermode/syscalls', 'kernel/usermode/syscalls'),
|
||||
('reference/util/index', 'kernel/util/index'),
|
||||
('samples/drivers/adc/README', 'samples/drivers/adc/adc_dt/README'),
|
||||
('samples/drivers/kscan_touch', 'samples/subsys/input/input'),
|
||||
('samples/drivers/led_apa102/README', 'samples/drivers/led_strip/README'),
|
||||
('samples/drivers/led_lpd8806/README', 'samples/drivers/led_strip/README'),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.. zephyr:code-sample:: adc
|
||||
:name: Analog-to-Digital Converter (ADC)
|
||||
.. zephyr:code-sample:: adc_dt
|
||||
:name: Analog-to-Digital Converter (ADC) with devicetree
|
||||
:relevant-api: adc_interface
|
||||
|
||||
Read analog inputs from ADC channels.
|
||||
|
@ -31,7 +31,7 @@ Configuration of channels (settings like gain, reference, or acquisition time)
|
|||
also needs to be specified in devicetree, in ADC controller child nodes. Also
|
||||
the ADC resolution and oversampling setting (if used) need to be specified
|
||||
there. See :zephyr_file:`boards/nrf52840dk_nrf52840.overlay
|
||||
<samples/drivers/adc/boards/nrf52840dk_nrf52840.overlay>` for an example of
|
||||
<samples/drivers/adc/adc_dt/boards/nrf52840dk_nrf52840.overlay>` for an example of
|
||||
such setup.
|
||||
|
||||
Building and Running for ST Nucleo L073RZ
|
||||
|
@ -41,7 +41,7 @@ The sample can be built and executed for the
|
|||
:ref:`nucleo_l073rz_board` as follows:
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/drivers/adc
|
||||
:zephyr-app: samples/drivers/adc/adc_dt
|
||||
:board: nucleo_l073rz
|
||||
:goals: build flash
|
||||
:compact:
|
|
@ -1,7 +1,7 @@
|
|||
sample:
|
||||
name: ADC driver sample
|
||||
name: ADC devicetree driver sample
|
||||
tests:
|
||||
sample.drivers.adc:
|
||||
sample.drivers.adc.adc_dt:
|
||||
tags:
|
||||
- adc
|
||||
depends_on: adc
|
Loading…
Reference in a new issue