Skip to content

Commit d4b3da6

Browse files
author
Amanda Butler
authored
Copy edit Mail.h
Copy edit file for active voice and American English.
1 parent 30b8da9 commit d4b3da6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

rtos/Mail.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ namespace rtos {
5555
template<typename T, uint32_t queue_sz>
5656
class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
5757
public:
58-
/** Create and Initialise Mail queue.
58+
/** Create and Initialize Mail queue.
5959
*
60-
* @note This function cannot be called from ISR context.
60+
* @note You cannot call this function from ISR context.
6161
*/
6262
Mail() { };
6363

6464
/** Check if the mail queue is empty
6565
*
6666
* @return True if the mail queue is empty, false if not
6767
*
68-
* @note This function may be called from ISR context.
68+
* @note You may call this function from ISR context.
6969
*/
7070
bool empty() const {
7171
return _queue.empty();
@@ -75,7 +75,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
7575
*
7676
* @return True if the mail queue is full, false if not
7777
*
78-
* @note This function may be called from ISR context.
78+
* @note You may call this function from ISR context.
7979
*/
8080
bool full() const {
8181
return _queue.full();
@@ -85,7 +85,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
8585
@param millisec timeout value or 0 in case of no time-out. (default: 0).
8686
@return pointer to memory block that can be filled with mail or NULL in case error.
8787
88-
@note This function may be called from ISR context if the millisec parameter is set to 0.
88+
@note You may call this function from ISR context if the millisec parameter is set to 0.
8989
*/
9090
T* alloc(uint32_t millisec=0) {
9191
return _pool.alloc();
@@ -95,7 +95,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
9595
@param millisec timeout value or 0 in case of no time-out. (default: 0).
9696
@return pointer to memory block that can be filled with mail or NULL in case error.
9797
98-
@note This function may be called from ISR context if the millisec parameter is set to 0.
98+
@note You may call this function from ISR context if the millisec parameter is set to 0.
9999
*/
100100
T* calloc(uint32_t millisec=0) {
101101
return _pool.calloc();
@@ -105,7 +105,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
105105
@param mptr memory block previously allocated with Mail::alloc or Mail::calloc.
106106
@return status code that indicates the execution status of the function.
107107
108-
@note This function may be called from ISR context.
108+
@note You may call this function from ISR context.
109109
*/
110110
osStatus put(T *mptr) {
111111
return _queue.put(mptr);
@@ -115,7 +115,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
115115
@param millisec timeout value or 0 in case of no time-out. (default: osWaitForever).
116116
@return event that contains mail information or error code.
117117
118-
@note This function may be called from ISR context if the millisec parameter is set to 0.
118+
@note You may call this function from ISR context if the millisec parameter is set to 0.
119119
*/
120120
osEvent get(uint32_t millisec=osWaitForever) {
121121
osEvent evt = _queue.get(millisec);
@@ -129,7 +129,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
129129
@param mptr pointer to the memory block that was obtained with Mail::get.
130130
@return status code that indicates the execution status of the function.
131131
132-
@note This function may be called from ISR context.
132+
@note You may call this function from ISR context.
133133
*/
134134
osStatus free(T *mptr) {
135135
return _pool.free(mptr);

0 commit comments

Comments
 (0)