Skip to content

Rollup PR: UK Docathon pt2 #8552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 78 commits into from
Oct 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
0fd0de6
Update the Mbed TLS README.md
simonbutcher Sep 26, 2018
fee476e
Update Mbed TLS README.md followng review
simonbutcher Oct 3, 2018
29f7d9d
NonCopyable: Prevent doc generation for protected member function.
pan- Oct 23, 2018
3fe42b6
NonCopyable: Rewrite of class documentation.
pan- Oct 23, 2018
0d2a8e0
NonCopyable: Add into platform doc group.
pan- Oct 23, 2018
c86ceb1
docs(api-condvar): Update documentation for the ConditionVariable API
Oct 23, 2018
482f2b6
spi doxygen fixes
paul-szczepanek-arm Oct 23, 2018
263f067
imperative
paul-szczepanek-arm Oct 23, 2018
acaf968
Copy edit NonCopyable.h
Oct 23, 2018
8ddfdf5
Copy edit ConditionVariable.h
Oct 23, 2018
394df12
MbedCRC doxygen fix
maciejbocianski Oct 24, 2018
abeab68
NonCopyable: Fix edit.
pan- Oct 24, 2018
68628c1
fix syntax err from misplaced ifdef
paul-szczepanek-arm Oct 24, 2018
d4b6fdc
SPI capitalisation
paul-szczepanek-arm Oct 24, 2018
efdcdd5
active voice
paul-szczepanek-arm Oct 24, 2018
85bd15c
Doxygen: Move free standing HAL tests module inside their related HAL…
pan- Oct 24, 2018
fd0612b
update internetsocket docs
paul-szczepanek-arm Oct 24, 2018
650d8dc
Improve Mbed TLS README.md
simonbutcher Oct 24, 2018
e095c78
PlatformMutex docs update
Oct 24, 2018
836a6fc
Doxygen: Hide friend declarations in dox.
pan- Oct 24, 2018
8a7d96c
doxy cleanup
paul-szczepanek-arm Oct 24, 2018
6cdda58
doxygen fixes
paul-szczepanek-arm Oct 24, 2018
5837e37
return codes
paul-szczepanek-arm Oct 24, 2018
e31337d
remove redundancy and maintainance overhead
paul-szczepanek-arm Oct 24, 2018
3929f56
missing doxy
paul-szczepanek-arm Oct 24, 2018
4f2645b
incorrect doc was copy pasted
paul-szczepanek-arm Oct 24, 2018
1131d84
Edit PlatformMutex.h
Oct 24, 2018
8c2bd40
editorial changes, passive to active, removing redundancy
Oct 25, 2018
de261a4
Update CellularBase.h
paul-szczepanek-arm Oct 25, 2018
5241c3b
Update WiFiInterface.h
paul-szczepanek-arm Oct 25, 2018
85b9b23
capitalisation
paul-szczepanek-arm Oct 25, 2018
889a98e
Update SPI.h
paul-szczepanek-arm Oct 25, 2018
5cc5e47
future to present tense
Oct 25, 2018
9539e41
Add warning about deviating from the template format
adbridge Oct 25, 2018
c8f9759
Adding punctuation
Oct 25, 2018
98e6d53
Capitalization, header level adjustment
Oct 25, 2018
d55bbf6
contributing: update the text
0xc0170 Oct 25, 2018
446ab5d
review fixes
paul-szczepanek-arm Oct 25, 2018
c02f216
Edit UDPSocket.h
Oct 25, 2018
fa09fff
Fix interleaved ifdefs with DEVICE_SPI_ASYNCH + DOXYGEN_ONLY
geky Oct 25, 2018
6db0f67
Edit InternetSocket.h
Oct 25, 2018
2554503
Edit issue_template.md
Oct 25, 2018
c3776a0
Edit CONTRIBUTING.md
Oct 25, 2018
8bf4981
Edit README.md
Oct 25, 2018
7e8a932
docs(api-queue): Update documentation for the Queue API
Oct 24, 2018
fbc5a38
Edit Queue.h
Oct 25, 2018
1b38b5a
fix docs in Mail
paul-szczepanek-arm Oct 24, 2018
f57d897
no doxygen guards needed for private
paul-szczepanek-arm Oct 24, 2018
5abe427
Edit Mail.h
Oct 25, 2018
c17d8ca
Merge branch 'fix_contributing_text' of ssh://github.com/0xc0170/mbed…
Oct 26, 2018
6eb2296
Merge branch 'master' of ssh://github.com/adbridge/mbed-os into rollup
Oct 26, 2018
e7f8382
Merge branch 'docs-queue-refactor' of ssh://github.com/scartmell-arm/…
Oct 26, 2018
05a69de
Merge branch 'docs-fix-udpsocket' of ssh://github.com/paul-szczepanek…
Oct 26, 2018
86dd0c2
Merge branch 'dox-hide-friends' of ssh://github.com/pan-/mbed into ro…
Oct 26, 2018
5da4fe7
Merge branch 'docs_update-platformmutex' of ssh://github.com/fkjagodz…
Oct 26, 2018
e021ec4
Merge branch 'docs-fix-internetsocket' of ssh://github.com/paul-szcze…
Oct 26, 2018
3a66d9d
Merge branch 'doc-fix-mail' of ssh://github.com/paul-szczepanek-arm/m…
Oct 26, 2018
ec9404a
Merge branch 'fix_doxygen_MBedCRC' of ssh://github.com/maciejbociansk…
Oct 26, 2018
fab0c3f
Merge branch 'docs-condition-variable-refactor' of ssh://github.com/s…
Oct 26, 2018
8cfdec1
Merge branch 'readme-update' of ssh://github.com/sbutcher-arm/mbed in…
Oct 26, 2018
a3be10a
Capitalizing IoT
Oct 26, 2018
782251a
Adding periods
Oct 26, 2018
fae81b6
One more missing period.
Oct 26, 2018
56bced4
Reformatting heading levels
Oct 26, 2018
495c875
...remainder of file... to [remainder of file]
Oct 26, 2018
6a1b260
True -> `true`, inserting article
Oct 26, 2018
96a6368
Adding missing punctuation.
Oct 26, 2018
0d128d1
Breaking behaviors into two sections
Oct 26, 2018
47adbd2
Minor streamlining of long sentences
Oct 26, 2018
25b1625
Sentence restructuring, punctuation
Oct 26, 2018
b165fc0
Articles and capitalization
Oct 26, 2018
ae75dfc
Capitalization, formatting of true and false, punctuation.
Oct 26, 2018
2bab24f
Commas
Oct 26, 2018
14ce8f2
Merge branch 'fix-freestanding-tests-module' of ssh://github.com/pan-…
Oct 26, 2018
b364dcb
Merge branch 'doc-fix-spi' of ssh://github.com/paul-szczepanek-arm/mb…
Oct 26, 2018
99e198a
Merge branch 'non-copyable-doc' of ssh://github.com/pan-/mbed into ro…
Oct 26, 2018
e872814
Merge branch 'docs-fix-networkiface' of ssh://github.com/paul-szczepa…
Oct 26, 2018
3da8618
Make variables that are private in ConditionVariable.h, protected
Oct 26, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<!--

