@@ -52,7 +52,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
52
52
public:
53
53
/* * Create and Initialize a memory pool.
54
54
*
55
- * @note This function cannot be called from ISR context.
55
+ * @note You cannot call this function from ISR context.
56
56
*/
57
57
MemoryPool () {
58
58
memset (_pool_mem, 0 , sizeof (_pool_mem));
@@ -68,7 +68,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
68
68
69
69
/* * Destroy a memory pool
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
~MemoryPool () {
74
74
osMemoryPoolDelete (_id);
@@ -77,7 +77,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
77
77
/* * Allocate a memory block of type T from a memory pool.
78
78
@return address of the allocated memory block or NULL in case of no memory available.
79
79
80
- @note This function may be called from ISR context.
80
+ @note You may call this function from ISR context.
81
81
*/
82
82
T* alloc (void ) {
83
83
return (T*)osMemoryPoolAlloc (_id, 0 );
@@ -86,7 +86,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
86
86
/* * Allocate a memory block of type T from a memory pool and set memory block to zero.
87
87
@return address of the allocated memory block or NULL in case of no memory available.
88
88
89
- @note This function may be called from ISR context.
89
+ @note You may call this function from ISR context.
90
90
*/
91
91
T* calloc (void ) {
92
92
T *item = (T*)osMemoryPoolAlloc (_id, 0 );
@@ -102,7 +102,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
102
102
is NULL or invalid, or osErrorResource if given memory block is in an
103
103
invalid memory pool state.
104
104
105
- @note This function may be called from ISR context.
105
+ @note You may call this function from ISR context.
106
106
*/
107
107
osStatus free (T *block) {
108
108
return osMemoryPoolFree (_id, (void *)block);
0 commit comments