Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pico-sdk
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microcontroller
pico-sdk
Commits
cea82118
Unverified
Commit
cea82118
authored
1 year ago
by
Andrew Scheller
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix FIFO size in Doxygen in hardware/adc.h (#1720)
See
https://github.com/raspberrypi/pico-feedback/issues/357
parent
5be87f1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rp2_common/hardware_adc/include/hardware/adc.h
+4
-4
4 additions, 4 deletions
src/rp2_common/hardware_adc/include/hardware/adc.h
with
4 additions
and
4 deletions
src/rp2_common/hardware_adc/include/hardware/adc.h
+
4
−
4
View file @
cea82118
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
* - 5 input mux:
* - 5 input mux:
* - 4 inputs that are available on package pins shared with GPIO[29:26]
* - 4 inputs that are available on package pins shared with GPIO[29:26]
* - 1 input is dedicated to the internal temperature sensor
* - 1 input is dedicated to the internal temperature sensor
* -
4
element receive sample FIFO
* -
8
element receive sample FIFO
* - Interrupt generation
* - Interrupt generation
* - DMA interface
* - DMA interface
*
*
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
*
*
* T = 27 - (ADC_Voltage - 0.706)/0.001721
* T = 27 - (ADC_Voltage - 0.706)/0.001721
*
*
* The FIFO, if used, can contain up to
4
entries.
* The FIFO, if used, can contain up to
8
entries.
*
*
* \subsection adc_example Example
* \subsection adc_example Example
* \addtogroup hardware_adc
* \addtogroup hardware_adc
...
@@ -167,7 +167,7 @@ static inline void adc_set_clkdiv(float clkdiv) {
...
@@ -167,7 +167,7 @@ static inline void adc_set_clkdiv(float clkdiv) {
/*! \brief Setup the ADC FIFO
/*! \brief Setup the ADC FIFO
* \ingroup hardware_adc
* \ingroup hardware_adc
*
*
* FIFO is
4
samples long, if a conversion is completed and the FIFO is full, the result is dropped.
* 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
* \param en Enables write each conversion result to the FIFO
* \param dreq_en Enable DMA requests when FIFO contains data
* \param dreq_en Enable DMA requests when FIFO contains data
...
@@ -202,7 +202,7 @@ static inline bool adc_fifo_is_empty(void) {
...
@@ -202,7 +202,7 @@ static inline bool adc_fifo_is_empty(void) {
/*! \brief Get number of entries in the ADC FIFO
/*! \brief Get number of entries in the ADC FIFO
* \ingroup hardware_adc
* \ingroup hardware_adc
*
*
* The ADC FIFO is
4
entries long. This function will return how many samples are currently present.
* The ADC FIFO is
8
entries long. This function will return how many samples are currently present.
*/
*/
static
inline
uint8_t
adc_fifo_get_level
(
void
)
{
static
inline
uint8_t
adc_fifo_get_level
(
void
)
{
return
(
adc_hw
->
fcs
&
ADC_FCS_LEVEL_BITS
)
>>
ADC_FCS_LEVEL_LSB
;
return
(
adc_hw
->
fcs
&
ADC_FCS_LEVEL_BITS
)
>>
ADC_FCS_LEVEL_LSB
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment