mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2026-01-28 01:47:21 +01:00
ADC FIFO depth is the same on both RP2040 and RP2350
Both chips have "8 element receive sample FIFO"
This commit is contained in:
parent
9c6713a8ed
commit
8540a90b0c
1 changed files with 4 additions and 18 deletions
|
|
@ -25,16 +25,15 @@
|
|||
* - RP2040 5 input mux:
|
||||
* - 4 inputs that are available on package pins shared with GPIO[29:26]
|
||||
* - 1 input is dedicated to the internal temperature sensor
|
||||
* - 4 element receive sample FIFO
|
||||
* \endif
|
||||
*
|
||||
* \if rp2350_specific
|
||||
* - RP2350 5 or 9 input mux:
|
||||
* - 4 inputs available on QFN-60 package pins shared with GPIO[29:26]
|
||||
* - 8 inputs available on QFN-80 package pins shared with GPIO[47:40]
|
||||
* - 8 element receive sample FIFO
|
||||
* - One input dedicated to the internal temperature sensor (see Section 12.4.6)
|
||||
* \endif
|
||||
* - One input dedicated to the internal temperature sensor (see Section 12.4.6)
|
||||
* - 8 element receive sample FIFO
|
||||
* - Interrupt generation
|
||||
* - DMA interface
|
||||
*
|
||||
|
|
@ -213,14 +212,7 @@ static inline void adc_set_clkdiv(float clkdiv) {
|
|||
/*! \brief Setup the ADC FIFO
|
||||
* \ingroup hardware_adc
|
||||
*
|
||||
* \if rp2040_specific
|
||||
* On RP2040 the FIFO is 4 samples long.
|
||||
* \endif
|
||||
*
|
||||
* \if rp2350_specific
|
||||
* On RP2350 the FIFO is 8 samples long.
|
||||
* \endif
|
||||
*
|
||||
* The FIFO is 8 samples long.
|
||||
* If a conversion is completed and the FIFO is full, the result is dropped.
|
||||
*
|
||||
* \param en Enables write each conversion result to the FIFO
|
||||
|
|
@ -256,13 +248,7 @@ static inline bool adc_fifo_is_empty(void) {
|
|||
/*! \brief Get number of entries in the ADC FIFO
|
||||
* \ingroup hardware_adc
|
||||
*
|
||||
* \if rp2040_specific
|
||||
* On RP2040 the FIFO is 4 samples long.
|
||||
* \endif
|
||||
* \if rp2350_specific
|
||||
* On RP2350 the FIFO is 8 samples long.
|
||||
* \endif
|
||||
*
|
||||
* The FIFO is 8 samples long.
|
||||
* This function will return how many samples are currently present.
|
||||
*/
|
||||
static inline uint8_t adc_fifo_get_level(void) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue