mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-20 21:29:42 +08:00
add alignment memory allocation.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1928 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
+3
-3
@@ -30,9 +30,9 @@ extern "C" {
|
||||
*/
|
||||
/*@{*/
|
||||
|
||||
/* RT-Thread version information */
|
||||
/* RT-Thread version information */
|
||||
#define RT_VERSION 1L /**< major version number */
|
||||
#define RT_SUBVERSION 0L /**< minor version number */
|
||||
#define RT_SUBVERSION 1L /**< minor version number */
|
||||
#define RT_REVISION 0L /**< revise version number */
|
||||
|
||||
/* RT-Thread basic data type definitions */
|
||||
@@ -334,7 +334,7 @@ typedef struct rt_timer *rt_timer_t;
|
||||
/**
|
||||
* thread control command definitions
|
||||
*/
|
||||
#define RT_THREAD_CTRL_STARTUP 0x00 /**< Starup thread. */
|
||||
#define RT_THREAD_CTRL_STARTUP 0x00 /**< Startup thread. */
|
||||
#define RT_THREAD_CTRL_CLOSE 0x01 /**< Close thread. */
|
||||
#define RT_THREAD_CTRL_CHANGE_PRIORITY 0x02 /**< Change thread priority. */
|
||||
#define RT_THREAD_CTRL_INFO 0x03 /**< Get thread information. */
|
||||
|
||||
@@ -179,6 +179,8 @@ void *rt_malloc(rt_size_t nbytes);
|
||||
void rt_free(void *ptr);
|
||||
void *rt_realloc(void *ptr, rt_size_t nbytes);
|
||||
void *rt_calloc(rt_size_t count, rt_size_t size);
|
||||
void* rt_malloc_align(rt_size_t size, rt_size_t align);
|
||||
void rt_free_align(void* ptr);
|
||||
|
||||
void rt_memory_info(rt_uint32_t *total, rt_uint32_t *used, rt_uint32_t *max_used);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user