Make error codes looks like literals in the code of them (easy for searching). Minor fixes, typos

This commit is contained in:
Anton Maklakov
2017-11-06 18:22:45 +08:00
committed by Angus Gratton
parent 3d89c8ba74
commit 046ff2e628
4 changed files with 6 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ void *heap_caps_malloc(size_t size, uint32_t caps);
void heap_caps_free( void *ptr);
/**
* @brief Reallocate memory previously allocated via heap_caps_malloc() or heaps_caps_realloc().
* @brief Reallocate memory previously allocated via heap_caps_malloc() or heap_caps_realloc().
*
* Equivalent semantics to libc realloc(), for capability-aware memory.
*
@@ -90,7 +90,7 @@ void *heap_caps_realloc( void *ptr, size_t size, int caps);
*
* Equivalent semantics to libc calloc(), for capability-aware memory.
*
* In IDF, ``calloc(p)`` is equivalent to ``heaps_caps_calloc(p, MALLOC_CAP_8BIT)``.
* In IDF, ``calloc(p)`` is equivalent to ``heap_caps_calloc(p, MALLOC_CAP_8BIT)``.
*
* @param n Number of continuing chunks of memory to allocate
* @param size Size, in bytes, of a chunk of memory to allocate