diff options
| author | [email protected] <[email protected]> | 2012-03-18 04:26:22 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-03-18 04:26:22 +0000 |
| commit | 407f922a5b1036aacfb880a5366930a43ba9d109 (patch) | |
| tree | 82ad456efe2f96622390549752ccd80674e08b7f /include | |
| parent | b36c286036fab2f4673543bcd47df4dc8033073d (diff) | |
fix module unload issue
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2001 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 1107e3bbf6..b1d0c1abae 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -31,7 +31,7 @@ extern "C" { /*@{*/ -/* RT-Thread version information */
+/* RT-Thread version information */ #define RT_VERSION 1L /**< major version number */ #define RT_SUBVERSION 1L /**< minor version number */ #define RT_REVISION 0L /**< revise version number */ @@ -150,7 +150,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset #define RT_EEMPTY 4 /**< The resource is empty */ #define RT_ENOMEM 5 /**< No memory */ #define RT_ENOSYS 6 /**< No system */ -#define RT_EBUSY 7 /**< Busy */
+#define RT_EBUSY 7 /**< Busy */ #define RT_EIO 8 /**< IO error */ /*@}*/ @@ -592,9 +592,9 @@ enum rt_device_class_type RT_Device_Class_Graphic, /**< Graphic device */ RT_Device_Class_I2C, /**< I2C device */ RT_Device_Class_USBDevice, /**< USB slave device */ - RT_Device_Class_USBHost, /**< USB host bus */
- RT_Device_Class_SPIBUS, /**< SPI bus device */
- RT_Device_Class_SPIDevice, /**< SPI device */
+ RT_Device_Class_USBHost, /**< USB host bus */ + RT_Device_Class_SPIBUS, /**< SPI bus device */ + RT_Device_Class_SPIDevice, /**< SPI device */ RT_Device_Class_SDIO, /**< SDIO bus device */ RT_Device_Class_Unknown /**< unknown device */ }; @@ -781,10 +781,12 @@ struct rt_module rt_uint32_t stack_size; /**< priority of module's thread */ rt_uint32_t thread_priority; +#ifdef RT_USING_SLAB /* module memory allocator */ void *mem_list; /**< module's free memory list */ void *page_array; /**< module's using pages */ rt_uint32_t page_cnt; /**< module's using pages count */ +#endif rt_uint32_t nsym; /**< number of symbol in the module */ struct rt_module_symtab *symtab; /**< module symbol table */ |
