Skip to content

Commit 3621536

Browse files
author
Amanda Butler
authored
Copy edit Semaphore.h
Copy edit file for active voice.
1 parent c3b6c4d commit 3621536

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rtos/Semaphore.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ class Semaphore : private mbed::NonCopyable<Semaphore> {
4747
/** Create and Initialize a Semaphore object used for managing resources.
4848
@param count number of available resources; maximum index value is (count-1). (default: 0).
4949
50-
@note This function cannot be called from ISR context.
50+
@note You cannot call this function from ISR context.
5151
*/
5252
Semaphore(int32_t count=0);
5353

5454
/** Create and Initialize a Semaphore object used for managing resources.
5555
@param count number of available resources
5656
@param max_count maximum number of available resources
5757
58-
@note This function cannot be called from ISR context.
58+
@note You cannot call this function from ISR context.
5959
*/
6060
Semaphore(int32_t count, uint16_t max_count);
6161

6262
/** Wait until a Semaphore resource becomes available.
6363
@param millisec timeout value or 0 in case of no time-out. (default: osWaitForever).
6464
@return number of available tokens, before taking one; or -1 in case of incorrect parameters
6565
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.
6767
*/
6868
int32_t wait(uint32_t millisec=osWaitForever);
6969

@@ -73,13 +73,13 @@ class Semaphore : private mbed::NonCopyable<Semaphore> {
7373
@a osErrorResource the maximum token count has been reached.
7474
@a osErrorParameter internal error.
7575
76-
@note This function may be called from ISR context.
76+
@note You may call this function from ISR context.
7777
*/
7878
osStatus release(void);
7979

8080
/** Semaphore destructor
8181
*
82-
* @note This function cannot be called from ISR context.
82+
* @note You cannot call this function from ISR context.
8383
*/
8484
~Semaphore();
8585

0 commit comments

Comments
 (0)