Skip to content

Commit b27f13b

Browse files
reformatting doxygen comment markup (#1660)
1 parent 0c65e1d commit b27f13b

File tree

62 files changed

+115
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+115
-111
lines changed

src/common/boot_picoboot/include/boot/picoboot.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/** \file picoboot.h
1919
* \defgroup boot_picoboot boot_picoboot
2020
*
21-
* Header file for the PICOBOOT USB interface exposed by an RP2040 in BOOTSEL mode.
21+
* \brief Header file for the PICOBOOT USB interface exposed by an RP2040 in BOOTSEL mode.
2222
*/
2323

2424
#define PICOBOOT_MAGIC 0x431fd10bu

src/common/boot_uf2/include/boot/uf2.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/** \file uf2.h
1414
* \defgroup boot_uf2 boot_uf2
1515
*
16-
* Header file for the UF2 format supported by an RP2040 in BOOTSEL mode.
16+
* \brief Header file for the UF2 format supported by an RP2040 in BOOTSEL mode.
1717
*/
1818

1919
#define UF2_MAGIC_START0 0x0A324655u

src/common/pico_base/include/pico.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/** \file pico.h
1111
* \defgroup pico_base pico_base
1212
*
13-
* Core types and macros for the Raspberry Pi Pico SDK. This header is intended to be included by all source code
13+
* \brief Core types and macros for the Raspberry Pi Pico SDK. This header is intended to be included by all source code
1414
* as it includes configuration headers and overrides in the correct order
1515
*
1616
* This header may be included by assembly code

src/common/pico_binary_info/include/pico/binary_info.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/** \file binary_info.h
1111
* \defgroup pico_binary_info pico_binary_info
1212
*
13-
* Binary info is intended for embedding machine readable information with the binary in FLASH.
13+
* \brief Binary info is intended for embedding machine readable information with the binary in FLASH.
1414
*
1515
* Example uses include:
1616
*

src/common/pico_binary_info/include/pico/binary_info/code.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
#define __bi_enclosure_check(x) (x)
3030
#endif
3131
/**
32-
* Declare some binary information that will be included if the contain source file/line is compiled into the binary
32+
* \brief Declare some binary information that will be included if the contain source file/line is compiled into the binary
3333
* \ingroup pico_binary_info
3434
*/
3535
#define bi_decl(_decl) __bi_mark_enclosure _decl; __bi_decl(__bi_ptr_lineno_var_name, &__bi_lineno_var_name.core, ".binary_info.keep.", __used);
3636
/**
37-
* Declare some binary information that will be included if the function containing the decl is linked into the binary.
37+
* \brief Declare some binary information that will be included if the function containing the decl is linked into the binary.
3838
* The SDK uses --gc-sections, so functions that are never called will be removed by the linker, and any associated
3939
* binary information declared this way will also be stripped
4040
* \ingroup pico_binary_info

src/common/pico_bit_ops/include/pico/bit_ops.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extern "C" {
1616
/** \file bit_ops.h
1717
* \defgroup pico_bit_ops pico_bit_ops
1818
*
19-
* Optimized bit manipulation functions.
19+
* \brief Optimized bit manipulation functions.
2020
* Additionally provides replacement implementations of the compiler built-ins __builtin_popcount, __builtin_clz
2121
* and __bulitin_ctz
2222
*/

src/common/pico_divider/include/pico/divider.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extern "C" {
1616

1717
/**
1818
* \defgroup pico_divider pico_divider
19-
* Optimized 32 and 64 bit division functions accelerated by the RP2040 hardware divider.
19+
* \brief Optimized 32 and 64 bit division functions accelerated by the RP2040 hardware divider.
2020
* Additionally provides integration with the C `/` and `%` operators
2121
*/
2222

src/common/pico_stdlib/include/pico/stdlib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern "C" {
2020
/** \file stdlib.h
2121
* \defgroup pico_stdlib pico_stdlib
2222
*
23-
* Aggregation of a core subset of Raspberry Pi Pico SDK libraries used by most executables along with some additional
23+
* \brief Aggregation of a core subset of Raspberry Pi Pico SDK libraries used by most executables along with some additional
2424
* utility methods. Including pico_stdlib gives you everything you need to get a basic program running
2525
* which prints to stdout or flashes a LED
2626
*

src/common/pico_sync/include/pico/lock_core.h

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ void lock_init(lock_core_t *core, uint lock_num);
7474
#ifndef lock_owner_id_t
7575
/*! \brief type to use to store the 'owner' of a lock.
7676
* \ingroup lock_core
77+
*
7778
* By default this is int8_t as it only needs to store the core number or -1, however it may be
7879
* overridden if a larger type is required (e.g. for an RTOS task id)
7980
*/
@@ -90,6 +91,7 @@ void lock_init(lock_core_t *core, uint lock_num);
9091
#ifndef lock_get_caller_owner_id
9192
/*! \brief return the owner id for the caller
9293
* \ingroup lock_core
94+
*
9395
* By default this returns the calling core number, but may be overridden (e.g. to return an RTOS task id)
9496
*/
9597
#define lock_get_caller_owner_id() ((lock_owner_id_t)get_core_num())

src/common/pico_sync/include/pico/sync.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/** \file pico/sync.h
1111
* \defgroup pico_sync pico_sync
12-
* Synchronization primitives and mutual exclusion
12+
* \brief Synchronization primitives and mutual exclusion
1313
*/
1414

1515
#include "pico/sem.h"

src/common/pico_time/include/pico/time.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extern "C" {
1717
/** \file time.h
1818
* \defgroup pico_time pico_time
1919
*
20-
* API for accurate timestamps, sleeping, and time based callbacks
20+
* \brief API for accurate timestamps, sleeping, and time based callbacks
2121
*
2222
* \note The functions defined here provide a much more powerful and user friendly wrapping around the
2323
* low level hardware timer functionality. For these functions (and any other SDK functionality

src/common/pico_usb_reset_interface/include/pico/usb_reset_interface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/** \file usb_reset_interface.h
1111
* \defgroup pico_usb_reset_interface pico_usb_reset_interface
1212
*
13-
* Definition for the reset interface that may be exposed by the pico_stdio_usb library
13+
* \brief Definition for the reset interface that may be exposed by the pico_stdio_usb library
1414
*/
1515

1616
// VENDOR sub-class for the reset interface

src/common/pico_util/include/pico/util/pheap.h

+16-16
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extern "C" {
2121
/**
2222
* \file pheap.h
2323
* \defgroup util_pheap pheap
24-
* Pairing Heap Implementation
24+
* \brief Pairing Heap Implementation
2525
* \ingroup pico_util
2626
*
2727
* pheap defines a simple pairing heap. The implementation simply tracks array indexes, it is up to
@@ -53,7 +53,7 @@ typedef struct pheap_node {
5353
} pheap_node_t;
5454

5555
/**
56-
* A user comparator function for nodes in a pairing heap.
56+
* \brief A user comparator function for nodes in a pairing heap.
5757
*
5858
* \return true if a < b in natural order. Note this relative ordering must be stable from call to call.
5959
*/
@@ -71,7 +71,7 @@ typedef struct pheap {
7171
} pheap_t;
7272

7373
/**
74-
* Create a pairing heap, which effectively maintains an efficient sorted ordering
74+
* \brief Create a pairing heap, which effectively maintains an efficient sorted ordering
7575
* of nodes. The heap itself stores no user per-node state, it is expected
7676
* that the user maintains a companion array. A comparator function must
7777
* be provided so that the heap implementation can determine the relative ordering of nodes
@@ -86,13 +86,13 @@ typedef struct pheap {
8686
pheap_t *ph_create(uint max_nodes, pheap_comparator comparator, void *user_data);
8787

8888
/**
89-
* Removes all nodes from the pairing heap
89+
* \brief Removes all nodes from the pairing heap
9090
* \param heap the heap
9191
*/
9292
void ph_clear(pheap_t *heap);
9393

9494
/**
95-
* De-allocates a pairing heap
95+
* \brief De-allocates a pairing heap
9696
*
9797
* Note this method must *ONLY* be called on heaps created by ph_create()
9898
* \param heap the heap
@@ -135,7 +135,7 @@ static pheap_node_id_t ph_merge_nodes(pheap_t *heap, pheap_node_id_t a, pheap_no
135135
}
136136

137137
/**
138-
* Allocate a new node from the unused space in the heap
138+
* \brief Allocate a new node from the unused space in the heap
139139
*
140140
* \param heap the heap
141141
* \return an identifier for the node, or 0 if the heap is full
@@ -151,7 +151,7 @@ static inline pheap_node_id_t ph_new_node(pheap_t *heap) {
151151
}
152152

153153
/**
154-
* Inserts a node into the heap.
154+
* \brief Inserts a node into the heap.
155155
*
156156
* This method inserts a node (previously allocated by ph_new_node())
157157
* into the heap, determining the correct order by calling
@@ -170,7 +170,7 @@ static inline pheap_node_id_t ph_insert_node(pheap_t *heap, pheap_node_id_t id)
170170
}
171171

172172
/**
173-
* Returns the head node in the heap, i.e. the node
173+
* \brief Returns the head node in the heap, i.e. the node
174174
* which compares first, but without removing it from the heap.
175175
*
176176
* \param heap the heap
@@ -181,7 +181,7 @@ static inline pheap_node_id_t ph_peek_head(pheap_t *heap) {
181181
}
182182

183183
/**
184-
* Remove the head node from the pairing heap. This head node is
184+
* \brief Remove the head node from the pairing heap. This head node is
185185
* the node which compares first in the logical ordering provided
186186
* by the comparator.
187187
*
@@ -198,7 +198,7 @@ static inline pheap_node_id_t ph_peek_head(pheap_t *heap) {
198198
pheap_node_id_t ph_remove_head(pheap_t *heap, bool free);
199199

200200
/**
201-
* Remove the head node from the pairing heap. This head node is
201+
* \brief Remove the head node from the pairing heap. This head node is
202202
* the node which compares first in the logical ordering provided
203203
* by the comparator.
204204
*
@@ -214,7 +214,7 @@ static inline pheap_node_id_t ph_remove_and_free_head(pheap_t *heap) {
214214
}
215215

216216
/**
217-
* Remove and free an arbitrary node from the pairing heap. This is a more
217+
* \brief Remove and free an arbitrary node from the pairing heap. This is a more
218218
* costly operation than removing the head via ph_remove_and_free_head()
219219
*
220220
* @param heap the heap
@@ -224,7 +224,7 @@ static inline pheap_node_id_t ph_remove_and_free_head(pheap_t *heap) {
224224
bool ph_remove_and_free_node(pheap_t *heap, pheap_node_id_t id);
225225

226226
/**
227-
* Determine if the heap contains a given node. Note containment refers
227+
* \brief Determine if the heap contains a given node. Note containment refers
228228
* to whether the node is inserted (ph_insert_node()) vs allocated (ph_new_node())
229229
*
230230
* @param heap the heap
@@ -237,7 +237,7 @@ static inline bool ph_contains_node(pheap_t *heap, pheap_node_id_t id) {
237237

238238

239239
/**
240-
* Free a node that is not currently in the heap, but has been allocated
240+
* \brief Free a node that is not currently in the heap, but has been allocated
241241
*
242242
* @param heap the heap
243243
* @param id the id of the node
@@ -255,7 +255,7 @@ static inline void ph_free_node(pheap_t *heap, pheap_node_id_t id) {
255255
}
256256

257257
/**
258-
* Print a representation of the heap for debugging
258+
* \brief Print a representation of the heap for debugging
259259
*
260260
* @param heap the heap
261261
* @param dump_key a method to print a node value
@@ -264,7 +264,7 @@ static inline void ph_free_node(pheap_t *heap, pheap_node_id_t id) {
264264
void ph_dump(pheap_t *heap, void (*dump_key)(pheap_node_id_t id, void *user_data), void *user_data);
265265

266266
/**
267-
* Initialize a statically allocated heap (ph_create() using the C heap).
267+
* \brief Initialize a statically allocated heap (ph_create() using the C heap).
268268
* The heap member `nodes` must be allocated of size max_nodes.
269269
*
270270
* @param heap the heap
@@ -275,7 +275,7 @@ void ph_dump(pheap_t *heap, void (*dump_key)(pheap_node_id_t id, void *user_data
275275
void ph_post_alloc_init(pheap_t *heap, uint max_nodes, pheap_comparator comparator, void *user_data);
276276

277277
/**
278-
* Define a statically allocated pairing heap. This must be initialized
278+
* \brief Define a statically allocated pairing heap. This must be initialized
279279
* by ph_post_alloc_init
280280
*/
281281
#define PHEAP_DEFINE_STATIC(name, _max_nodes) \

src/common/pico_util/include/pico/util/queue.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/** \file queue.h
1919
* \defgroup queue queue
20-
* Multi-core and IRQ safe queue implementation.
20+
* \brief Multi-core and IRQ safe queue implementation.
2121
*
2222
* Note that this queue stores values of a specified size, and pushed values are copied into the queue
2323
* \ingroup pico_util

src/rp2_common/cmsis/stub/CMSIS/Core/Include/mpu_armv7.h

+11-11
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
(MPU_RBAR_VALID_Msk))
7979

8080
/**
81-
* MPU Memory Access Attributes
81+
* \brief MPU Memory Access Attributes
8282
*
8383
* \param TypeExtField Type extension field, allows you to configure memory access type, for example strongly ordered, peripheral.
8484
* \param IsShareable Region is shareable between multiple bus masters.
@@ -92,7 +92,7 @@
9292
(((IsBufferable) << MPU_RASR_B_Pos) & MPU_RASR_B_Msk))
9393

9494
/**
95-
* MPU Region Attribute and Size Register Value
95+
* \brief MPU Region Attribute and Size Register Value
9696
*
9797
* \param DisableExec Instruction access disable bit, 1= disable instruction fetches.
9898
* \param AccessPermission Data access permissions, allows you to configure read/write access for User and Privileged mode.
@@ -109,7 +109,7 @@
109109
(((MPU_RASR_ENABLE_Msk))))
110110

111111
/**
112-
* MPU Region Attribute and Size Register Value
112+
* \brief MPU Region Attribute and Size Register Value
113113
*
114114
* \param DisableExec Instruction access disable bit, 1= disable instruction fetches.
115115
* \param AccessPermission Data access permissions, allows you to configure read/write access for User and Privileged mode.
@@ -124,7 +124,7 @@
124124
ARM_MPU_RASR_EX(DisableExec, AccessPermission, ARM_MPU_ACCESS_(TypeExtField, IsShareable, IsCacheable, IsBufferable), SubRegionDisable, Size)
125125

126126
/**
127-
* MPU Memory Access Attribute for strongly ordered memory.
127+
* \brief MPU Memory Access Attribute for strongly ordered memory.
128128
* - TEX: 000b
129129
* - Shareable
130130
* - Non-cacheable
@@ -133,7 +133,7 @@
133133
#define ARM_MPU_ACCESS_ORDERED ARM_MPU_ACCESS_(0U, 1U, 0U, 0U)
134134

135135
/**
136-
* MPU Memory Access Attribute for device memory.
136+
* \brief MPU Memory Access Attribute for device memory.
137137
* - TEX: 000b (if shareable) or 010b (if non-shareable)
138138
* - Shareable or non-shareable
139139
* - Non-cacheable
@@ -144,7 +144,7 @@
144144
#define ARM_MPU_ACCESS_DEVICE(IsShareable) ((IsShareable) ? ARM_MPU_ACCESS_(0U, 1U, 0U, 1U) : ARM_MPU_ACCESS_(2U, 0U, 0U, 0U))
145145

146146
/**
147-
* MPU Memory Access Attribute for normal memory.
147+
* \brief MPU Memory Access Attribute for normal memory.
148148
* - TEX: 1BBb (reflecting outer cacheability rules)
149149
* - Shareable or non-shareable
150150
* - Cacheable or non-cacheable (reflecting inner cacheability rules)
@@ -157,28 +157,28 @@
157157
#define ARM_MPU_ACCESS_NORMAL(OuterCp, InnerCp, IsShareable) ARM_MPU_ACCESS_((4U | (OuterCp)), IsShareable, ((InnerCp) >> 1U), ((InnerCp) & 1U))
158158

159159
/**
160-
* MPU Memory Access Attribute non-cacheable policy.
160+
* \brief MPU Memory Access Attribute non-cacheable policy.
161161
*/
162162
#define ARM_MPU_CACHEP_NOCACHE 0U
163163

164164
/**
165-
* MPU Memory Access Attribute write-back, write and read allocate policy.
165+
* \brief MPU Memory Access Attribute write-back, write and read allocate policy.
166166
*/
167167
#define ARM_MPU_CACHEP_WB_WRA 1U
168168

169169
/**
170-
* MPU Memory Access Attribute write-through, no write allocate policy.
170+
* \brief MPU Memory Access Attribute write-through, no write allocate policy.
171171
*/
172172
#define ARM_MPU_CACHEP_WT_NWA 2U
173173

174174
/**
175-
* MPU Memory Access Attribute write-back, no write allocate policy.
175+
* \brief MPU Memory Access Attribute write-back, no write allocate policy.
176176
*/
177177
#define ARM_MPU_CACHEP_WB_NWA 3U
178178

179179

180180
/**
181-
* Struct for a single MPU Region
181+
* \brief Struct for a single MPU Region
182182
*/
183183
typedef struct {
184184
uint32_t RBAR; //!< The region base address register value (RBAR)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/** \file hardware/adc.h
1515
* \defgroup hardware_adc hardware_adc
1616
*
17-
* Analog to Digital Converter (ADC) API
17+
* \brief Analog to Digital Converter (ADC) API
1818
*
1919
* The RP2040 has an internal analogue-digital converter (ADC) with the following features:
2020
* - SAR ADC

src/rp2_common/hardware_base/include/hardware/address_mapped.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/** \file address_mapped.h
1414
* \defgroup hardware_base hardware_base
1515
*
16-
* Low-level types and (atomic) accessors for memory-mapped hardware registers
16+
* \brief Low-level types and (atomic) accessors for memory-mapped hardware registers
1717
*
1818
* `hardware_base` defines the low level types and access functions for memory mapped hardware registers. It is included
1919
* by default by all other hardware libraries.

src/rp2_common/hardware_claim/include/hardware/claim.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/** \file claim.h
1414
* \defgroup hardware_claim hardware_claim
1515
*
16-
* Lightweight hardware resource management
16+
* \brief Lightweight hardware resource management
1717
*
1818
* `hardware_claim` provides a simple API for management of hardware resources at runtime.
1919
*

src/rp2_common/hardware_clocks/include/hardware/clocks.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extern "C" {
1717
/** \file hardware/clocks.h
1818
* \defgroup hardware_clocks hardware_clocks
1919
*
20-
* Clock Management API
20+
* \brief Clock Management API
2121
*
2222
* This API provides a high level interface to the clock functions.
2323
*

0 commit comments

Comments
 (0)