mware: Add missing OBSOLETE markers here to stub headers.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 13 Aug 2008 10:10:15 +0000 (10:10 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 13 Aug 2008 10:10:15 +0000 (10:10 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1630 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/mware/fifobuf.h
bertos/mware/heap.h
bertos/mware/list.h
bertos/mware/mean.h [deleted file]
bertos/mware/pool.h

index 73f6c14e9c088f9d711386c3de0919c4c11d09c9..50363ba0f5f54a9515b38ab57b37e3faf8645d51 100644 (file)
@@ -1 +1,2 @@
+#warning This header is OBSOLETE
 #include <struct/fifobuf.h>
index 0a987b134b92d6b42592ec26311440e45f21f729..2c4594e1e77f3317f53352cae3ed9ddffc5504d4 100644 (file)
@@ -1 +1,2 @@
+#warning This header is OBSOLETE
 #include <struct/heap.h>
index 32ca709137bc0357af2642be0602577b1e1caf98..cb46009aa543f6ab7bc8d124d0733b6d982324b2 100644 (file)
@@ -1 +1,2 @@
+#warning This header is OBSOLETE
 #include <struct/list.h>
diff --git a/bertos/mware/mean.h b/bertos/mware/mean.h
deleted file mode 100644 (file)
index 893241e..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#warning revise me!
-
-
-/**
- *  DECLARE_SMEAN(temperature, uint8_t, uint16_t);
- *  for (i = 0; i < TEMP_MEANS; ++i)
- *    SMEAN_ADD(temperature, adc_get(), TEMP_MEANS);
- *  printf("mean temperature = %d\n", SMEAN_GET(temperature));
- */
-
-/**
- * Instantiate a mean instance
- */
-#define DECLARE_SMEAN(name, Type, SumType) \
-       struct { \
-               SumType sum; \
-               Type result; \
-               int count; \
-       } name = { 0, 0, 0 }
-
-/**
- * Insert a new sample into the mean.
- *
- * \note \a mean and \a max_samples are evaluated multiple times
- */
-#define SMEAN_ADD(mean, sample, max_samples) \
-       do { \
-               (mean).sum += (sample); \
-               if ((mean).count++ >= (max_samples)) \
-               { \
-                       (mean).result = (mean).sum / (max_samples); \
-                       (mean).sum = 0; \
-                       (mean).count = 0; \
-               } \
-       } while (0)
-
-/**
- * Return current mean value.
- */
-#define SMEAN_GET(mean)  ((mean).result)
-
index 98d627a8b2eaa0d6ece19aedaba9bde80f113b9c..db4e1443f09a6504d078bd8624568de46cab48a5 100644 (file)
@@ -1 +1,2 @@
+#warning This header is OBSOLETE
 #include <struct/pool.h>