Skip to content
1 change: 1 addition & 0 deletions doxyfile_options
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ EXCLUDE_PATTERNS = */tools/* \
*/features/lwipstack/* \
*/features/nanostack/sal-stack-nanostack/* \
*/features/nanostack/coap-service/* \
*/features/netsocket/emac-drivers/* \
*/mbed-trace/* \
*/mbed-coap/* \
*/nanostack-libservice/* \
Expand Down
96 changes: 48 additions & 48 deletions events/Event.h

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions events/EventQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
*
* When called with a finite timeout, the dispatch function is guaranteed
* to terminate. When called with a timeout of 0, the dispatch function
* does not wait and is irq safe.
* does not wait and is IRQ safe.
*
* @param ms Time to wait for events in milliseconds, a negative
* value will dispatch events indefinitely
Expand Down Expand Up @@ -119,7 +119,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
*
* id must be valid i.e. event must have not finished executing.
*
* The cancel function is irq safe.
* The cancel function is IRQ safe.
*
* If called while the event queue's dispatch loop is active, the cancel
* function does not guarantee that the event will not execute after it
Expand All @@ -136,7 +136,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
*
* id must be valid i.e. event must have not finished executing.
*
* This function is irq safe.
* This function is IRQ safe.
*
* @param id Unique id of the event
*
Expand Down Expand Up @@ -191,8 +191,8 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
* The specified callback will be executed in the context of the event
* queue's dispatch loop.
*
* The call function is irq safe and can act as a mechanism for moving
* events out of irq contexts.
* The call function is IRQ safe and can act as a mechanism for moving
* events out of IRQ contexts.
*
* @param f Function to execute in the context of the dispatch loop
* @param args Arguments to pass to the callback
Expand Down Expand Up @@ -892,8 +892,8 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
* The specified callback will be executed in the context of the event
* queue's dispatch loop.
*
* The call_in function is irq safe and can act as a mechanism for moving
* events out of irq contexts.
* The call_in function is IRQ safe and can act as a mechanism for moving
* events out of IRQ contexts.
*
* @param ms Time to delay in milliseconds
* @param f Function to execute in the context of the dispatch loop
Expand Down Expand Up @@ -1199,8 +1199,8 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
* The specified callback will be executed in the context of the event
* queue's dispatch loop.
*
* The call_every function is irq safe and can act as a mechanism for
* moving events out of irq contexts.
* The call_every function is IRQ safe and can act as a mechanism for
* moving events out of IRQ contexts.
*
* @param f Function to execute in the context of the dispatch loop
* @param ms Period of the event in milliseconds
Expand Down
6 changes: 3 additions & 3 deletions events/mbed_shared_queues.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ namespace mbed {
* If an RTOS is not present or the configuration option
* `events.shared-dispatch-from-application` is set to true, then this
* does not create a dedicated dispatch thread - instead the application is
* expected to run the EventQueue's dispatch, eg from main. This is necessary
* for the event loop to work without an RTOS, or an RTOS system can can save
* memory by reusing the main stack.
* expected to run the EventQueue's dispatch, for example from main. This is
* necessary for the event loop to work without an RTOS, or an RTOS system can
* save memory by reusing the main stack.
*
* @note
* mbed_event_queue is not itself IRQ safe. To use the mbed_event_queue in
Expand Down
5 changes: 3 additions & 2 deletions features/netsocket/NetworkInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class EMACInterface;

/** Common interface that is shared between network devices.
*
* @addtogroup netsocket
* @\addtogroup netsocket
* @{
*/
class NetworkInterface: public DNS {
public:
Expand Down Expand Up @@ -331,5 +332,5 @@ class NetworkInterface: public DNS {
#endif //!defined(DOXYGEN_ONLY)
};


/** @}*/
#endif
2 changes: 1 addition & 1 deletion platform/CallChain.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class CallChain : private NonCopyable<CallChain> {
* @param method pointer to the member function to be called
*
* @returns
* The function object created for 'tptr' and 'mptr'
* The function object created for the object and method pointers
*
* @deprecated
* The add_front function does not support cv-qualifiers. Replaced by
Expand Down
2 changes: 1 addition & 1 deletion platform/SharedPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace mbed {
/** Shared pointer class.
*
* A shared pointer is a "smart" pointer that retains ownership of an object using
* reference counting accross all smart pointers referencing that object.
* reference counting across all smart pointers referencing that object.
*
* @code
* #include "platform/SharedPtr.h"
Expand Down
32 changes: 16 additions & 16 deletions platform/mbed_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,24 +86,24 @@ extern "C" {
\endverbatim
*
* The error status value range for each error type is as follows:\n
* Posix Error Status-es - 0xFFFFFFFF to 0xFFFFFF01(-1 -255) - This corresponds to Posix error codes represented as negative.\n
* POSIX Error Status-es - 0xFFFFFFFF to 0xFFFFFF01(-1 -255) - This corresponds to POSIX error codes represented as negative.\n
* System Error Status-es - 0x80XX0100 to 0x80XX0FFF - This corresponds to System error codes range(all values are negative). Bits 23-16 will be module type(marked with XX)\n
* Custom Error Status-es - 0xA0XX1000 to 0xA0XXFFFF - This corresponds to Custom error codes range(all values are negative). Bits 23-16 will be module type(marked with XX)\n\n
*
* The ERROR CODE(values encoded into ERROR CODE bit-field in mbed_error_status_t) value range for each error type is also separated as below:\n
* Posix Error Codes - 1 to 255.\n
* POSIX Error Codes - 1 to 255.\n
* System Error Codes - 256 to 4095.\n
* Custom Error Codes - 4096 to 65535.\n
*
* @note Posix error codes are always encoded as negative of their actual value. For example, EPERM is encoded as -EPERM.
* And, the MODULE TYPE for Posix error codes are always encoded as MBED_MODULE_UNKNOWN.\n
* This is to enable easy injection of Posix error codes into MbedOS error handling system without altering the actual Posix error values.\n
* Accordingly, Posix error codes are represented as -1 to -255 under MbedOS error status representation.
* @note POSIX error codes are always encoded as negative of their actual value. For example, EPERM is encoded as -EPERM.
* And, the MODULE TYPE for POSIX error codes are always encoded as MBED_MODULE_UNKNOWN.\n
* This is to enable easy injection of POSIX error codes into MbedOS error handling system without altering the actual POSIX error values.\n
* Accordingly, POSIX error codes are represented as -1 to -255 under MbedOS error status representation.
*/
typedef int mbed_error_status_t;

/**
* Macro for defining a Posix error status. This macro is mainly used to define Posix error values in mbed_error_code_t enumeration.
* Macro for defining a POSIX error status. This macro is mainly used to define POSIX error values in mbed_error_code_t enumeration.
* @param error_name Name of the error without the ERROR_ prefix
* @param error_code Error code value to be used, must be between 1 and 255(inclusive).
*
Expand Down Expand Up @@ -201,7 +201,7 @@ typedef int mbed_error_status_t;
* See mbed_error_status_t description for more info.\n
* MBED_ERROR_TYPE_SYSTEM - Used to indicate that the error status is of System defined Error type.\n
* MBED_ERROR_TYPE_CUSTOM - Used to indicate that the error status is of Custom defined Error type.\n
* MBED_ERROR_TYPE_POSIX - Used to indicate that the error status is of Posix error type.\n
* MBED_ERROR_TYPE_POSIX - Used to indicate that the error status is of POSIX error type.\n
*
*/
typedef enum _mbed_error_type_t {
Expand Down Expand Up @@ -301,23 +301,23 @@ typedef enum _mbed_module_type {
/** mbed_error_code_t definition
*
* mbed_error_code_t enumeration defines the Error codes and Error status values for MBED_MODULE_UNKNOWN.\n
* It defines all of Posix Error Codes/Statuses and Mbed System Error Codes/Statuses.\n\n
* It defines all of POSIX Error Codes/Statuses and Mbed System Error Codes/Statuses.\n\n
*
* @note
* Posix Error codes are defined using the macro MBED_DEFINE_POSIX_ERROR\n
* POSIX Error codes are defined using the macro MBED_DEFINE_POSIX_ERROR\n
* For example MBED_DEFINE_POSIX_ERROR( EPERM, EPERM ). This effectively defines the following values:\n
* ERROR_CODE_EPERM = EPERM\n
* ERROR_EPERM = -EPERM\n
*
* Posix Error codes are defined using the macro MBED_DEFINE_POSIX_ERROR\n
* POSIX Error codes are defined using the macro MBED_DEFINE_POSIX_ERROR\n
* For example MBED_DEFINE_POSIX_ERROR( EPERM, EPERM ). This macro defines the following values:\n
* ERROR_CODE_EPERM = MBED_POSIX_ERROR_BASE+EPERM\n
* ERROR_EPERM = -(MBED_POSIX_ERROR_BASE+EPERM)\n
* Its effectively equivalent to:\n
* ERROR_CODE_EPERM = 1\n
* ERROR_EPERM = -1\n
* All Posix error codes currently supported by MbedOS(defined in mbed_retarget.h) are defined using the MBED_DEFINE_POSIX_ERROR macro.\n\n
* Below are the Posic error codes and the description:\n
* All POSIX error codes currently supported by MbedOS(defined in mbed_retarget.h) are defined using the MBED_DEFINE_POSIX_ERROR macro.\n\n
* Below are the POSIX error codes and the description:\n
* \verbatim
EPERM 1 Operation not permitted
ENOENT 2 No such file or directory
Expand Down Expand Up @@ -546,9 +546,9 @@ typedef enum _mbed_module_type {
*
* @note
* **Using error codes:** \n
* Posix error codes may be used in modules/functions currently using Posix error codes and switching them to Mbed-OS error codes
* POSIX error codes may be used in modules/functions currently using POSIX error codes and switching them to Mbed-OS error codes
* may cause interoperability issues. For example, some of the filesystem, network stack implementations may need to use
* Posix error codes in order to keep them compatible with other modules interfacing with them, and may continue to use Posix error codes.
* POSIX error codes in order to keep them compatible with other modules interfacing with them, and may continue to use POSIX error codes.
*
* In all other cases, like for any native development of Mbed-OS modules Mbed-OS error codes should be used.
* This makes it easy to use Mbed-OS error reporting/logging infrastructure and makes debugging error scenarios
Expand Down Expand Up @@ -576,7 +576,7 @@ typedef enum _mbed_module_type {

typedef enum _mbed_error_code {
//Below are POSIX ERROR CODE definitions, which starts at MBED_POSIX_ERROR_BASE(=0)
//POSIX ERROR CODE definitions starts at offset 0(MBED_POSIX_ERROR_BASE) to align them with actual Posix Error Code
//POSIX ERROR CODE definitions starts at offset 0(MBED_POSIX_ERROR_BASE) to align them with actual POSIX Error Code
//defintions in mbed_retarget.h
// Error Name Error Code
MBED_DEFINE_POSIX_ERROR(EPERM, EPERM), /* 1 Operation not permitted */
Expand Down
6 changes: 3 additions & 3 deletions platform/mbed_mem_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ void mbed_mem_trace_set_callback(mbed_mem_trace_cb_t cb);
void mbed_mem_trace_disable();

/**
* Renable the memory trace output with the cb in use when disable was called
* Re-enable the memory trace output with the cb in use when disable was called
*/
void mbed_mem_trace_enable();

/**
* Trace lock.
* @note Locking prevent recursive tracing of malloc/free inside relloc/calloc
* @note Locking prevent recursive tracing of malloc/free inside realloc/calloc
*/
void mbed_mem_trace_lock();

Expand Down Expand Up @@ -141,7 +141,7 @@ void mbed_mem_trace_free(void *ptr, void *caller);
*
* @param op identifies the memory operation ('m' for 'malloc', 'r' for 'realloc',
* 'c' for 'calloc' and 'f' for 'free').
* @param res (base 16) is the result of the memor operation. This is always NULL
* @param res (base 16) is the result of the memory operation. This is always NULL
* for 'free', since 'free' doesn't return anything.
* @param caller (base 16) is the caller of the memory operation. Note that the value
* of 'caller' might be unreliable.
Expand Down
2 changes: 1 addition & 1 deletion platform/mbed_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ typedef struct {
uint32_t thread_id; /**< Identifier for the thread that owns the stack or 0 if representing accumulated statistics */
uint32_t max_size; /**< Maximum number of bytes used on the stack since the thread was started */
uint32_t reserved_size; /**< Current number of bytes reserved for the stack */
uint32_t stack_cnt; /**< The number of stacks represented in the accumulated statistics or 1 if repesenting a single stack */
uint32_t stack_cnt; /**< The number of stacks represented in the accumulated statistics or 1 if representing a single stack */
} mbed_stats_stack_t;

/**
Expand Down
4 changes: 2 additions & 2 deletions platform/mbed_toolchain.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@

/** MBED_UNREACHABLE
* An unreachable statement. If the statement is reached,
* behaviour is undefined. Useful in situations where the compiler
* cannot deduce the unreachability of code.
* behavior is undefined. Useful in situations where the compiler
* cannot deduce if the code is unreachable.
*
* @code
* #include "mbed_toolchain.h"
Expand Down
2 changes: 1 addition & 1 deletion rtos/Queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace rtos {
*/

/** The Queue class represents a collection of objects that are stored first by
* order of priorty, and then in first-in, first-out (FIFO) order.
* order of priority, and then in first-in, first-out (FIFO) order.
*
* You can use a queue when you need to store data and then access it in the same
* order that it has been stored. The order in which you retrieve the data is in
Expand Down
6 changes: 3 additions & 3 deletions rtos/RtosTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class RtosTimer : private mbed::NonCopyable<RtosTimer> {
public:
/** Create timer.
@param func function to be executed by this timer.
@param type osTimerOnce for one-shot or osTimerPeriodic for periodic behaviour. (default: osTimerPeriodic)
@param type osTimerOnce for one-shot or osTimerPeriodic for periodic behavior. (default: osTimerPeriodic)
@param argument argument to the timer call back function. (default: NULL)
@deprecated Replaced with RtosTimer(Callback<void()>, os_timer_type)
@deprecated
Expand All @@ -107,7 +107,7 @@ class RtosTimer : private mbed::NonCopyable<RtosTimer> {

/** Create timer.
@param func function to be executed by this timer.
@param type osTimerOnce for one-shot or osTimerPeriodic for periodic behaviour. (default: osTimerPeriodic)
@param type osTimerOnce for one-shot or osTimerPeriodic for periodic behavior. (default: osTimerPeriodic)
@deprecated
The RtosTimer has been superseded by the EventQueue. See RtosTimer.h for more details

Expand All @@ -123,7 +123,7 @@ class RtosTimer : private mbed::NonCopyable<RtosTimer> {
/** Create timer.
@param obj pointer to the object to call the member function on.
@param method member function to be executed by this timer.
@param type osTimerOnce for one-shot or osTimerPeriodic for periodic behaviour. (default: osTimerPeriodic)
@param type osTimerOnce for one-shot or osTimerPeriodic for periodic behavior. (default: osTimerPeriodic)
@deprecated
The RtosTimer constructor does not support cv-qualifiers. Replaced by
RtosTimer(callback(obj, method), os_timer_type).
Expand Down