@@ -47,23 +47,23 @@ class Semaphore : private mbed::NonCopyable<Semaphore> {
47
47
/* * Create and Initialize a Semaphore object used for managing resources.
48
48
@param count number of available resources; maximum index value is (count-1). (default: 0).
49
49
50
- @note This function cannot be called from ISR context.
50
+ @note You cannot call this function from ISR context.
51
51
*/
52
52
Semaphore (int32_t count=0 );
53
53
54
54
/* * Create and Initialize a Semaphore object used for managing resources.
55
55
@param count number of available resources
56
56
@param max_count maximum number of available resources
57
57
58
- @note This function cannot be called from ISR context.
58
+ @note You cannot call this function from ISR context.
59
59
*/
60
60
Semaphore (int32_t count, uint16_t max_count);
61
61
62
62
/* * Wait until a Semaphore resource becomes available.
63
63
@param millisec timeout value or 0 in case of no time-out. (default: osWaitForever).
64
64
@return number of available tokens, before taking one; or -1 in case of incorrect parameters
65
65
66
- @note This function may be called from ISR context if the millisec parameter is set to 0.
66
+ @note You may call this function from ISR context if the millisec parameter is set to 0.
67
67
*/
68
68
int32_t wait (uint32_t millisec=osWaitForever);
69
69
@@ -73,13 +73,13 @@ class Semaphore : private mbed::NonCopyable<Semaphore> {
73
73
@a osErrorResource the maximum token count has been reached.
74
74
@a osErrorParameter internal error.
75
75
76
- @note This function may be called from ISR context.
76
+ @note You may call this function from ISR context.
77
77
*/
78
78
osStatus release (void );
79
79
80
80
/* * Semaphore destructor
81
81
*
82
- * @note This function cannot be called from ISR context.
82
+ * @note You cannot call this function from ISR context.
83
83
*/
84
84
~Semaphore ();
85
85
0 commit comments