Finally remove redundant protos.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2004 23:48:16 +0000 (23:48 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2004 23:48:16 +0000 (23:48 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@70 38d2e660-2303-0410-9eaa-f027e97ec537

drv/timer.h
drv/timer_avr.h
mware/byteorder.h
mware/fifobuf.h
mware/list.h

index 28672049d321bb5bb854daa925828451e1d9c2cb..5a9c93e2b3f2a633bfe715e761046930eae9857e 100755 (executable)
@@ -1,7 +1,7 @@
 /*!
  * \file
  * <!--
- * Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
  * Copyright 2000 Bernardo Innocenti <bernie@develer.com>
  * This file is part of DevLib - See devlib/README for information.
  * -->
@@ -15,6 +15,9 @@
 
 /*
  * $Log$
+ * Revision 1.9  2004/07/20 23:45:01  bernie
+ * Finally remove redundant protos.
+ *
  * Revision 1.8  2004/07/18 21:57:32  bernie
  * timer_gettick(): Rename to timer_tick() and document better.
  *
@@ -70,15 +73,10 @@ extern void timer_add(Timer *timer);
 extern Timer *timer_abort(Timer *timer);
 extern void timer_delay(time_t time);
 extern void timer_udelay(utime_t utime);
-INLINE time_t timer_tick(void);
-INLINE time_t timer_tick_unlocked(void);
-INLINE void timer_set_event_softint(Timer* timer, Hook func, void* user_data);
-INLINE void timer_set_delay(Timer* timer, time_t delay);
 
 #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS
 
 /*! Set the timer so that it sends a signal when it expires */
-INLINE void timer_set_event_signal(Timer* timer, struct Process* proc, sigset_t sigs);
 INLINE void timer_set_event_signal(Timer* timer, struct Process* proc, sigset_t sigs)
 {
        event_initSignal(&timer->expire, proc, sigs);
index 3e8022c1f5c64d67b150c03b749a1b52f6b4ac81..4f842eefc0b4a7d152d3bfd5c72b6f9b809d2bb4 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*
  * $Log$
+ * Revision 1.6  2004/07/20 23:48:16  bernie
+ * Finally remove redundant protos.
+ *
  * Revision 1.5  2004/07/18 22:16:35  bernie
  * Add missing header; Prevent warning for project_ks-specific code.
  *
@@ -82,7 +85,6 @@
        //! Frequency of the hardware high precision timer
        #define TIMER_HW_HPTICKS_PER_SEC  (CLOCK_FREQ / 64)
 
-       INLINE hptime_t timer_hw_hpread(void);
        INLINE hptime_t timer_hw_hpread(void)
        {
                return TCNT0;
        //! Frequency of the hardware high precision timer
        #define TIMER_HW_HPTICKS_PER_SEC  (24000ul * 512)
 
-       INLINE hptime_t timer_hw_hpread(void);
        INLINE hptime_t timer_hw_hpread(void)
        {
                return TCNT1;
        //! Frequency of the hardware high precision timer
        #define TIMER_HW_HPTICKS_PER_SEC  (CLOCK_FREQ / 64)
 
-       INLINE hptime_t timer_hw_hpread(void);
        INLINE hptime_t timer_hw_hpread(void)
        {
                return TCNT2;
index b1c2df9da1e19f2eab1ec780bee177313b268e01..7fad24df936430852d359eb6aea4a14e3ed974f0 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*
  * $Log$
+ * Revision 1.3  2004/07/20 23:47:12  bernie
+ * Finally remove redundant protos.
+ *
  * Revision 1.2  2004/07/20 17:09:11  bernie
  * swab16(), swab32(), cpu_to_be32(), cpu_to_le32(): New functions.
  *
@@ -32,7 +35,6 @@
 /*!
  * \brief Swap upper and lower bytes in a 16-bit value.
  */
-INLINE uint16_t swab16(uint16_t x);
 INLINE uint16_t swab16(uint16_t x)
 {
        return    ((x & (uint16_t)0x00FFU) << 8)
@@ -42,7 +44,6 @@ INLINE uint16_t swab16(uint16_t x)
 /*!
  * \brief Reverse bytes in a 32-bit value (e.g.: 0x12345678 -> 0x78563412).
  */
-INLINE uint16_t swab32(uint16_t x);
 INLINE uint16_t swab32(uint16_t x)
 {
        return    ((x & (uint32_t)0x000000FFUL) << 24)
@@ -51,25 +52,21 @@ INLINE uint16_t swab32(uint16_t x)
                | ((x & (uint32_t)0xFF000000UL) >> 24);
 }
 
-INLINE uint16_t cpu_to_be16(uint16_t x);
 INLINE uint16_t cpu_to_be16(uint16_t x)
 {
        return (CPU_BYTE_ORDER == CPU_LITTLE_ENDIAN) ? swab16(x) : x;
 }
 
-INLINE uint16_t cpu_to_le16(uint16_t x);
 INLINE uint16_t cpu_to_le16(uint16_t x)
 {
        return (CPU_BYTE_ORDER == CPU_BIG_ENDIAN) ? swab16(x) : x;
 }
 
-INLINE uint32_t cpu_to_be32(uint32_t x);
 INLINE uint32_t cpu_to_be32(uint32_t x)
 {
        return (CPU_BYTE_ORDER == CPU_LITTLE_ENDIAN) ? swab32(x) : x;
 }
 
-INLINE uint32_t cpu_to_le32(uint32_t x);
 INLINE uint32_t cpu_to_le32(uint32_t x)
 {
        return (CPU_BYTE_ORDER == CPU_BIG_ENDIAN) ? swab32(x) : x;
index 194f10dc288678de3c9f3163f2512df8d34509e0..118bdd71cefcf28bfa3d17a66cad2c09cfd10ad9 100755 (executable)
@@ -41,6 +41,9 @@
 
 /*
  * $Log$
+ * Revision 1.7  2004/07/20 23:46:29  bernie
+ * Finally remove redundant protos.
+ *
  * Revision 1.6  2004/06/06 17:18:04  bernie
  * Remove redundant declaration of fifo_isempty_locked().
  *
@@ -102,22 +105,6 @@ typedef struct FIFOBuffer
 } FIFOBuffer;
 
 
-/* Public function prototypes */
-INLINE bool fifo_isempty(const FIFOBuffer *fb);
-INLINE bool fifo_isfull(const FIFOBuffer *fb);
-INLINE bool fifo_isfull_locked(const FIFOBuffer *fb);
-#ifdef __MWERKS__
-#pragma interrupt called
-#endif
-INLINE void fifo_push(FIFOBuffer *fb, unsigned char c);
-#ifdef __MWERKS__
-#pragma interrupt called
-#endif
-INLINE unsigned char fifo_pop(FIFOBuffer *fb);
-INLINE void fifo_flush(FIFOBuffer *fb);
-INLINE void fifo_init(FIFOBuffer *fb, unsigned char *buf, size_t size);
-
-
 /*!
  * Check whether the fifo is empty
  *
@@ -171,6 +158,9 @@ INLINE bool fifo_isfull(const FIFOBuffer *fb)
  */
 INLINE void fifo_push(FIFOBuffer *fb, unsigned char c)
 {
+#ifdef __MWERKS__
+#pragma interrupt called
+#endif
        /* Write at tail position */
        *(fb->tail) = c;
 
@@ -195,6 +185,9 @@ INLINE void fifo_push(FIFOBuffer *fb, unsigned char c)
  */
 INLINE unsigned char fifo_pop(FIFOBuffer *fb)
 {
+#ifdef __MWERKS__
+#pragma interrupt called
+#endif
        if (fb->head == fb->end)
        {
                /* wrap head around */
index 8f57f448bced6c4952401ec058d54cae4082e23c..e05acfb0291bdd73b7e5e9ba77b2db3a5ed2a731 100755 (executable)
@@ -13,6 +13,9 @@
 
 /*
  * $Log$
+ * Revision 1.5  2004/07/20 23:45:01  bernie
+ * Finally remove redundant protos.
+ *
  * Revision 1.4  2004/07/18 22:12:53  bernie
  * Fix warnings with GCC 3.3.2.
  *
@@ -121,7 +124,6 @@ typedef struct _List
  * \name Unlink a node from the head of the list \a l.
  * \return Pointer to node, or NULL if the list was empty.
  */
-INLINE Node *REMHEAD(List *l);
 INLINE Node *REMHEAD(List *l)
 {
        Node *n;
@@ -139,7 +141,6 @@ INLINE Node *REMHEAD(List *l)
  * \name Unlink a node from the tail of the list \a l.
  * \return Pointer to node, or NULL if the list was empty.
  */
-INLINE Node *REMTAIL(List *l);
 INLINE Node *REMTAIL(List *l)
 {
        Node *n;