Skip to content

Commit d23d785

Browse files
author
Cruz Monrreal
authored
Merge pull request #8552 from cmonr/rollup
Rollup PR: UK Docathon pt2
2 parents a5b7573 + 3da8618 commit d23d785

28 files changed

+1081
-885
lines changed

.github/issue_template.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<!--
2+
3+
************************************** WARNING **************************************
4+
5+
The ciarcom bot parses this header automatically. Any deviation from the
6+
template may cause the bot to automatically correct this header or may result in a
7+
warning message, requesting updates.
8+
9+
Please ensure that nothing follows the Issue request type section, all
10+
issue details are within the Description section and no changes are made to the
11+
template format (as detailed below).
12+
13+
*************************************************************************************
14+
15+
-->
16+
117
### Description
218

319
<!--

CONTRIBUTING.md

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,5 @@
1-
# Description
2-
This document is cheat sheet for everyone who wants to contribute to [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os) GitHub repository at GitHub.
3-
All changes in code base should originate from GitHub Issues and take advantage of existing GitHub flows. Goal is to attract contributors and allow them contribute to code and documentation at the same time.
1+
# Contributing to Mbed OS
42

5-
Guidelines from this document are created to help new and existing contributors understand process workflow and align to project rules before pull request is submitted. It explains how a participant should do things like format code, test fixes, and submit patches.
3+
Mbed OS is an open-source, device software platform for the Internet of Things. Contributions are an important part of the platform, and our goal is to make it as simple as possible to become a contributor.
64