************************************** WARNING **************************************

The ciarcom bot parses this header automatically. Any deviation from the
template may cause the bot to automatically correct this header or may result in a
warning message, requesting updates.

Please ensure that nothing follows the Issue request type section, all
issue details are within the Description section and no changes are made to the
template format (as detailed below).

*************************************************************************************

-->

### Description

<!--
Expand Down
46 changes: 3 additions & 43 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,5 @@
# Description
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.
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.
# Contributing to Mbed OS

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.
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.

## Where to get more information?
You can read more on our [documentation page](https://docs.mbed.com/docs/mbed-os-handbook/en/latest/cont/contributing/).

# How to contribute
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.

Before a pull request will be merged, the [mbed Contributor Agreement](http://developer.mbed.org/contributor_agreement/) must be signed.

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.

# Enhancements vs Bugs
Enhancements are:
* New features implementation.
* Code refactoring.
* Coding rules, coding styles improvements.
* Code comments improvement.
* Documentation work.

Bugs are:
* Issues rose internally or externally by [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os) users.
* Internally (within mbed team) created issues from Continuous Integration pipeline and build servers.
* Issues detected using automation tools such as compilers, sanitizers, static code analysis tools etc.

# Gate Keeper role
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.

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).

Please be patient, digest Gate Keeper's feedback and respond promptly :)

# mbed SDK porting
* For more information regarding mbed SDK porting please refer to [mbed SDK porting](http://developer.mbed.org/handbook/mbed-SDK-porting) handbook.
* 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.

# Glossary
* Gate Keeper – persons responsible for overall code-base quality of [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os) project.
* Enhancement – New feature deployment, code refactoring actions or existing code improvements.
* 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.
* Mbed classic – mbed SDK 2.0 located in GitHub at [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os).
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).
7 changes: 5 additions & 2 deletions TESTS/mbed_hal/critical_section/critical_section_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
* limitations under the License.
*/

/** \addtogroup hal_critical_tests
/** \addtogroup hal_critical
* @{
* \defgroup hal_critical_test Tests
* Tests definitions of the HAL Critical module.
* @{
*/

#ifndef MBED_CRITICAL_SECTION_TEST_H
Expand Down Expand Up @@ -45,7 +48,7 @@
template <int N>
void test_critical_section();


/**@}*/
/**@}*/

#endif // MBED_CRITICAL_SECTION_TEST_H
6 changes: 5 additions & 1 deletion TESTS/mbed_hal/qspi/qspi_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
* limitations under the License.
*/

/** \addtogroup hal_qspi_tests
/** \addtogroup hal_qspi
* @{
* \defgroup hal_qspi_tests Tests
* QSPI tests of the HAL.
* @{
*/
#ifndef MBED_QSPI_TEST_H
#define MBED_QSPI_TEST_H
Expand Down Expand Up @@ -96,3 +99,4 @@ void qspi_write_read_test(void);
#endif

/** @}*/
/** @}*/
6 changes: 5 additions & 1 deletion TESTS/mbed_hal/sleep/sleep_test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
*/

/**
* @addtogroup hal_sleep_test_utils
* @addtogroup hal_sleep
* @{
* @defgroup hal_sleep_test_util Tests
* Tests of the sleep HAL.
* @{
*/

#ifndef MBED_SLEEP_TEST_UTILS_H
Expand Down Expand Up @@ -112,3 +115,4 @@ void lp_ticker_isr(const ticker_data_t *const ticker_data)
#endif

/** @}*/
/** @}*/
28 changes: 2 additions & 26 deletions components/wifi/esp8266-driver/ESP8266Interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,36 +153,12 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface
*/
using NetworkInterface::add_dns_server;

/** Set socket options
*
* The setsockopt allow an application to pass stack-specific hints
* to the underlying stack. For unsupported options,
* NSAPI_ERROR_UNSUPPORTED is returned and the socket is unmodified.
*
* @param handle Socket handle
* @param level Stack-specific protocol level
* @param optname Stack-specific option identifier
* @param optval Option value
* @param optlen Length of the option value
* @return 0 on success, negative error code on failure
/** @copydoc NetworkStack::setsockopt
*/
virtual nsapi_error_t setsockopt(nsapi_socket_t handle, int level,
int optname, const void *optval, unsigned optlen);

/** Get socket options
*
* getsockopt allows an application to retrieve stack-specific options
* from the underlying stack using stack-specific level and option names,
* or to request generic options using levels from nsapi_socket_level_t.
*
* For unsupported options, NSAPI_ERROR_UNSUPPORTED is returned
* and the socket is unmodified.
*
* @param level Stack-specific protocol level or nsapi_socket_level_t
* @param optname Level-specific option name
* @param optval Destination for option value
* @param optlen Length of the option value
* @return 0 on success, negative error code on failure
/** @copydoc NetworkStack::getsockopt
*/
virtual nsapi_error_t getsockopt(nsapi_socket_t handle, int level, int optname,
void *optval, unsigned *optlen);
Expand Down
2 changes: 1 addition & 1 deletion doxyfile_options
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ HIDE_UNDOC_CLASSES = YES
# included in the documentation.
# The default value is: NO.

HIDE_FRIEND_COMPOUNDS = NO
HIDE_FRIEND_COMPOUNDS = YES

# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
# documentation blocks found inside the body of a function. If set to NO, these
Expand Down
1 change: 1 addition & 0 deletions doxygen_options.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"HIDE_SCOPE_NAMES": "YES",
"HIDE_UNDOC_CLASSES": "YES",
"HIDE_UNDOC_MEMBERS": "YES",
"HIDE_FRIEND_COMPOUNDS": "YES",
"INLINE_INFO": "NO",
"INLINE_INHERITED_MEMB": "YES",
"JAVADOC_AUTOBRIEF": "YES",
Expand Down
27 changes: 14 additions & 13 deletions drivers/MbedCRC.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class MbedCRC {
*
* CRC data if not available fully, CRC can be computed in parts with available data.
*
* In case of hardware, intermediate values and states are saved by hardware and mutex
* In case of hardware, intermediate values and states are saved by hardware. Mutex
* locking is used to serialize access to hardware CRC.
*
* In case of software CRC, previous CRC output should be passed as argument to the
Expand Down Expand Up @@ -217,7 +217,7 @@ class MbedCRC {
return status;
}

/** Compute partial start, indicate start of partial computation
/** Compute partial start, indicate start of partial computation.
*
* This API should be called before performing any partial computation
* with compute_partial API.
Expand Down Expand Up @@ -257,6 +257,7 @@ class MbedCRC {
* This API is used to perform final computation to get correct CRC value.
*
* @param crc CRC result
* @return 0 on success or a negative in case of failure.
*/
int32_t compute_partial_stop(uint32_t *crc)
{
Expand All @@ -283,7 +284,7 @@ class MbedCRC {
return 0;
}

/** Get the current CRC polynomial
/** Get the current CRC polynomial.
*
* @return Polynomial value
*/
Expand All @@ -309,7 +310,7 @@ class MbedCRC {
uint32_t *_crc_table;
CrcMode _mode;

/** Acquire exclusive access to CRC hardware/software
/** Acquire exclusive access to CRC hardware/software.
*/
void lock()
{
Expand All @@ -320,7 +321,7 @@ class MbedCRC {
#endif
}

/** Release exclusive access to CRC hardware/software
/** Release exclusive access to CRC hardware/software.
*/
virtual void unlock()
{
Expand All @@ -331,7 +332,7 @@ class MbedCRC {
#endif
}

/** Get the current CRC data size
/** Get the current CRC data size.
*
* @return CRC data size in bytes
*/
Expand All @@ -340,7 +341,7 @@ class MbedCRC {
return (width <= 8 ? 1 : (width <= 16 ? 2 : 4));
}

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

/** Get the CRC data mask
/** Get the CRC data mask.
*
* @return CRC data mask is generated based on current CRC width
*/
Expand All @@ -359,7 +360,7 @@ class MbedCRC {
return (width < 8 ? ((1u << 8) - 1) : (uint32_t)((uint64_t)(1ull << width) - 1));
}

/** Final value of CRC is reflected
/** Final value of CRC is reflected.
*
* @param data final crc value, which should be reflected
* @return Reflected CRC value
Expand All @@ -382,7 +383,7 @@ class MbedCRC {
}
}

/** Data bytes are reflected
/** Data bytes are reflected.
*
* @param data value to be reflected
* @return Reflected data value
Expand All @@ -404,7 +405,7 @@ class MbedCRC {
}
}

/** Bitwise CRC computation
/** Bitwise CRC computation.
*
* @param buffer data buffer
* @param size size of the data
Expand Down Expand Up @@ -448,7 +449,7 @@ class MbedCRC {
return 0;
}

/** CRC computation using ROM tables
/** CRC computation using ROM tables.
*
* @param buffer data buffer
* @param size size of the data
Expand Down Expand Up @@ -493,7 +494,7 @@ class MbedCRC {
return 0;
}

/** Constructor init called from all specialized cases of constructor
/** Constructor init called from all specialized cases of constructor.
* Note: All construtor common code should be in this function.
*/
void mbed_crc_ctor(void)
Expand Down
Loading