mirror of https://github.com/RT-Thread/rt-thread
cleanup kernel code
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1722 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
2ab9a1602e
commit
7926109356
|
@ -1,3 +1,13 @@
|
|||
/*
|
||||
* File : rtdebug.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*/
|
||||
|
||||
#ifndef __RTDEBUG_H__
|
||||
#define __RTDEBUG_H__
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
* File : rtdef.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006, RT-Thread Development Team
|
||||
* COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://openlab.rt-thread.com/license/LICENSE.
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
|
@ -15,6 +15,7 @@
|
|||
* 2010-11-10 Bernard add cleanup callback function in thread exit.
|
||||
* 2011-05-09 Bernard use builtin va_arg in GCC 4.x
|
||||
*/
|
||||
|
||||
#ifndef __RT_DEF_H__
|
||||
#define __RT_DEF_H__
|
||||
|
||||
|
@ -66,9 +67,9 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
|
|||
/*@}*/
|
||||
|
||||
/* maximun value of base type */
|
||||
#define RT_UINT8_MAX 0xff /* Maxium number of UINT8. */
|
||||
#define RT_UINT16_MAX 0xffff /* Maxium number of UINT16. */
|
||||
#define RT_UINT32_MAX 0xffffffff /* Maxium number of UINT32. */
|
||||
#define RT_UINT8_MAX 0xff /* Maxium number of UINT8 */
|
||||
#define RT_UINT16_MAX 0xffff /* Maxium number of UINT16 */
|
||||
#define RT_UINT32_MAX 0xffffffff /* Maxium number of UINT32 */
|
||||
#define RT_TICK_MAX RT_UINT32_MAX /* Maxium number of tick */
|
||||
|
||||
/* Compiler Related Definitions */
|
||||
|
@ -488,12 +489,12 @@ struct rt_mailbox
|
|||
{
|
||||
struct rt_ipc_object parent; /**< inherit from ipc_object */
|
||||
|
||||
rt_uint32_t* msg_pool; /**< start address of message buffer. */
|
||||
rt_uint32_t *msg_pool; /**< start address of message buffer */
|
||||
|
||||
rt_uint16_t size; /**< size of message pool. */
|
||||
rt_uint16_t size; /**< size of message pool */
|
||||
|
||||
rt_uint16_t entry; /**< index of messages in msg_pool. */
|
||||
rt_uint16_t in_offset, out_offset; /**< in/output offset of the message buffer. */
|
||||
rt_uint16_t entry; /**< index of messages in msg_pool */
|
||||
rt_uint16_t in_offset, out_offset; /**< in/output offset of the message buffer */
|
||||
|
||||
rt_list_t suspend_sender_thread; /**< sender thread suspended on this mb */
|
||||
};
|
||||
|
@ -508,16 +509,16 @@ struct rt_messagequeue
|
|||
{
|
||||
struct rt_ipc_object parent; /**< inherit from ipc_object */
|
||||
|
||||
void* msg_pool; /**< start address of message queue. */
|
||||
void *msg_pool; /**< start address of message queue */
|
||||
|
||||
rt_uint16_t msg_size; /**< message size of each message. */
|
||||
rt_uint16_t max_msgs; /**< max number of messages. */
|
||||
rt_uint16_t msg_size; /**< message size of each message */
|
||||
rt_uint16_t max_msgs; /**< max number of messages */
|
||||
|
||||
rt_uint16_t entry; /**< index of messages in the queue. */
|
||||
rt_uint16_t entry; /**< index of messages in the queue */
|
||||
|
||||
void* msg_queue_head; /**< list head. */
|
||||
void* msg_queue_tail; /**< list tail. */
|
||||
void* msg_queue_free; /**< pointer indicated the free node of queue. */
|
||||
void *msg_queue_head; /**< list head */
|
||||
void *msg_queue_tail; /**< list tail */
|
||||
void *msg_queue_free; /**< pointer indicated the free node of queue */
|
||||
};
|
||||
typedef struct rt_messagequeue *rt_mq_t;
|
||||
#endif
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
* File : rthw.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006, RT-Thread Development Team
|
||||
* COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://openlab.rt-thread.com/license/LICENSE.
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
|
@ -32,8 +32,7 @@ rt_base_t rt_hw_cpu_dcache_status(void);
|
|||
void rt_hw_cpu_reset(void);
|
||||
void rt_hw_cpu_shutdown(void);
|
||||
|
||||
rt_uint8_t *rt_hw_stack_init(void *entry, void *parameter,
|
||||
rt_uint8_t *stack_addr, void *exit);
|
||||
rt_uint8_t *rt_hw_stack_init(void *entry, void *parameter, rt_uint8_t *stack_addr, void *exit);
|
||||
|
||||
void rt_hw_interrupt_init(void);
|
||||
void rt_hw_interrupt_mask(int vector);
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
/*
|
||||
* File : rtm.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*/
|
||||
|
||||
#ifndef __RTM_H__
|
||||
#define __RTM_H__
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
* File : rtthread.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006, RT-Thread Development Team
|
||||
* COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://openlab.rt-thread.com/license/LICENSE.
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
|
@ -180,9 +180,7 @@ 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_memory_info(rt_uint32_t *total,
|
||||
rt_uint32_t *used,
|
||||
rt_uint32_t *max_used);
|
||||
void rt_memory_info(rt_uint32_t *total, rt_uint32_t *used, rt_uint32_t *max_used);
|
||||
|
||||
#ifdef RT_USING_SLAB
|
||||
void *rt_page_alloc(rt_size_t npages);
|
||||
|
@ -242,7 +240,6 @@ rt_err_t rt_event_delete (rt_event_t event);
|
|||
rt_err_t rt_event_send(rt_event_t event, rt_uint32_t set);
|
||||
rt_err_t rt_event_recv(rt_event_t event, rt_uint32_t set, rt_uint8_t opt, rt_int32_t timeout, rt_uint32_t *recved);
|
||||
rt_err_t rt_event_control(rt_event_t event, rt_uint8_t cmd, void *arg);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_MAILBOX
|
||||
|
|
|
@ -603,7 +603,7 @@ rt_err_t rt_thread_resume(rt_thread_t thread)
|
|||
|
||||
/**
|
||||
* This function is the timeout function for thread, normally which is invoked
|
||||
* when thread is timeout to wait some recourse.
|
||||
* when thread is timeout to wait some resourse.
|
||||
*
|
||||
* @param parameter the parameter of thread timeout function
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue