@@ -55,17 +55,17 @@ namespace rtos {
55
55
template <typename T, uint32_t queue_sz>
56
56
class Mail : private mbed ::NonCopyable<Mail<T, queue_sz> > {
57
57
public:
58
- /* * Create and Initialise Mail queue.
58
+ /* * Create and Initialize Mail queue.
59
59
*
60
- * @note This function cannot be called from ISR context.
60
+ * @note You cannot call this function from ISR context.
61
61
*/
62
62
Mail () { };
63
63
64
64
/* * Check if the mail queue is empty
65
65
*
66
66
* @return True if the mail queue is empty, false if not
67
67
*
68
- * @note This function may be called from ISR context.
68
+ * @note You may call this function from ISR context.
69
69
*/
70
70
bool empty () const {
71
71
return _queue.empty ();
@@ -75,7 +75,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
75
75
*
76
76
* @return True if the mail queue is full, false if not
77
77
*
78
- * @note This function may be called from ISR context.
78
+ * @note You may call this function from ISR context.
79
79
*/
80
80
bool full () const {
81
81
return _queue.full ();
@@ -85,7 +85,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
85
85
@param millisec timeout value or 0 in case of no time-out. (default: 0).
86
86
@return pointer to memory block that can be filled with mail or NULL in case error.
87
87
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.
89
89
*/
90
90
T* alloc (uint32_t millisec=0 ) {
91
91
return _pool.alloc ();
@@ -95,7 +95,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
95
95
@param millisec timeout value or 0 in case of no time-out. (default: 0).
96
96
@return pointer to memory block that can be filled with mail or NULL in case error.
97
97
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.
99
99
*/
100
100
T* calloc (uint32_t millisec=0 ) {
101
101
return _pool.calloc ();
@@ -105,7 +105,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
105
105
@param mptr memory block previously allocated with Mail::alloc or Mail::calloc.
106
106
@return status code that indicates the execution status of the function.
107
107
108
- @note This function may be called from ISR context.
108
+ @note You may call this function from ISR context.
109
109
*/
110
110
osStatus put (T *mptr) {
111
111
return _queue.put (mptr);
@@ -115,7 +115,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
115
115
@param millisec timeout value or 0 in case of no time-out. (default: osWaitForever).
116
116
@return event that contains mail information or error code.
117
117
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.
119
119
*/
120
120
osEvent get (uint32_t millisec=osWaitForever) {
121
121
osEvent evt = _queue.get (millisec);
@@ -129,7 +129,7 @@ class Mail : private mbed::NonCopyable<Mail<T, queue_sz> > {
129
129
@param mptr pointer to the memory block that was obtained with Mail::get.
130
130
@return status code that indicates the execution status of the function.
131
131
132
- @note This function may be called from ISR context.
132
+ @note You may call this function from ISR context.
133
133
*/
134
134
osStatus free (T *mptr) {
135
135
return _pool.free (mptr);
0 commit comments