Skip to content

Commit dc4be9c

Browse files
authored
ADC FIFO depth is the same on both RP2040 and RP2350 (#2806)
Both chips have "8 element receive sample FIFO"
1 parent 2186032 commit dc4be9c

File tree

1 file changed

+4
-18
lines changed
  • src/rp2_common/hardware_adc/include/hardware

1 file changed

+4
-18
lines changed

src/rp2_common/hardware_adc/include/hardware/adc.h

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@
2525
* - RP2040 5 input mux:
2626
* - 4 inputs that are available on package pins shared with GPIO[29:26]
2727
* - 1 input is dedicated to the internal temperature sensor
28-
* - 4 element receive sample FIFO
2928
* \endif
3029
*
3130
* \if rp2350_specific
3231
* - RP2350 5 or 9 input mux:
3332
* - 4 inputs available on QFN-60 package pins shared with GPIO[29:26]
3433
* - 8 inputs available on QFN-80 package pins shared with GPIO[47:40]
35-
* - 8 element receive sample FIFO
34+
* - One input dedicated to the internal temperature sensor (see Section 12.4.6)
3635
* \endif
37-
* - One input dedicated to the internal temperature sensor (see Section 12.4.6)
36+
* - 8 element receive sample FIFO
3837
* - Interrupt generation
3938
* - DMA interface
4039
*
@@ -213,14 +212,7 @@ static inline void adc_set_clkdiv(float clkdiv) {
213212
/*! \brief Setup the ADC FIFO
214213
* \ingroup hardware_adc
215214
*
216-
* \if rp2040_specific
217-
* On RP2040 the FIFO is 4 samples long.
218-
* \endif
219-
*
220-
* \if rp2350_specific
221-
* On RP2350 the FIFO is 8 samples long.
222-
* \endif
223-
*
215+
* The FIFO is 8 samples long.
224216
* If a conversion is completed and the FIFO is full, the result is dropped.
225217
*
226218
* \param en Enables write each conversion result to the FIFO
@@ -256,13 +248,7 @@ static inline bool adc_fifo_is_empty(void) {
256248
/*! \brief Get number of entries in the ADC FIFO
257249
* \ingroup hardware_adc
258250
*
259-
* \if rp2040_specific
260-
* On RP2040 the FIFO is 4 samples long.
261-
* \endif
262-
* \if rp2350_specific
263-
* On RP2350 the FIFO is 8 samples long.
264-
* \endif
265-
*
251+
* The FIFO is 8 samples long.
266252
* This function will return how many samples are currently present.
267253
*/
268254
static inline uint8_t adc_fifo_get_level(void) {

0 commit comments

Comments
 (0)