diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-01 19:23:02 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-01 19:23:02 +0000 |
commit | 23c7476ac4f0ebfc7b09d9858149d9bf79f1122e (patch) | |
tree | 2480580f82d813952d9327846bdfbb0f688e4c7f /os/common/oslib/include | |
parent | cc61794d1a00a74f31c650522988a2f327b6cfab (diff) | |
download | ChibiOS-23c7476ac4f0ebfc7b09d9858149d9bf79f1122e.tar.gz ChibiOS-23c7476ac4f0ebfc7b09d9858149d9bf79f1122e.tar.bz2 ChibiOS-23c7476ac4f0ebfc7b09d9858149d9bf79f1122e.zip |
Changed my mind, modified types.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10742 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/oslib/include')
-rw-r--r-- | os/common/oslib/include/chheap.h | 2 | ||||
-rw-r--r-- | os/common/oslib/include/chmemcore.h | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/os/common/oslib/include/chheap.h b/os/common/oslib/include/chheap.h index 0447d546d..0b259a329 100644 --- a/os/common/oslib/include/chheap.h +++ b/os/common/oslib/include/chheap.h @@ -95,7 +95,7 @@ union heap_header { * @brief Structure describing a memory heap.
*/
struct memory_heap {
- memgetfunc_t provider; /**< @brief Memory blocks provider for
+ memgetfunc2_t provider; /**< @brief Memory blocks provider for
this heap. */
heap_header_t header; /**< @brief Free blocks list header. */
#if CH_CFG_USE_MUTEXES == TRUE
diff --git a/os/common/oslib/include/chmemcore.h b/os/common/oslib/include/chmemcore.h index 401e9b1a9..759cee78d 100644 --- a/os/common/oslib/include/chmemcore.h +++ b/os/common/oslib/include/chmemcore.h @@ -68,7 +68,12 @@ /**
* @brief Memory get function.
*/
-typedef void *(*memgetfunc_t)(size_t size, unsigned align, size_t offset);
+typedef void *(*memgetfunc_t)(size_t size, unsigned align);
+
+/**
+ * @brief Enhanced memory get function.
+ */
+typedef void *(*memgetfunc2_t)(size_t size, unsigned align, size_t offset);
/**
* @brief Type of memory core object.
|