The mask passed in shouldn't already be shifted by ADC_CS_RROBIN_LSB
(16) otherwise the shift in the call to hw_write_masked() would shift
all of the bits off the end of the mask, hence we should be asserting
not against ADC_CS_RROBIN_BITS (0x1f0000) but against the number of ADC
channels available.
This directory contains libraries specifically targeting the RP2040 or possible future related devices. It is selected when
PICO_PLATFORM=rp2040 (the default) is specified for the build
hardware_ libraries exist for individual hardware components to provide a simple API
providing a thin abstraction hiding the details of accessing the hardware registers directly.
pico_ provides higher level functionality you might generally find in say an OS kernel, as well
as runtime support familiar to most C programmers.