samples: rpi_pico2: Add ADC-related samples for rpi_pico2

The Raspberry Pi Pico 2's device is compatible with the existing Pico 1.
The build system requires a `<board>.overlay` file, but these use the
pre-processing to #include the sibling rpi_pico.overlay files rather
than duplicating the contents as an attempt to keep things DRY.

Tested locally.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
This commit is contained in:
Andrew Featherstone 2024-08-31 21:34:24 +01:00 committed by Benjamin Cabé
parent 47b4e4c2fb
commit d2c6164c71
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,8 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2024 Andrew Featherstone <andrew.featherstone@gmail.com>
*/
/* Pico 2 is compatible with the Pico 1, so reuse. */
#include "rpi_pico.overlay"

View file

@ -0,0 +1,8 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2024 Andrew Featherstone
*/
/* Pico 2 is compatible with the Pico 1, so reuse. */
#include "rpi_pico.overlay"