From 8d4938ae704306033693a765a66732818c366c5a Mon Sep 17 00:00:00 2001 From: "luohui2320@gmail.com" Date: Fri, 23 Mar 2012 15:07:21 +0000 Subject: [PATCH] delete libcpu/arm/at91sam926x/rt_list.h git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2008 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- libcpu/arm/at91sam926x/rt_list.h | 106 -------------------------- libcpu/arm/at91sam926x/system_clock.c | 1 - 2 files changed, 107 deletions(-) delete mode 100755 libcpu/arm/at91sam926x/rt_list.h diff --git a/libcpu/arm/at91sam926x/rt_list.h b/libcpu/arm/at91sam926x/rt_list.h deleted file mode 100755 index 7073ba95a8..0000000000 --- a/libcpu/arm/at91sam926x/rt_list.h +++ /dev/null @@ -1,106 +0,0 @@ -/* - * File : rt_list.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2009, 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 - * - * Change Logs: - * Date Author Notes - * 2011-01-15 weety copy from kservice APIs - */ - -#ifndef __RT_LIST_H__ -#define __RT_LIST_H__ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @addtogroup rt_list - */ -/*@{*/ - -/** - * @brief initialize a list - * - * @param l list to be initialized - */ -rt_inline void rt_list_init(rt_list_t *l) -{ - l->next = l->prev = l; -} - -/** - * @brief insert a node after a list - * - * @param l list to insert it - * @param n new node to be inserted - */ -rt_inline void rt_list_insert_after(rt_list_t *l, rt_list_t *n) -{ - l->next->prev = n; - n->next = l->next; - - l->next = n; - n->prev = l; -} - -/** - * @brief insert a node before a list - * - * @param n new node to be inserted - * @param l list to insert it - */ -rt_inline void rt_list_insert_before(rt_list_t *l, rt_list_t *n) -{ - l->prev->next = n; - n->prev = l->prev; - - l->prev = n; - n->next = l; -} - -/** - * @brief remove node from list. - * @param n the node to remove from the list. - */ -rt_inline void rt_list_remove(rt_list_t *n) -{ - n->next->prev = n->prev; - n->prev->next = n->next; - - n->next = n->prev = n; -} - -/** - * @brief tests whether a list is empty - * @param l the list to test. - */ -rt_inline int rt_list_isempty(const rt_list_t *l) -{ - return l->next == l; -} - -/** - * @brief get the struct for this entry - * @param node the entry point - * @param type the type of structure - * @param member the name of list in structure - */ -#define rt_list_entry(node, type, member) \ - ((type *)((char *)(node) - (unsigned long)(&((type *)0)->member))) - -/*@}*/ - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/libcpu/arm/at91sam926x/system_clock.c b/libcpu/arm/at91sam926x/system_clock.c index 8dc3595999..415e518258 100755 --- a/libcpu/arm/at91sam926x/system_clock.c +++ b/libcpu/arm/at91sam926x/system_clock.c @@ -13,7 +13,6 @@ */ #include -#include "rt_list.h" #include "at91sam926x.h" static rt_list_t clocks;