@@ -54,7 +54,7 @@ class Queue : private mbed::NonCopyable<Queue<T, queue_sz> > {
54
54
public:
55
55
/* * Create and initialize a message Queue.
56
56
*
57
- * @note This function cannot be called from ISR context.
57
+ * @note You cannot call this function from ISR context.
58
58
*/
59
59
Queue () {
60
60
memset (&_obj_mem, 0 , sizeof (_obj_mem));
@@ -68,7 +68,7 @@ class Queue : private mbed::NonCopyable<Queue<T, queue_sz> > {
68
68
}
69
69
/* * Queue destructor
70
70
*
71
- * @note This function cannot be called from ISR context.
71
+ * @note You cannot call this function from ISR context.
72
72
*/
73
73
~Queue () {
74
74
osMessageQueueDelete (_id);
@@ -78,7 +78,7 @@ class Queue : private mbed::NonCopyable<Queue<T, queue_sz> > {
78
78
*
79
79
* @return True if the queue is empty, false if not
80
80
*
81
- * @note This function may be called from ISR context.
81
+ * @note You may call this function from ISR context.
82
82
*/
83
83
bool empty () const {
84
84
return osMessageQueueGetCount (_id) == 0 ;
@@ -88,7 +88,7 @@ class Queue : private mbed::NonCopyable<Queue<T, queue_sz> > {
88
88
*
89
89
* @return True if the queue is full, false if not
90
90
*
91
- * @note This function may be called from ISR context.
91
+ * @note You may call this function from ISR context.
92
92
*/
93
93
bool full () const {
94
94
return osMessageQueueGetSpace (_id) == 0 ;
@@ -104,7 +104,7 @@ class Queue : private mbed::NonCopyable<Queue<T, queue_sz> > {
104
104
@a osErrorResource not enough space in the queue.
105
105
@a osErrorParameter internal error or non-zero timeout specified in an ISR.
106
106
107
- @note This function may be called from ISR context if the millisec parameter is set to 0.
107
+ @note You may call this function from ISR context if the millisec parameter is set to 0.
108
108
*/
109
109
osStatus put (T* data, uint32_t millisec=0 , uint8_t prio=0 ) {
110
110
return osMessageQueuePut (_id, &data, prio, millisec);
@@ -119,7 +119,7 @@ class Queue : private mbed::NonCopyable<Queue<T, queue_sz> > {
119
119
@a osEventTimeout no message has arrived during the given timeout period.
120
120
@a osErrorParameter a parameter is invalid or outside of a permitted range.
121
121
122
- @note This function may be called from ISR context if the millisec parameter is set to 0.
122
+ @note You may call this function from ISR context if the millisec parameter is set to 0.
123
123
*/
124
124
osEvent get (uint32_t millisec=osWaitForever) {
125
125
osEvent event;
0 commit comments