From bcae0651fa1edd3078cdac75afe2f4b6ad0361c3 Mon Sep 17 00:00:00 2001 From: bernie Date: Wed, 13 Aug 2008 10:10:15 +0000 Subject: [PATCH] mware: Add missing OBSOLETE markers here to stub headers. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1630 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/mware/fifobuf.h | 1 + bertos/mware/heap.h | 1 + bertos/mware/list.h | 1 + bertos/mware/mean.h | 41 ----------------------------------------- bertos/mware/pool.h | 1 + 5 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 bertos/mware/mean.h diff --git a/bertos/mware/fifobuf.h b/bertos/mware/fifobuf.h index 73f6c14e..50363ba0 100644 --- a/bertos/mware/fifobuf.h +++ b/bertos/mware/fifobuf.h @@ -1 +1,2 @@ +#warning This header is OBSOLETE #include diff --git a/bertos/mware/heap.h b/bertos/mware/heap.h index 0a987b13..2c4594e1 100644 --- a/bertos/mware/heap.h +++ b/bertos/mware/heap.h @@ -1 +1,2 @@ +#warning This header is OBSOLETE #include diff --git a/bertos/mware/list.h b/bertos/mware/list.h index 32ca7091..cb46009a 100644 --- a/bertos/mware/list.h +++ b/bertos/mware/list.h @@ -1 +1,2 @@ +#warning This header is OBSOLETE #include diff --git a/bertos/mware/mean.h b/bertos/mware/mean.h deleted file mode 100644 index 893241e2..00000000 --- a/bertos/mware/mean.h +++ /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) - diff --git a/bertos/mware/pool.h b/bertos/mware/pool.h index 98d627a8..db4e1443 100644 --- a/bertos/mware/pool.h +++ b/bertos/mware/pool.h @@ -1 +1,2 @@ +#warning This header is OBSOLETE #include -- 2.25.1