7-
## Where to get more information?
8-
You can read more on our [documentation page](https://docs.mbed.com/docs/mbed-os-handbook/en/latest/cont/contributing/).
9-
10-
# How to contribute
11-
We really appreciate your contributions! We are Open Source project and we need your help. We want to keep it as easy as possible to contribute changes that get things working in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
12-
13-
Before a pull request will be merged, the [mbed Contributor Agreement](http://developer.mbed.org/contributor_agreement/) must be signed.
14-
15-
You can pick up existing [mbed-os GitHub Issue](https://github.com/ARMmbed/mbed-os/issues) and solve it or implement new feature you find important, attractive or just necessary. We will review your proposal via pull request mechanism, give you comments and merge your changes if we decide your contribution satisfy criteria such as quality.
16-
17-
# Enhancements vs Bugs
18-
Enhancements are:
19-
* New features implementation.
20-
* Code refactoring.
21-
* Coding rules, coding styles improvements.
22-
* Code comments improvement.
23-
* Documentation work.
24-
25-
Bugs are:
26-
* Issues rose internally or externally by [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os) users.
27-
* Internally (within mbed team) created issues from Continuous Integration pipeline and build servers.
28-
* Issues detected using automation tools such as compilers, sanitizers, static code analysis tools etc.
29-
30-
# Gate Keeper role
31-
Gate Keeper is a person responsible for GitHub process workflow execution and is responsible for repository / project code base. Gate Keeper is also responsible for code (pull request) quality stamp and approves or rejects code changes in project’s code base.
32-
33-
Gate Keepers will review your pull request code, give you comments in pull request comment section and in the end if everything goes well merge your pull request to one of our branches (most probably default ```master``` branch).
34-
35-
Please be patient, digest Gate Keeper's feedback and respond promptly :)
36-
37-
# mbed SDK porting
38-
* For more information regarding mbed SDK porting please refer to [mbed SDK porting](http://developer.mbed.org/handbook/mbed-SDK-porting) handbook.
39-
* Before starting the mbed SDK porting, you might want to familiarize with the [mbed SDK library internals](http://developer.mbed.org/handbook/mbed-library-internals) first.
40-
41-
# Glossary
42-
* Gate Keeper – persons responsible for overall code-base quality of [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os) project.
43-
* Enhancement – New feature deployment, code refactoring actions or existing code improvements.
44-
* Bugfix – Issues originated from GitHub Issues pool, raised internally within mbed classic team or issues from automated code validators like linters, static code analysis tools etc.
45-
* Mbed classic – mbed SDK 2.0 located in GitHub at [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os).
5+
To encourage productive collaboration, as well as robust, consistent and maintainable code, we have a set of guidelines for contributing to Mbed OS. Please see: [contributing guidelines](https://os.mbed.com/docs/latest/reference/contributing.html).

TESTS/mbed_hal/critical_section/critical_section_test.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17-
/** \addtogroup hal_critical_tests
17+
/** \addtogroup hal_critical
1818
* @{
19+
* \defgroup hal_critical_test Tests
20+
* Tests definitions of the HAL Critical module.
21+
* @{
1922
*/
2023

2124
#ifndef MBED_CRITICAL_SECTION_TEST_H
@@ -45,7 +48,7 @@
4548
template <int N>
4649
void test_critical_section();
4750

48-
51+
/**@}*/
4952
/**@}*/
5053

5154
#endif // MBED_CRITICAL_SECTION_TEST_H

TESTS/mbed_hal/qspi/qspi_test.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17-
/** \addtogroup hal_qspi_tests
17+
/** \addtogroup hal_qspi
1818
* @{
19+
* \defgroup hal_qspi_tests Tests
20+
* QSPI tests of the HAL.
21+
* @{
1922
*/
2023
#ifndef MBED_QSPI_TEST_H
2124
#define MBED_QSPI_TEST_H
@@ -96,3 +99,4 @@ void qspi_write_read_test(void);
9699
#endif
97100

98101
/** @}*/
102+
/** @}*/

TESTS/mbed_hal/sleep/sleep_test_utils.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
*/
1616

1717
/**
18-
* @addtogroup hal_sleep_test_utils
18+
* @addtogroup hal_sleep
1919
* @{
20+
* @defgroup hal_sleep_test_util Tests
21+
* Tests of the sleep HAL.
22+
* @{
2023
*/
2124

2225
#ifndef MBED_SLEEP_TEST_UTILS_H
@@ -112,3 +115,4 @@ void lp_ticker_isr(const ticker_data_t *const ticker_data)
112115
#endif
113116

114117
/** @}*/
118+
/** @}*/

components/wifi/esp8266-driver/ESP8266Interface.h

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -153,36 +153,12 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface
153153
*/
154154
using NetworkInterface::add_dns_server;
155155

156-
/** Set socket options
157-
*
158-
* The setsockopt allow an application to pass stack-specific hints
159-
* to the underlying stack. For unsupported options,
160-
* NSAPI_ERROR_UNSUPPORTED is returned and the socket is unmodified.
161-
*
162-
* @param handle Socket handle
163-
* @param level Stack-specific protocol level
164-
* @param optname Stack-specific option identifier
165-
* @param optval Option value
166-
* @param optlen Length of the option value
167-
* @return 0 on success, negative error code on failure
156+
/** @copydoc NetworkStack::setsockopt
168157
*/
169158
virtual nsapi_error_t setsockopt(nsapi_socket_t handle, int level,
170159
int optname, const void *optval, unsigned optlen);
171160

172-
/** Get socket options
173-
*
174-
* getsockopt allows an application to retrieve stack-specific options
175-
* from the underlying stack using stack-specific level and option names,
176-
* or to request generic options using levels from nsapi_socket_level_t.
177-
*
178-
* For unsupported options, NSAPI_ERROR_UNSUPPORTED is returned
179-
* and the socket is unmodified.
180-
*
181-
* @param level Stack-specific protocol level or nsapi_socket_level_t
182-
* @param optname Level-specific option name
183-
* @param optval Destination for option value
184-
* @param optlen Length of the option value
185-
* @return 0 on success, negative error code on failure
161+
/** @copydoc NetworkStack::getsockopt
186162
*/
187163
virtual nsapi_error_t getsockopt(nsapi_socket_t handle, int level, int optname,
188164
void *optval, unsigned *optlen);

doxyfile_options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ HIDE_UNDOC_CLASSES = YES
491491
# included in the documentation.
492492
# The default value is: NO.
493493

494-
HIDE_FRIEND_COMPOUNDS = NO
494+
HIDE_FRIEND_COMPOUNDS = YES
495495

496496
# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
497497
# documentation blocks found inside the body of a function. If set to NO, these

doxygen_options.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"HIDE_SCOPE_NAMES": "YES",
2828
"HIDE_UNDOC_CLASSES": "YES",
2929
"HIDE_UNDOC_MEMBERS": "YES",
30+
"HIDE_FRIEND_COMPOUNDS": "YES",
3031
"INLINE_INFO": "NO",
3132
"INLINE_INHERITED_MEMB": "YES",
3233
"JAVADOC_AUTOBRIEF": "YES",

drivers/MbedCRC.h

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class MbedCRC {
175175
*
176176
* CRC data if not available fully, CRC can be computed in parts with available data.
177177
*
178-
* In case of hardware, intermediate values and states are saved by hardware and mutex
178+
* In case of hardware, intermediate values and states are saved by hardware. Mutex
179179
* locking is used to serialize access to hardware CRC.
180180
*
181181
* In case of software CRC, previous CRC output should be passed as argument to the
@@ -217,7 +217,7 @@ class MbedCRC {
217217
return status;
218218
}
219219

220-
/** Compute partial start, indicate start of partial computation
220+
/** Compute partial start, indicate start of partial computation.
221221
*
222222
* This API should be called before performing any partial computation
223223
* with compute_partial API.
@@ -257,6 +257,7 @@ class MbedCRC {
257257
* This API is used to perform final computation to get correct CRC value.
258258
*
259259
* @param crc CRC result
260+
* @return 0 on success or a negative in case of failure.
260261
*/
261262
int32_t compute_partial_stop(uint32_t *crc)
262263
{
@@ -283,7 +284,7 @@ class MbedCRC {
283284
return 0;
284285
}
285286

286-
/** Get the current CRC polynomial
287+
/** Get the current CRC polynomial.
287288
*
288289
* @return Polynomial value
289290
*/
@@ -309,7 +310,7 @@ class MbedCRC {
309310
uint32_t *_crc_table;
310311
CrcMode _mode;
311312

312-
/** Acquire exclusive access to CRC hardware/software
313+
/** Acquire exclusive access to CRC hardware/software.
313314
*/
314315
void lock()
315316
{
@@ -320,7 +321,7 @@ class MbedCRC {
320321
#endif
321322
}
322323

323-
/** Release exclusive access to CRC hardware/software
324+
/** Release exclusive access to CRC hardware/software.
324325
*/
325326
virtual void unlock()
326327
{
@@ -331,7 +332,7 @@ class MbedCRC {
331332
#endif
332333
}
333334

334-
/** Get the current CRC data size
335+
/** Get the current CRC data size.
335336
*
336337
* @return CRC data size in bytes
337338
*/
@@ -340,7 +341,7 @@ class MbedCRC {
340341
return (width <= 8 ? 1 : (width <= 16 ? 2 : 4));
341342
}
342343

343-
/** Get the top bit of current CRC
344+
/** Get the top bit of current CRC.
344345
*
345346
* @return Top bit is set high for respective data width of current CRC
346347
* Top bit for CRC width less then 8 bits will be set as 8th bit.
@@ -350,7 +351,7 @@ class MbedCRC {
350351
return (width < 8 ? (1u << 7) : (uint32_t)(1ul << (width - 1)));
351352
}
352353

353-
/** Get the CRC data mask
354+
/** Get the CRC data mask.
354355
*
355356
* @return CRC data mask is generated based on current CRC width
356357
*/
@@ -359,7 +360,7 @@ class MbedCRC {
359360
return (width < 8 ? ((1u << 8) - 1) : (uint32_t)((uint64_t)(1ull << width) - 1));
360361
}
361362

362-
/** Final value of CRC is reflected
363+
/** Final value of CRC is reflected.
363364
*
364365
* @param data final crc value, which should be reflected
365366
* @return Reflected CRC value
@@ -382,7 +383,7 @@ class MbedCRC {
382383
}
383384
}
384385

385-
/** Data bytes are reflected
386+
/** Data bytes are reflected.
386387
*
387388
* @param data value to be reflected
388389
* @return Reflected data value
@@ -404,7 +405,7 @@ class MbedCRC {
404405
}
405406
}
406407

407-
/** Bitwise CRC computation
408+
/** Bitwise CRC computation.
408409
*
409410
* @param buffer data buffer
410411
* @param size size of the data
@@ -448,7 +449,7 @@ class MbedCRC {
448449
return 0;
449450
}
450451

451-
/** CRC computation using ROM tables
452+
/** CRC computation using ROM tables.
452453
*
453454
* @param buffer data buffer
454455
* @param size size of the data
@@ -493,7 +494,7 @@ class MbedCRC {
493494
return 0;
494495
}
495496

496-
/** Constructor init called from all specialized cases of constructor
497+
/** Constructor init called from all specialized cases of constructor.
497498
* Note: All construtor common code should be in this function.
498499
*/
499500
void mbed_crc_ctor(void)

0 commit comments

Comments
 (0)