summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorlaranjeiro2010-05-17 10:02:48 +0000
committerlaranjeiro2010-05-17 10:02:48 +0000
commit6f6331ebad0ad3ceb6b5d5042add257215201714 (patch)
tree5cc0f0a637751f61cb311701d54e927fe9ab9592 /cesar
parentbc9a5f3da34877ae76199d7b2bcc489a1b9e9155 (diff)
cesar/{ce,cp}: remove cp/pwl
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7071 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar')
-rw-r--r--cesar/ce/tx/src/mme.c1
-rw-r--r--cesar/cp/av/cco/bw/src/bw.c3
-rw-r--r--cesar/cp/av/cco/region/src/region.c3
-rw-r--r--cesar/cp/beacon/src/beacon.c1
-rw-r--r--cesar/cp/cco/action/src/cco_action.c1
-rw-r--r--cesar/cp/inc/context.h5
-rw-r--r--cesar/cp/msg/src/msg_cm.c1
-rw-r--r--cesar/cp/pwl/inc/pwl.h85
-rw-r--r--cesar/cp/pwl/pwl.h169
-rw-r--r--cesar/cp/pwl/src/pwl.c345
-rw-r--r--cesar/cp/pwl/test/Makefile16
-rw-r--r--cesar/cp/pwl/test/doc/Makefile20
-rw-r--r--cesar/cp/pwl/test/doc/pwl.txt92
-rw-r--r--cesar/cp/pwl/test/ecos.ecc.sh5
-rw-r--r--cesar/cp/pwl/test/inc/result_decrease.h1006
-rw-r--r--cesar/cp/pwl/test/inc/result_increase.h1006
-rw-r--r--cesar/cp/pwl/test/inc/result_stable.h1006
-rw-r--r--cesar/cp/pwl/test/inc/table.h1006
-rw-r--r--cesar/cp/pwl/test/inc/table_decrease.h1006
-rw-r--r--cesar/cp/pwl/test/inc/table_increase.h1006
-rw-r--r--cesar/cp/pwl/test/override/cp/inc/context.h30
-rw-r--r--cesar/cp/pwl/test/src/pwl.c612
-rw-r--r--cesar/cp/pwl/test/src/pwl_new_beacon.c103
-rw-r--r--cesar/cp/sta/core/src/core.c1
24 files changed, 2 insertions, 7527 deletions
diff --git a/cesar/ce/tx/src/mme.c b/cesar/ce/tx/src/mme.c
index 22d938457a..e9c0e7e41c 100644
--- a/cesar/ce/tx/src/mme.c
+++ b/cesar/ce/tx/src/mme.c
@@ -12,7 +12,6 @@
*/
#include "common/std.h"
#include "lib/bitstream.h"
-#include "cp/pwl/pwl.h"
#include "hal/phy/defs.h"
#include "cp/inc/context.h"
#include "cp/inc/trace.h"
diff --git a/cesar/cp/av/cco/bw/src/bw.c b/cesar/cp/av/cco/bw/src/bw.c
index 7c62d6ebbe..865b990d81 100644
--- a/cesar/cp/av/cco/bw/src/bw.c
+++ b/cesar/cp/av/cco/bw/src/bw.c
@@ -15,7 +15,6 @@
#include "mac/common/timings.h"
#include "cp/cco/bw/bw.h"
#include "cp/av/cco/bw/bw.h"
-#include "cp/pwl/pwl.h"
#include "cp/inc/context.h"
@@ -32,7 +31,7 @@ cp_av_cco_bw_schedules_default (cp_t *ctx)
alloc = cp_cco_bw_alloc_init (ctx);
alloc->stpf = false;
alloc->end_time_atu =
- MAC_TCK_TO_ATU(CP_PWL_BP_50 + CP_AV_CCO_BW_ALLOC_MIN_SIZE_TCK);
+ MAC_TCK_TO_ATU(BSU_ACLF_BP_50HZ_TCK + CP_AV_CCO_BW_ALLOC_MIN_SIZE_TCK);
alloc->glid = MAC_LID_SHARED_CSMA;
alloc->persistence = CP_CCO_BW_ALLOC_PERSISTENCE_PERSISTENT;
alloc->pscd = 0;
diff --git a/cesar/cp/av/cco/region/src/region.c b/cesar/cp/av/cco/region/src/region.c
index 98673c1bfd..6133098c77 100644
--- a/cesar/cp/av/cco/region/src/region.c
+++ b/cesar/cp/av/cco/region/src/region.c
@@ -13,7 +13,6 @@
#include "common/std.h"
#include "mac/common/timings.h"
#include "cp/av/cco/region/region.h"
-#include "cp/pwl/pwl.h"
#include "cp/inc/context.h"
@@ -26,7 +25,7 @@ cp_av_cco_region_default (cp_t *ctx)
/* Create a default region. */
region = cp_cco_region_alloc_init (ctx);
region->type = CP_CCO_REGION_TYPE_SHARED_CSMA;
- region->end_time_atu = MAC_TCK_TO_ATU(CP_PWL_BP_50);
+ region->end_time_atu = MAC_TCK_TO_ATU(BSU_ACLF_BP_50HZ_TCK);
cp_cco_region_alloc_add (ctx, &ctx->region.region_list, region);
slab_release (region);
}
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index 8f866ca930..f6cc0a5936 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -39,7 +39,6 @@
#include "hal/gpio/gpio.h"
#include "bsu/beacon/beacon.h"
#include "cp/beacon/ntb/ntb.h"
-#include "cp/pwl/pwl.h"
#include "bsu/bsu.h"
/** Timer expires.
diff --git a/cesar/cp/cco/action/src/cco_action.c b/cesar/cp/cco/action/src/cco_action.c
index 7d1ab6c7fb..e14be7b2b4 100644
--- a/cesar/cp/cco/action/src/cco_action.c
+++ b/cesar/cp/cco/action/src/cco_action.c
@@ -28,7 +28,6 @@
#include "cp/defs.h"
#include "cp/cp.h"
-#include "cp/pwl/pwl.h"
#include "cp/fsm/fsm.h"
#include "cp/msg/msg.h"
diff --git a/cesar/cp/inc/context.h b/cesar/cp/inc/context.h
index bd8dc960c9..846cef5a35 100644
--- a/cesar/cp/inc/context.h
+++ b/cesar/cp/inc/context.h
@@ -29,7 +29,6 @@
#include "cp/cco/action/cco_action.h"
#include "cp/cco/region/region.h"
#include "cp/cco/bw/bw.h"
-#include "cp/pwl/pwl.h"
#include "cp/beacon/beacon.h"
#include "cp/beacon/ntb/ntb.h"
#include "cp/conn/conn_mgr.h"
@@ -55,7 +54,6 @@
#include "cp/cl_interf/inc/context.h"
#include "cp/msg/inc/context.h"
#include "cp/fsm/inc/context.h"
-#include "cp/pwl/inc/pwl.h"
#include "ce/tx/inc/tx.h"
enum cp_handover_reason_t
@@ -109,9 +107,6 @@ struct cp_t
/** Sta action. */
cp_sta_action_t sta_action;
- /** PWL Module. */
- cp_pwl_t pwl;
-
/** Beacon module. */
cp_beacon_t beacon;
diff --git a/cesar/cp/msg/src/msg_cm.c b/cesar/cp/msg/src/msg_cm.c
index 8c8da32a8d..1ae1ad2db7 100644
--- a/cesar/cp/msg/src/msg_cm.c
+++ b/cesar/cp/msg/src/msg_cm.c
@@ -21,7 +21,6 @@
#include "cp/msg/inc/msg.h"
#include "cp/msg/inc/msg_cm.h"
-#include "cp/pwl/pwl.h"
#include "mac/common/timings.h"
#include "lib/utils.h"
#include "cp/sta/core/core.h"
diff --git a/cesar/cp/pwl/inc/pwl.h b/cesar/cp/pwl/inc/pwl.h
deleted file mode 100644
index ac80884625..0000000000
--- a/cesar/cp/pwl/inc/pwl.h
+++ /dev/null
@@ -1,85 +0,0 @@
-#ifndef cp_pwl_inc_pwl_h
-#define cp_pwl_inc_pwl_h
-/* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file cp/pwl/inc/pwl.h
- * \brief PWL context.
- * \ingroup cp_pwl
- */
-#include "cp/pwl/pwl.h"
-
-/**
- * Power line module. Contains all the data concerning the PWL state.
- */
-struct cp_pwl_t
-{
- /**
- * Inform on the frequency of the PWL. Only two values are possible
- * the 50 and 60 Hz.
- */
- const cp_pwl_frequency_t frequency;
-
- /**
- * Beacon period static value. This value never change it corresponds
- * to the value theoretical of the beacon period. (1 000 000 ticks
- * for the 50 Hz and 833 333 ticks for the 60Hz)
- */
- const cp_pwl_bp_t bp_ntb;
-
- /**
- * The zero cross theoretical value of the beacon period. Based on
- * the frequency detection. It corresponds to a quarter of the bp_ntb
- * value.
- */
- const uint zc_ntb;
-
- /**
- * The value computed once the ACL frequency is done to know how many
- * beacon periods it has in 10 seconds.
- */
- const uint discover_period_max_bp;
-
- /**
- * The previous, current and next values of the beacon period start in
- * the AVLN computed by the CCo.
- * This value will be update at each beacon period by the beacon module.
- * It contains the date in NTB of the previous, current and next beacon
- * period. For example, 1 000 000; 2 000 000; 3 000 000
- */
- u32 bp_avln_ntb [CP_PWL_BP_AVLN_NB];
-
- /**
- * Current beacon period value of the PWL. Use to estimate the beacon
- * period.
- */
- uint per_ntb;
-
- /**
- * The next four beacon period offset values.
- */
- s16 bto[4];
-
- /**
- * Values of the PRATIC register.
- */
- u32 date_ntb [2];
-
- /**
- * Indicate if the station is tracking the ACL.
- */
- bool tracking;
-
- /**
- * Cable
- */
- bool cable;
-};
-
-
-#endif /* cp_pwl_inc_pwl_h */
diff --git a/cesar/cp/pwl/pwl.h b/cesar/cp/pwl/pwl.h
deleted file mode 100644
index 0dab3d08bf..0000000000
--- a/cesar/cp/pwl/pwl.h
+++ /dev/null
@@ -1,169 +0,0 @@
-#ifndef cp_pwl_h
-#define cp_pwl_h
-/* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file cp/pwl/pwl.h
- * \brief The powerline state.
- * \ingroup cp_pwl
- *
- */
-#include "cp/cp.h"
-
-#define CP_PWL_BTO_NB 4
-#define CP_PWL_BP_AVLN_NB CP_PWL_BTO_NB
-#define CP_PWL_TIMER_OFFSET_CCO 500000
-#define CP_PWL_TIMER_OFFSET_STA 250000
-
-/** Frequency possibility. */
-enum cp_pwl_frequency_t
-{
- CP_PWL_FREQ_50,
- CP_PWL_FREQ_60
-};
-typedef enum cp_pwl_frequency_t cp_pwl_frequency_t;
-
-/** Conversion of the frequency to ticks. */
-enum cp_pwl_bp_t
-{
- CP_PWL_BP_50 = 1000000,
- CP_PWL_BP_60 = 833333
-};
-typedef enum cp_pwl_bp_t cp_pwl_bp_t;
-
-/** Zero cross values. */
-enum cp_pwl_zc_t
-{
- CP_PWL_ZC_50 = (CP_PWL_BP_50 / 4),
- CP_PWL_ZC_60 = (CP_PWL_BP_60 / 4)
-};
-typedef enum cp_pwl_zc_t cp_pwl_zc_t;
-
-/** Forward declaration. */
-typedef struct cp_pwl_t cp_pwl_t;
-
-BEGIN_DECLS
-
-/**
- * Initialise the pwl module.
- * \param ctx the module context.
- *
- */
-void
-cp_pwl_init (cp_t *ctx);
-
-/**
- * Uninitialise the PWL module.
- * \param ctx the module context.
- *
- */
-void
-cp_pwl_uninit (cp_t *ctx);
-
-/**
- * Compute the frequency of the power line using the pratic register.
- * \param ctx the module context.
- *
- * It shall read the pratic register twice with a gap of 20 ms. This
- * function shall update the data in the object. If the medium is a coaxial
- * cable, the 50Hz will be chosen
- *
- * \warn Only call this function in a Thread.
- */
-void
-cp_pwl_acl_frequency_detection (cp_t *ctx);
-
-/**
- * Compute the beacon period start time from the data contained in the beacon.
- * \param ctx the module context.
- * \param bts the beacon time stamp.
- * \param bto the four btos present in the beacon.
- * \param bpsto the beacon period start time offset.
- */
-void
-cp_pwl__sta__compute_beacon_period_start_time_ntb (cp_t *ctx, const u32 bts,
- const s16 bto[CP_PWL_BTO_NB],
- const u32 bpsto);
-
-/**
- * Compute the beacon period start time from the data contained in the beacon.
- * \param ctx the module context.
- */
-void
-cp_pwl__tracker__compute_beacon_period_start_time_ntb (cp_t *ctx);
-
-/**
- * Get the three values of the beacon period start time.
- * \param ctx the module context.
- * \param pos the current, the future, or the next one.
- * \return An array of CP_PWL_BP_AVLN_NB elements.
- *
- * The current one, the two next ones
- */
-u32
-cp_pwl_get_beacon_period_start_ntb (cp_t *ctx, uint pos);
-
-/**
- * Get the three values of the beacon period start time.
- * \param ctx the module context.
- * \param pos the current, the future, or the next one.
- * \return An array of CP_PWL_BP_AVLN_NB elements.
- *
- * The current one, the two next ones
- */
-u32
-cp_pwl_get_beacon_period_start_date (cp_t *ctx, uint pos);
-
-/**
- * Get the estimated value of the beacon period in NTB ticks.
- * \param ctx the module context.
- * \return the beacon period int NTB ticks estimated.
- */
-u32
-cp_pwl_get_beacon_period_ntb (cp_t *ctx);
-
-/**
- * Get the four BTOs estimated.
- * \param ctx the module context.
- * \return The array of four BTO estimated by the CCo.
- */
-const s16 *
-cp_pwl_get_bto (cp_t *ctx);
-
-/**
- * Provide the next date to awake.
- * \param ctx the module context.
- * \param cco If the station is acting as CCo or not (useful when the
- * station is Ucco.)
- * \return Return the next date to program the timer.
- *
- * If the station is CCo, it will return a date before the beacon period
- * end. It the station is CCo it will return a date a quarter after the
- * beacon period start
- */
-u32
-cp_pwl_get_next_timer_date (cp_t *ctx, bool cco);
-
-/**
- * Verify the current ntb date it in the new beacon period or not.
- * \param ctx the module context.
- *
- * Example current ntb_date is 1 200 435 ticks, and the current beacon period
- * start date is 1 000 000 and the next beacon period start date is 2 000 000,
- * this function shall return false, because it is still the current beacon
- * period and not a new one.
- *
- * The beacon period start date are accurate when the station receives the
- * AVLN central beacon or when it is CCo and it generate the central beacon.
- */
-bool
-cp_pwl_is_new_beacon_period (cp_t *ctx);
-
-END_DECLS
-
-#endif /* cp_pwl_h */
diff --git a/cesar/cp/pwl/src/pwl.c b/cesar/cp/pwl/src/pwl.c
deleted file mode 100644
index 235abc8a81..0000000000
--- a/cesar/cp/pwl/src/pwl.c
+++ /dev/null
@@ -1,345 +0,0 @@
-/* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file cp/pwl/src/pwl.c
- * \brief Power Line module.
- * \ingroup cp_pwl
- *
- * The Power line module is responsible to keep the station synchronized with
- * the AC Line Power Line.
- */
-#include "common/std.h"
-#include <cyg/kernel/kapi.h>
-#include <cyg/hal/hal_arch.h>
-
-/* Timings, for the macro MAC_MS_TO_TCK*/
-#include "mac/common/timings.h"
-#include "mac/common/ntb.h"
-
-#include "cp/cp.h"
-
-#include "cp/pwl/pwl.h"
-#include "cp/pwl/inc/pwl.h"
-
-#include "cp/inc/context.h"
-#include "cp/inc/trace.h"
-#include "string.h"
-
-/**
- * Initialise the pwl module.
- * \param ctx the module context.
- *
- */
-void
-cp_pwl_init (cp_t *ctx)
-{
- dbg_assert (ctx);
-
- memset (&ctx->pwl, 0, sizeof (cp_pwl_t));
-}
-
-/**
- * Uninitialise the PWL module.
- * \param ctx the module context.
- *
- */
-void
-cp_pwl_uninit (cp_t *ctx)
-{
- dbg_assert (ctx);
-}
-
-/**
- * Compute the frequency of the power line using the pratic register.
- * \param ctx the module context.
- *
- * It shall read the pratic register twice with a gap of 20 ms. This
- * function shall update the data in the object. If the medium is a coaxial
- * cable, the 50Hz will be chosen
- *
- * \warn Only call this function in a Thread.
- */
-void
-cp_pwl_acl_frequency_detection (cp_t *ctx)
-{
- uint bp_width_ntb;
-
- dbg_assert (ctx);
- dbg_assert (ctx->phy);
-
- ctx->pwl.date_ntb[1] = phy_clock_get_zero_cross_captured_date(ctx->phy);
-
- cyg_thread_delay (2);
- ctx->pwl.date_ntb[0] = phy_clock_get_zero_cross_captured_date(ctx->phy);
-
- // compute the becon period.
- bp_width_ntb = (ctx->pwl.date_ntb[0] - ctx->pwl.date_ntb[1] + 5000)
- % CP_PWL_ZC_50;
-
- if (bp_width_ntb > 6000)
- {
- *((cp_pwl_frequency_t*) &ctx->pwl.frequency) = CP_PWL_FREQ_60;
- *((cp_pwl_bp_t*) &ctx->pwl.bp_ntb) = CP_PWL_BP_60;
- *((uint*) &ctx->pwl.zc_ntb) = CP_PWL_ZC_60;
- }
- else
- {
- *((cp_pwl_frequency_t*) &ctx->pwl.frequency) = CP_PWL_FREQ_50;
- *((cp_pwl_bp_t*) &ctx->pwl.bp_ntb) = CP_PWL_BP_50;
- *((uint*) &ctx->pwl.zc_ntb) = CP_PWL_ZC_50;
- }
-
- ctx->pwl.cable = (ctx->pwl.date_ntb[0] == ctx->pwl.date_ntb[1]);
-
- ctx->pwl.per_ntb = ctx->pwl.bp_ntb;
- *((uint*) &ctx->pwl.discover_period_max_bp) =
- MAC_MS_TO_TCK (MAC_SEC_TO_MS(CP_DISCOVER_PERIOD_MAX_S))
- / ctx->pwl.bp_ntb;
-
-
- CP_TRACE (PWL_FREQ, phy_date (), ctx->pwl.cable, ctx->pwl.zc_ntb,
- ctx->pwl.bp_ntb);
-}
-
-/**
- * Compute the beacon period start time from the data contained in the beacon.
- * \param ctx the module context.
- * \param bts the beacon time stamp.
- * \param bto the four btos present in the beacon.
- * \param bpsto the beacon period start time offset.
- */
-void
-cp_pwl__sta__compute_beacon_period_start_time_ntb (cp_t *ctx, const u32 bts,
- const s16 bto[4],
- const u32 bpsto)
-{
- uint i;
- dbg_assert (ctx);
-
- ctx->pwl.tracking = false;
-
- /* Update the bto to the next one. */
- ctx->pwl.bto[0] = bto[1];
- ctx->pwl.bto[1] = bto[2];
- ctx->pwl.bto[2] = bto[3];
- ctx->pwl.bto[3] = bto[3];
-
- ctx->pwl.bp_avln_ntb[0] = bts - bpsto;
- for (i = 1; i < CP_PWL_BP_AVLN_NB; i++)
- {
- ctx->pwl.bp_avln_ntb[i] = ctx->pwl.bp_avln_ntb[i-1] + ctx->pwl.bto[i]
- + ctx->pwl.bp_ntb;
- }
-
- ctx->pwl.per_ntb = ctx->pwl.bp_avln_ntb[1] - ctx->pwl.bp_avln_ntb[0];
-
- CP_TRACE_VERBOSE (PWL_STA_COMP_BPS, phy_date (), ctx->pwl.per_ntb,
- ctx->pwl.bp_avln_ntb[0], ctx->pwl.bp_avln_ntb[1],
- ctx->pwl.bp_avln_ntb[2], ctx->pwl.bp_avln_ntb[3]);
- CP_TRACE_VERBOSE (PWL_STA_COMP_BPS_DATA, bts, bto[0], bto[1], bto[2],
- bto[3], bpsto);
-}
-
-static inline void
-cp_pwl__tracker__compute_period (cp_t *ctx)
-{
- uint diff_ntb;
- dbg_assert (ctx);
- dbg_assert (ctx->mac_config);
-
- ctx->pwl.date_ntb[1] = ctx->pwl.date_ntb[0];
- ctx->pwl.date_ntb[0] =
- phy_clock_get_zero_cross_captured_date (ctx->phy)
- + ctx->mac_config->ntb_offset_tck;
-
- diff_ntb = (ctx->pwl.date_ntb[0] - ctx->pwl.date_ntb[1])
- % (ctx->pwl.bp_ntb + 10000);
-
- if (diff_ntb <= 3 * ctx->pwl.zc_ntb)
- {
- float div;
-
- div = ((float)diff_ntb / (float)ctx->pwl.zc_ntb);
- diff_ntb = (4 - div) * ctx->pwl.zc_ntb + diff_ntb;
- }
-
- /* Using a Wp value with k = 4. */
- ctx->pwl.per_ntb += 0.0625 * ((s32) diff_ntb
- - (s32)ctx->pwl.per_ntb);
-}
-
-void
-cp_pwl__tracker__compute_beacon_period_start_time_ntb (cp_t *ctx)
-{
- uint i;
- dbg_assert (ctx);
- dbg_assert (ctx->pwl.bp_ntb);
-
- if (lesseq_mod2p32 (ctx->pwl.bp_avln_ntb[1], mac_ntb())
- || (ctx->pwl.bp_avln_ntb[0] == ctx->pwl.bp_avln_ntb[1]))
- {
- if (!ctx->pwl.cable)
- {
- cp_pwl__tracker__compute_period (ctx);
-
- if (ctx->pwl.tracking)
- {
- /* Update the beacon period start time. */
- for (i = 0; i < CP_PWL_BP_AVLN_NB - 1; i++)
- ctx->pwl.bp_avln_ntb[i] = ctx->pwl.bp_avln_ntb[i+1];
-
- ctx->pwl.bp_avln_ntb[CP_PWL_BP_AVLN_NB - 1] +=
- ctx->pwl.per_ntb;
-
- /* Compute BTO's */
- for (i = 0; i < CP_PWL_BTO_NB - 1; i++)
- ctx->pwl.bto[i] = ctx->pwl.bto[i+1];
-
- ctx->pwl.bto[CP_PWL_BTO_NB-1] =
- ctx->pwl.bp_avln_ntb[CP_PWL_BP_AVLN_NB - 1]
- - ctx->pwl.bp_avln_ntb[CP_PWL_BP_AVLN_NB - 2]
- - ctx->pwl.bp_ntb;
- }
- else
- {
- s16 bto;
- uint now = mac_ntb();
-
- if (lesseq_mod2p32 (ctx->pwl.bp_avln_ntb[2], now))
- ctx->pwl.bp_avln_ntb[0] = now;
- else
- ctx->pwl.bp_avln_ntb[0] = ctx->pwl.bp_avln_ntb[1];
-
- /* Update the beacon period start time. */
- for (i = 1; i < CP_PWL_BP_AVLN_NB; i++)
- ctx->pwl.bp_avln_ntb[i] = ctx->pwl.bp_avln_ntb[i-1] +
- ctx->pwl.per_ntb;
-
-
- /* Compute BTO's */
- bto = ctx->pwl.bp_avln_ntb[CP_PWL_BP_AVLN_NB - 1]
- - ctx->pwl.bp_avln_ntb[CP_PWL_BP_AVLN_NB - 2]
- - ctx->pwl.bp_ntb;
-
- for (i = 0; i < CP_PWL_BTO_NB; i++)
- ctx->pwl.bto[i] = bto;
- }
- }
- else /* Cable mode. */
- {
- uint i;
- for (i = 0; i < CP_PWL_BTO_NB; i++)
- ctx->pwl.bto[i] = 0;
-
- if (ctx->pwl.tracking)
- {
- ctx->pwl.bp_avln_ntb[0] += ctx->pwl.bp_ntb;
- }
- else
- {
- ctx->pwl.bp_avln_ntb[0] = mac_ntb();
- }
-
- for (i = 1; i < CP_PWL_BP_AVLN_NB; i++)
- ctx->pwl.bp_avln_ntb[i] = ctx->pwl.bp_avln_ntb[i-1] +
- ctx->pwl.bp_ntb;
- }
- CP_TRACE_VERBOSE (PWL_CCO_COMP_BPS, phy_date (), ctx->pwl.per_ntb,
- ctx->pwl.bp_avln_ntb[0], ctx->pwl.bp_avln_ntb[1],
- ctx->pwl.bp_avln_ntb[2], ctx->pwl.bp_avln_ntb[3]);
- }
-
- ctx->pwl.tracking = true;
-}
-
-
-/**
- * Get the three values of the beacon period start time.
- * \param ctx the module context.
- * \return An array of CP_PWL_BP_AVLN_NB elements.
- *
- * The current one, the two next ones
- */
-u32
-cp_pwl_get_beacon_period_start_ntb (cp_t *ctx, uint pos)
-{
- dbg_assert (ctx);
- dbg_assert (pos < CP_PWL_BP_AVLN_NB);
-
- return ctx->pwl.bp_avln_ntb[pos];
-}
-
-u32
-cp_pwl_get_beacon_period_start_date (cp_t *ctx, uint pos)
-{
- dbg_assert (ctx);
- dbg_assert (ctx->mac_config);
- dbg_assert (pos < CP_PWL_BP_AVLN_NB);
-
- return (u32) (ctx->pwl.bp_avln_ntb[pos] -
- ctx->mac_config->ntb_offset_tck);
-}
-
-/**
- * Get the estimated value of the beacon period in NTB ticks.
- * \param ctx the module context.
- * \return the beacon period int NTB ticks estimated.
- */
-u32
-cp_pwl_get_beacon_period_ntb (cp_t *ctx)
-{
- dbg_assert (ctx);
-
- return ctx->pwl.per_ntb;
-}
-
-/**
- * Get the four BTOs estimated.
- * \param ctx the module context.
- * \return The array of four BTO estimated by the CCo.
- */
-const s16 *
-cp_pwl_get_bto (cp_t *ctx)
-{
- dbg_assert (ctx);
-
- return ctx->pwl.bto;
-}
-
-/**
- * Provide the next date to awake.
- * \param ctx the module context.
- * \param cco If the station is acting as CCo or not (useful when the
- * station is Ucco.)
- * \return Return the next date to program the timer.
- *
- * If the station is CCo, it will return a date before the beacon period
- * end. It the station is CCo it will return a date a quarter after the
- * beacon period start
- */
-u32
-cp_pwl_get_next_timer_date (cp_t *ctx, bool cco)
-{
- dbg_assert (ctx);
- dbg_assert (ctx->mac_config);
-
- if (cco)
- return ctx->pwl.bp_avln_ntb[2] - CP_PWL_TIMER_OFFSET_CCO -
- ctx->mac_config->ntb_offset_tck;
- else
- return ctx->pwl.bp_avln_ntb[1] + CP_PWL_TIMER_OFFSET_STA -
- ctx->mac_config->ntb_offset_tck;
-}
-
-bool
-cp_pwl_is_new_beacon_period (cp_t *ctx)
-{
- dbg_assert (ctx);
-
- return less_mod2p32 (ctx->pwl.bp_avln_ntb[1], mac_ntb());
-}
diff --git a/cesar/cp/pwl/test/Makefile b/cesar/cp/pwl/test/Makefile
deleted file mode 100644
index e00f1a7229..0000000000
--- a/cesar/cp/pwl/test/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-BASE = ../../..
-
-ECOS = y
-INCLUDES = cp/pwl/test/override
-
-TARGET_PROGRAMS = pwl pwl_new_beacon_period
-
-pwl_SOURCES = pwl.c
-pwl_MODULES = lib cp/pwl
-pwl_MODULES_CONFIG = mac/common
-
-pwl_new_beacon_period_SOURCES = pwl_new_beacon.c
-pwl_new_beacon_period_MODULES = lib cp/pwl
-pwl_new_beacon_period_MODULES_CONFIG = mac/common
-
-include $(BASE)/common/make/top.mk
diff --git a/cesar/cp/pwl/test/doc/Makefile b/cesar/cp/pwl/test/doc/Makefile
deleted file mode 100644
index d3db9f86c8..0000000000
--- a/cesar/cp/pwl/test/doc/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PAGES= pwl.txt
-
-ODT=$(PAGES:%.txt=%.odt)
-HTML=$(PAGES:%.txt=%.html)
-
-all: $(ODT) $(HTML)
-
-odt: $(ODT)
-
-html: $(HTML)
-
-%.odt: %.txt
- rst2odt.py $< $@
-
-%.html: %.txt
- rst2html $< $@
-
-clean:
- rm -f $(ODT)
- rm -f $(HTML)
diff --git a/cesar/cp/pwl/test/doc/pwl.txt b/cesar/cp/pwl/test/doc/pwl.txt
deleted file mode 100644
index 7982f71045..0000000000
--- a/cesar/cp/pwl/test/doc/pwl.txt
+++ /dev/null
@@ -1,92 +0,0 @@
-==========
-PWL Module
-==========
-
-Init
-----
-
-This shall initialise the PWL module.
-At the end of this test, the PWL module attributes shall be equal to 0.
-
-Uninit
-------
-
-Actually does nothing.
-
-Frequency detection
--------------------
-
-Shall detect the 50, 60 Hz or the coaxial cable.
-
-Environment
- This shall be use in a THREAD cause of the cyg_thread_delay function it calls.
-
-On 50 Hz PWL
-~~~~~~~~~~~~
-
-It shall read the PRATIC register twice and compute the zero cross gap.
-At the end:
-
- * frequency == CP_PWL_FREQ_50
- * bp_ntb == CP_PWL_BP_50
- * zc_ntb == CP_PWL_ZC_50
-
-On 60 Hz PWL
-~~~~~~~~~~~~
-
-It shall read the PRATIC register twice and compute the zero cross gap.
-At the end:
-
- * frequency == CP_PWL_FREQ_60
- * bp_ntb == CP_PWL_BP_60
- * zc_ntb == CP_PWL_ZC_60
-
-On Coaxial
-~~~~~~~~~~
-
-It shall read the PRATIC register twice and compute the zero cross gap.
-At the end:
-
- * frequency == CP_PWL_FREQ_50
- * bp_ntb == CP_PWL_BP_50
- * zc_ntb == CP_PWL_ZC_50
-
-Estimate beacon period
-----------------------
-
-This test shall provide the same result as the scilab simulation.
-see cp/pwl/doc/scilab
-
-The scilab script is written to produce table to use with the unit test to verify the test.
-For that, use the makefile in the scilab directory, it will produce in the res directory three files for each script:
-
- * table_xxx.h The table to include in the test to compute the period beacon, it correspond to PRATIC register values computed by scilab.
- * result_xxx.h The result table of beacon period computed by scilab. It corresponds to the result that should be computed by the PWL module reacting to the table.
- * result_xxx.csv the file containing the values computed i.e. the beacon period, the beacon period in ATU, the first zero cross, the next one, the difference between the two.
-
-Test 1 : AC stable.
-~~~~~~~~~~~~~~~~~~~
-
-This shall compute the values of the beacon period according with the values computed by scilab.
-So this shall use:
-
- * table.h : entry data simulating the PRATIC register.
- * result_stable.h : the beacon period computed by scilab to compare with.
-
-Test 2 : AC increasing.
-~~~~~~~~~~~~~~~~~~~~~~~
-
-This shall compute the values of the beacon period according with the values computed by scilab.
-So this shall use:
-
- * table_increase.h : entry data simulating the PRATIC register.
- * result_increase.h : the beacon period computed by scilab to compare with.
-
-Test 3 : AC decreasing.
-~~~~~~~~~~~~~~~~~~~~~~~
-
-This shall compute the values of the beacon period according with the values computed by scilab.
-So this shall use:
-
- * table_decrease.h : entry data simulating the PRATIC register.
- * result_decrease.h : the beacon period computed by scilab to compare with.
diff --git a/cesar/cp/pwl/test/ecos.ecc.sh b/cesar/cp/pwl/test/ecos.ecc.sh
deleted file mode 100644
index 8253d98c9a..0000000000
--- a/cesar/cp/pwl/test/ecos.ecc.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-config=${1:-ecos-gen.ecc}
-ecosconfig --config=$config new linux default
-cat >> $config <<EOF
-EOF
-ecosconfig --config=$config check
diff --git a/cesar/cp/pwl/test/inc/result_decrease.h b/cesar/cp/pwl/test/inc/result_decrease.h
deleted file mode 100644
index f2cd6330f4..0000000000
--- a/cesar/cp/pwl/test/inc/result_decrease.h
+++ /dev/null
@@ -1,1006 +0,0 @@
-#ifndef result_decrease_result_ac_decrease
-#define result_decrease_result_ac_decrease
-/* File generated by scilab */
-uint result_ac_decrease [1000] = {
- 998679,
- 994036,
- 994407,
- 992692,
- 988990,
- 985750,
- 981329,
- 978210,
- 974083,
- 975275,
- 973315,
- 970843,
- 968125,
- 968876,
- 967419,
- 968004,
- 968558,
- 969170,
- 965575,
- 963648,
- 963997,
- 960416,
- 961548,
- 961997,
- 962112,
- 962653,
- 961447,
- 960840,
- 961211,
- 959925,
- 959295,
- 959108,
- 959980,
- 958527,
- 958586,
- 955433,
- 957945,
- 957561,
- 958563,
- 958560,
- 959396,
- 961133,
- 958697,
- 959954,
- 961756,
- 959860,
- 961411,
- 959466,
- 956739,
- 956904,
- 957038,
- 954233,
- 956382,
- 957859,
- 956981,
- 955984,
- 954451,
- 951731,
- 951596,
- 952437,
- 952988,
- 950162,
- 947346,
- 948489,
- 949358,
- 947935,
- 949554,
- 949586,
- 951087,
- 950860,
- 950571,
- 952910,
- 954442,
- 953368,
- 951527,
- 954253,
- 952909,
- 954591,
- 954984,
- 952609,
- 951896,
- 951884,
- 953495,
- 951151,
- 953450,
- 954574,
- 952033,
- 949722,
- 949578,
- 946522,
- 945809,
- 942994,
- 946244,
- 944925,
- 945802,
- 945386,
- 943459,
- 946591,
- 944754,
- 942417,
- 942473,
- 942498,
- 940991,
- 944323,
- 944305,
- 947005,
- 945767,
- 947483,
- 947349,
- 944461,
- 943309,
- 946829,
- 946464,
- 947874,
- 949536,
- 948782,
- 951259,
- 950482,
- 949336,
- 950427,
- 953363,
- 953043,
- 953529,
- 954925,
- 954576,
- 954767,
- 955785,
- 957993,
- 956735,
- 957279,
- 955533,
- 955055,
- 956070,
- 954751,
- 957028,
- 956902,
- 955078,
- 952275,
- 953740,
- 953920,
- 950751,
- 950661,
- 950474,
- 950071,
- 949680,
- 949898,
- 948157,
- 946459,
- 943675,
- 942078,
- 943037,
- 945058,
- 942723,
- 945677,
- 946148,
- 947044,
- 950124,
- 950006,
- 947927,
- 947366,
- 949486,
- 952524,
- 950220,
- 952863,
- 950476,
- 953493,
- 955232,
- 954954,
- 953088,
- 950135,
- 951924,
- 951306,
- 952706,
- 952936,
- 950183,
- 948244,
- 946414,
- 948144,
- 948798,
- 949748,
- 948568,
- 946997,
- 948076,
- 946512,
- 946431,
- 949177,
- 946377,
- 948348,
- 951486,
- 949398,
- 951745,
- 948709,
- 947813,
- 949546,
- 949397,
- 947266,
- 945639,
- 948247,
- 946554,
- 947736,
- 949340,
- 946437,
- 944237,
- 946430,
- 944449,
- 943705,
- 941502,
- 944980,
- 946938,
- 945869,
- 948500,
- 946539,
- 947904,
- 947844,
- 947531,
- 950511,
- 948448,
- 948045,
- 949547,
- 946734,
- 944393,
- 945768,
- 948422,
- 945862,
- 944705,
- 942530,
- 943653,
- 943640,
- 942749,
- 942084,
- 943120,
- 945798,
- 946090,
- 946837,
- 944768,
- 946434,
- 948211,
- 949329,
- 950044,
- 950240,
- 951249,
- 950960,
- 952750,
- 954709,
- 957426,
- 957525,
- 960113,
- 961377,
- 962087,
- 962308,
- 963392,
- 963797,
- 964333,
- 964721,
- 963352,
- 964303,
- 962224,
- 960925,
- 960739,
- 960519,
- 960996,
- 959832,
- 959683,
- 956101,
- 957270,
- 957196,
- 959396,
- 960334,
- 962394,
- 959962,
- 962203,
- 962416,
- 963533,
- 964485,
- 964742,
- 962057,
- 964090,
- 960590,
- 960175,
- 960793,
- 963225,
- 959902,
- 957165,
- 957127,
- 954951,
- 956894,
- 958869,
- 958092,
- 958016,
- 956799,
- 953712,
- 955983,
- 956058,
- 952909,
- 955647,
- 952660,
- 949713,
- 947226,
- 945465,
- 948716,
- 951909,
- 951742,
- 952210,
- 949941,
- 949933,
- 947356,
- 947873,
- 947391,
- 945840,
- 944273,
- 944315,
- 945242,
- 944153,
- 944663,
- 944125,
- 941389,
- 944068,
- 944219,
- 946374,
- 946231,
- 946901,
- 950077,
- 949596,
- 948278,
- 945684,
- 948308,
- 949747,
- 952809,
- 952152,
- 952680,
- 951332,
- 948309,
- 946217,
- 947457,
- 945258,
- 947972,
- 947933,
- 947876,
- 945326,
- 942639,
- 942333,
- 939798,
- 938846,
- 939258,
- 938500,
- 942185,
- 943282,
- 946212,
- 947943,
- 948923,
- 951023,
- 948312,
- 946789,
- 946589,
- 947554,
- 945346,
- 943626,
- 942907,
- 945961,
- 947743,
- 946356,
- 948290,
- 947248,
- 944691,
- 944989,
- 946849,
- 945909,
- 947517,
- 949916,
- 948821,
- 949199,
- 947659,
- 950073,
- 949063,
- 949815,
- 948575,
- 946059,
- 948103,
- 949660,
- 950806,
- 953735,
- 952085,
- 954120,
- 955515,
- 957745,
- 955944,
- 954392,
- 953120,
- 954915,
- 955292,
- 957094,
- 955875,
- 954647,
- 954812,
- 956966,
- 958166,
- 954866,
- 954826,
- 952046,
- 952269,
- 950196,
- 949038,
- 952010,
- 953521,
- 950493,
- 952223,
- 951362,
- 949205,
- 947545,
- 948170,
- 946870,
- 945753,
- 946177,
- 943641,
- 946251,
- 949164,
- 948132,
- 947288,
- 949334,
- 948741,
- 950757,
- 952219,
- 954587,
- 957037,
- 959470,
- 957378,
- 956190,
- 954813,
- 956065,
- 956408,
- 956384,
- 955022,
- 954159,
- 953261,
- 955898,
- 957386,
- 955146,
- 956300,
- 956291,
- 953607,
- 954136,
- 952209,
- 951441,
- 949565,
- 948100,
- 947878,
- 944929,
- 942272,
- 943561,
- 945193,
- 942668,
- 941796,
- 944688,
- 945014,
- 946394,
- 946738,
- 948002,
- 947311,
- 949280,
- 949646,
- 949096,
- 948023,
- 950809,
- 947987,
- 950433,
- 952269,
- 954021,
- 951314,
- 951470,
- 950596,
- 949271,
- 948055,
- 948746,
- 951551,
- 954168,
- 953700,
- 956386,
- 957138,
- 957450,
- 957222,
- 955966,
- 956919,
- 957554,
- 957257,
- 957832,
- 956996,
- 958936,
- 956743,
- 956452,
- 957413,
- 958587,
- 959116,
- 960229,
- 961379,
- 961258,
- 961744,
- 959908,
- 956346,
- 955673,
- 958315,
- 955332,
- 955942,
- 958004,
- 959364,
- 961088,
- 958161,
- 956789,
- 956945,
- 955453,
- 956960,
- 954456,
- 957226,
- 956846,
- 953574,
- 956108,
- 953689,
- 954720,
- 957065,
- 956094,
- 954132,
- 956675,
- 955658,
- 956033,
- 955718,
- 955190,
- 957560,
- 954685,
- 953022,
- 955524,
- 957583,
- 957194,
- 955074,
- 957331,
- 955617,
- 957216,
- 958628,
- 958674,
- 958696,
- 960171,
- 960589,
- 962728,
- 962464,
- 960296,
- 962293,
- 960989,
- 961109,
- 962217,
- 963388,
- 962171,
- 958644,
- 956967,
- 957947,
- 959280,
- 960613,
- 958826,
- 957722,
- 954532,
- 953930,
- 951784,
- 954126,
- 952365,
- 951835,
- 950057,
- 948284,
- 950617,
- 952674,
- 953646,
- 953401,
- 951988,
- 950609,
- 948151,
- 947029,
- 946090,
- 947199,
- 948827,
- 951541,
- 953635,
- 954531,
- 956106,
- 956037,
- 953967,
- 955322,
- 956785,
- 958798,
- 957009,
- 957101,
- 956638,
- 954653,
- 951274,
- 953176,
- 954213,
- 954708,
- 953068,
- 950048,
- 950230,
- 952171,
- 953562,
- 953692,
- 952065,
- 949584,
- 952501,
- 952786,
- 953763,
- 954351,
- 956292,
- 954793,
- 954329,
- 954681,
- 957495,
- 958234,
- 955905,
- 952674,
- 951451,
- 952654,
- 950473,
- 953456,
- 950920,
- 951999,
- 951421,
- 950870,
- 951758,
- 950356,
- 951209,
- 951725,
- 950904,
- 949895,
- 952842,
- 952246,
- 950784,
- 950992,
- 951104,
- 953770,
- 956125,
- 958783,
- 959144,
- 957497,
- 959303,
- 960521,
- 960478,
- 960425,
- 959380,
- 958461,
- 960576,
- 959689,
- 961645,
- 960155,
- 962644,
- 960466,
- 958773,
- 957100,
- 953834,
- 955965,
- 954142,
- 956488,
- 954193,
- 956874,
- 955505,
- 953643,
- 955179,
- 951862,
- 949292,
- 950266,
- 950408,
- 948695,
- 951442,
- 950792,
- 952380,
- 952808,
- 953067,
- 955768,
- 954529,
- 954789,
- 952366,
- 955341,
- 954953,
- 954796,
- 951605,
- 948505,
- 951232,
- 948561,
- 947918,
- 944945,
- 948093,
- 945558,
- 942904,
- 943399,
- 945075,
- 948130,
- 947426,
- 950561,
- 952696,
- 949726,
- 951153,
- 951209,
- 951223,
- 950044,
- 947965,
- 951138,
- 950783,
- 948592,
- 946161,
- 946770,
- 944889,
- 943812,
- 944588,
- 946125,
- 944023,
- 944174,
- 945734,
- 947029,
- 948875,
- 950451,
- 948221,
- 948443,
- 947855,
- 944943,
- 942251,
- 943795,
- 945064,
- 946759,
- 944096,
- 947492,
- 948921,
- 949184,
- 949696,
- 950204,
- 952669,
- 952952,
- 950979,
- 948687,
- 950648,
- 949275,
- 949189,
- 946544,
- 947295,
- 946851,
- 946704,
- 944689,
- 946209,
- 943667,
- 945661,
- 943581,
- 944060,
- 945153,
- 948004,
- 950812,
- 949299,
- 947597,
- 945979,
- 948004,
- 949116,
- 949608,
- 948843,
- 946068,
- 946600,
- 949919,
- 952982,
- 949829,
- 948149,
- 947391,
- 944719,
- 945581,
- 946068,
- 948039,
- 949126,
- 950842,
- 949777,
- 951234,
- 948138,
- 946758,
- 948271,
- 949006,
- 946073,
- 949396,
- 948170,
- 945842,
- 945147,
- 945990,
- 944002,
- 946004,
- 946366,
- 943562,
- 944295,
- 946320,
- 948278,
- 946509,
- 945008,
- 945429,
- 943936,
- 946480,
- 944998,
- 942840,
- 940495,
- 939850,
- 937634,
- 941229,
- 941575,
- 943384,
- 942561,
- 940290,
- 943349,
- 942037,
- 941676,
- 944906,
- 943243,
- 944573,
- 944374,
- 945687,
- 946316,
- 944157,
- 942869,
- 941587,
- 943483,
- 942697,
- 941794,
- 943106,
- 940833,
- 943120,
- 941974,
- 943678,
- 943461,
- 945792,
- 947688,
- 946288,
- 943574,
- 944369,
- 943955,
- 945400,
- 946752,
- 948349,
- 948531,
- 946915,
- 944559,
- 944891,
- 945110,
- 944920,
- 947396,
- 945926,
- 944988,
- 946630,
- 943939,
- 943904,
- 943796,
- 945644,
- 946074,
- 945648,
- 948788,
- 948855,
- 948741,
- 948032,
- 949892,
- 950856,
- 951458,
- 951090,
- 953252,
- 951695,
- 949546,
- 952197,
- 950413,
- 949280,
- 951949,
- 951432,
- 949217,
- 946676,
- 944029,
- 946479,
- 947107,
- 950151,
- 950246,
- 951549,
- 952004,
- 953628,
- 954560,
- 955691,
- 953652,
- 956205,
- 956109,
- 957437,
- 959168,
- 960198,
- 960282,
- 962051,
- 962141,
- 958645,
- 959892,
- 956893,
- 957696,
- 958505,
- 955431,
- 953241,
- 956037,
- 957708,
- 958976,
- 956821,
- 956963,
- 956727,
- 956801,
- 954825,
- 956113,
- 958694,
- 958853,
- 960054,
- 956379,
- 955239,
- 956890,
- 956263,
- 958055,
- 954700,
- 953159,
- 954471,
- 953469,
- 955187,
- 955108,
- 954651,
- 953076,
- 950462,
- 952396,
- 954794,
- 955257,
- 952197,
- 953946,
- 953885,
- 954405,
- 954986,
- 956053,
- 954598,
- 953117,
- 952856,
- 955420,
- 952371,
- 954442,
- 953713,
- 953193,
- 955795,
- 955425,
- 952422,
- 950053,
- 949514,
- 947174,
- 948893,
- 947147,
- 946494,
- 944461,
- 942294,
- 943926,
- 944930,
- 947677,
- 948006,
- 947903,
- 949360,
- 947062,
- 949907,
- 951278,
- 949895,
- 951993,
- 953326,
- 950731,
- 951599,
- 954458,
- 956765,
- 958021,
- 959806,
- 958115,
- 959543,
- 957504,
- 957004,
- 954196,
- 953593,
- 955203,
- 955495,
- 955427,
- 953852,
- 954257,
- 954001,
- 955968,
- 953047,
- 955350,
- 958029,
- 955691,
- 955767,
- 954879,
- 952727,
- 954812,
- 957003,
- 957617,
- 955050,
- 957515,
- 957860,
- 955835,
- 958237,
- 957097,
- 958474,
- 955570,
- 955357,
- 953699,
- 951226,
- 949225,
- 949173,
- 946776,
-944576 };
-uint result_ac_decrease_length = 1000;
-#endif /* result_decrease_result_ac_decrease */
diff --git a/cesar/cp/pwl/test/inc/result_increase.h b/cesar/cp/pwl/test/inc/result_increase.h
deleted file mode 100644
index 279c066123..0000000000
--- a/cesar/cp/pwl/test/inc/result_increase.h
+++ /dev/null
@@ -1,1006 +0,0 @@
-#ifndef result_increase_result_ac_increase
-#define result_increase_result_ac_increase
-/* File generated by scilab */
-uint result_ac_increase [1000] = {
- 1000013,
- 1000059,
- 1000055,
- 1000072,
- 1000109,
- 1000141,
- 1000185,
- 1000216,
- 1000257,
- 1000245,
- 1000264,
- 1000288,
- 1000315,
- 1000307,
- 1000321,
- 1000315,
- 1000309,
- 1000303,
- 1000339,
- 1000358,
- 1000354,
- 1000390,
- 1000379,
- 1000374,
- 1000373,
- 1000367,
- 1000379,
- 1000385,
- 1000381,
- 1000394,
- 1000400,
- 1000402,
- 1000393,
- 1000407,
- 1000406,
- 1000438,
- 1000413,
- 1000417,
- 1000407,
- 1000407,
- 1000399,
- 1000382,
- 1000406,
- 1000393,
- 1000375,
- 1000394,
- 1000378,
- 1000397,
- 1000424,
- 1000422,
- 1000421,
- 1000449,
- 1000428,
- 1000413,
- 1000422,
- 1000432,
- 1000447,
- 1000474,
- 1000475,
- 1000467,
- 1000462,
- 1000490,
- 1000518,
- 1000507,
- 1000498,
- 1000512,
- 1000496,
- 1000496,
- 1000481,
- 1000483,
- 1000486,
- 1000463,
- 1000448,
- 1000459,
- 1000477,
- 1000450,
- 1000463,
- 1000446,
- 1000442,
- 1000466,
- 1000473,
- 1000473,
- 1000457,
- 1000480,
- 1000457,
- 1000446,
- 1000471,
- 1000494,
- 1000495,
- 1000526,
- 1000533,
- 1000561,
- 1000529,
- 1000542,
- 1000533,
- 1000537,
- 1000556,
- 1000525,
- 1000543,
- 1000566,
- 1000566,
- 1000566,
- 1000581,
- 1000548,
- 1000548,
- 1000521,
- 1000533,
- 1000516,
- 1000517,
- 1000546,
- 1000558,
- 1000523,
- 1000527,
- 1000513,
- 1000496,
- 1000504,
- 1000479,
- 1000487,
- 1000498,
- 1000487,
- 1000458,
- 1000461,
- 1000456,
- 1000442,
- 1000446,
- 1000444,
- 1000434,
- 1000412,
- 1000425,
- 1000420,
- 1000437,
- 1000442,
- 1000432,
- 1000445,
- 1000422,
- 1000423,
- 1000441,
- 1000469,
- 1000454,
- 1000452,
- 1000484,
- 1000485,
- 1000487,
- 1000491,
- 1000495,
- 1000493,
- 1000510,
- 1000527,
- 1000555,
- 1000571,
- 1000561,
- 1000541,
- 1000564,
- 1000535,
- 1000530,
- 1000521,
- 1000490,
- 1000491,
- 1000512,
- 1000518,
- 1000497,
- 1000467,
- 1000490,
- 1000464,
- 1000488,
- 1000458,
- 1000441,
- 1000444,
- 1000463,
- 1000492,
- 1000474,
- 1000480,
- 1000466,
- 1000464,
- 1000491,
- 1000510,
- 1000528,
- 1000511,
- 1000504,
- 1000494,
- 1000506,
- 1000522,
- 1000511,
- 1000527,
- 1000528,
- 1000501,
- 1000529,
- 1000509,
- 1000478,
- 1000499,
- 1000475,
- 1000505,
- 1000514,
- 1000497,
- 1000498,
- 1000519,
- 1000535,
- 1000509,
- 1000526,
- 1000514,
- 1000498,
- 1000527,
- 1000549,
- 1000527,
- 1000547,
- 1000554,
- 1000576,
- 1000541,
- 1000521,
- 1000532,
- 1000506,
- 1000526,
- 1000512,
- 1000513,
- 1000516,
- 1000486,
- 1000507,
- 1000511,
- 1000496,
- 1000524,
- 1000547,
- 1000533,
- 1000507,
- 1000533,
- 1000545,
- 1000567,
- 1000556,
- 1000556,
- 1000565,
- 1000572,
- 1000562,
- 1000535,
- 1000532,
- 1000524,
- 1000545,
- 1000528,
- 1000510,
- 1000499,
- 1000492,
- 1000490,
- 1000480,
- 1000483,
- 1000465,
- 1000445,
- 1000418,
- 1000417,
- 1000391,
- 1000378,
- 1000371,
- 1000369,
- 1000358,
- 1000354,
- 1000349,
- 1000345,
- 1000359,
- 1000349,
- 1000370,
- 1000383,
- 1000385,
- 1000387,
- 1000382,
- 1000394,
- 1000395,
- 1000431,
- 1000419,
- 1000420,
- 1000398,
- 1000389,
- 1000368,
- 1000392,
- 1000370,
- 1000368,
- 1000357,
- 1000347,
- 1000344,
- 1000371,
- 1000351,
- 1000386,
- 1000390,
- 1000384,
- 1000360,
- 1000393,
- 1000420,
- 1000420,
- 1000442,
- 1000423,
- 1000403,
- 1000411,
- 1000412,
- 1000424,
- 1000455,
- 1000432,
- 1000431,
- 1000463,
- 1000436,
- 1000466,
- 1000495,
- 1000520,
- 1000538,
- 1000505,
- 1000473,
- 1000475,
- 1000470,
- 1000493,
- 1000493,
- 1000519,
- 1000514,
- 1000519,
- 1000534,
- 1000550,
- 1000550,
- 1000541,
- 1000552,
- 1000547,
- 1000552,
- 1000579,
- 1000552,
- 1000550,
- 1000528,
- 1000529,
- 1000522,
- 1000490,
- 1000495,
- 1000508,
- 1000534,
- 1000508,
- 1000494,
- 1000463,
- 1000470,
- 1000465,
- 1000478,
- 1000508,
- 1000529,
- 1000517,
- 1000539,
- 1000512,
- 1000512,
- 1000513,
- 1000539,
- 1000566,
- 1000569,
- 1000594,
- 1000604,
- 1000600,
- 1000608,
- 1000571,
- 1000560,
- 1000531,
- 1000514,
- 1000504,
- 1000483,
- 1000510,
- 1000525,
- 1000527,
- 1000517,
- 1000539,
- 1000556,
- 1000563,
- 1000532,
- 1000514,
- 1000528,
- 1000509,
- 1000519,
- 1000545,
- 1000542,
- 1000523,
- 1000532,
- 1000516,
- 1000492,
- 1000503,
- 1000499,
- 1000514,
- 1000490,
- 1000500,
- 1000493,
- 1000505,
- 1000530,
- 1000510,
- 1000494,
- 1000483,
- 1000454,
- 1000471,
- 1000451,
- 1000437,
- 1000415,
- 1000433,
- 1000448,
- 1000461,
- 1000443,
- 1000439,
- 1000421,
- 1000433,
- 1000445,
- 1000443,
- 1000422,
- 1000410,
- 1000443,
- 1000443,
- 1000471,
- 1000469,
- 1000490,
- 1000502,
- 1000472,
- 1000457,
- 1000487,
- 1000470,
- 1000479,
- 1000501,
- 1000518,
- 1000512,
- 1000525,
- 1000536,
- 1000532,
- 1000557,
- 1000531,
- 1000502,
- 1000512,
- 1000520,
- 1000499,
- 1000505,
- 1000485,
- 1000470,
- 1000446,
- 1000421,
- 1000397,
- 1000418,
- 1000430,
- 1000444,
- 1000431,
- 1000428,
- 1000428,
- 1000442,
- 1000451,
- 1000460,
- 1000434,
- 1000419,
- 1000441,
- 1000429,
- 1000429,
- 1000456,
- 1000451,
- 1000470,
- 1000478,
- 1000497,
- 1000512,
- 1000514,
- 1000543,
- 1000570,
- 1000557,
- 1000541,
- 1000566,
- 1000575,
- 1000546,
- 1000543,
- 1000529,
- 1000525,
- 1000512,
- 1000519,
- 1000499,
- 1000495,
- 1000501,
- 1000512,
- 1000484,
- 1000512,
- 1000488,
- 1000470,
- 1000452,
- 1000479,
- 1000477,
- 1000486,
- 1000499,
- 1000511,
- 1000504,
- 1000476,
- 1000450,
- 1000455,
- 1000428,
- 1000420,
- 1000417,
- 1000419,
- 1000432,
- 1000422,
- 1000416,
- 1000419,
- 1000413,
- 1000421,
- 1000402,
- 1000424,
- 1000427,
- 1000417,
- 1000405,
- 1000400,
- 1000389,
- 1000378,
- 1000379,
- 1000374,
- 1000392,
- 1000428,
- 1000435,
- 1000409,
- 1000439,
- 1000433,
- 1000412,
- 1000398,
- 1000381,
- 1000410,
- 1000424,
- 1000422,
- 1000437,
- 1000422,
- 1000447,
- 1000419,
- 1000423,
- 1000456,
- 1000431,
- 1000455,
- 1000445,
- 1000422,
- 1000432,
- 1000452,
- 1000426,
- 1000436,
- 1000432,
- 1000435,
- 1000440,
- 1000416,
- 1000445,
- 1000462,
- 1000437,
- 1000416,
- 1000420,
- 1000441,
- 1000418,
- 1000435,
- 1000419,
- 1000405,
- 1000405,
- 1000405,
- 1000390,
- 1000386,
- 1000365,
- 1000368,
- 1000390,
- 1000370,
- 1000383,
- 1000382,
- 1000371,
- 1000359,
- 1000371,
- 1000406,
- 1000423,
- 1000413,
- 1000400,
- 1000387,
- 1000405,
- 1000416,
- 1000448,
- 1000454,
- 1000475,
- 1000452,
- 1000470,
- 1000475,
- 1000493,
- 1000511,
- 1000488,
- 1000467,
- 1000457,
- 1000459,
- 1000473,
- 1000487,
- 1000512,
- 1000523,
- 1000532,
- 1000521,
- 1000505,
- 1000478,
- 1000457,
- 1000448,
- 1000432,
- 1000433,
- 1000454,
- 1000440,
- 1000425,
- 1000405,
- 1000423,
- 1000422,
- 1000427,
- 1000447,
- 1000481,
- 1000462,
- 1000452,
- 1000447,
- 1000463,
- 1000493,
- 1000491,
- 1000472,
- 1000458,
- 1000457,
- 1000473,
- 1000498,
- 1000469,
- 1000466,
- 1000456,
- 1000450,
- 1000430,
- 1000445,
- 1000450,
- 1000446,
- 1000418,
- 1000411,
- 1000434,
- 1000466,
- 1000478,
- 1000466,
- 1000488,
- 1000458,
- 1000483,
- 1000472,
- 1000478,
- 1000483,
- 1000474,
- 1000488,
- 1000479,
- 1000474,
- 1000482,
- 1000492,
- 1000463,
- 1000469,
- 1000484,
- 1000482,
- 1000481,
- 1000454,
- 1000430,
- 1000403,
- 1000399,
- 1000416,
- 1000398,
- 1000386,
- 1000386,
- 1000387,
- 1000397,
- 1000406,
- 1000385,
- 1000394,
- 1000375,
- 1000390,
- 1000365,
- 1000387,
- 1000404,
- 1000421,
- 1000454,
- 1000433,
- 1000451,
- 1000428,
- 1000451,
- 1000424,
- 1000438,
- 1000457,
- 1000442,
- 1000475,
- 1000501,
- 1000491,
- 1000489,
- 1000506,
- 1000478,
- 1000484,
- 1000468,
- 1000464,
- 1000461,
- 1000434,
- 1000446,
- 1000443,
- 1000467,
- 1000437,
- 1000441,
- 1000443,
- 1000475,
- 1000506,
- 1000479,
- 1000506,
- 1000512,
- 1000542,
- 1000511,
- 1000536,
- 1000563,
- 1000558,
- 1000541,
- 1000510,
- 1000517,
- 1000486,
- 1000465,
- 1000495,
- 1000481,
- 1000480,
- 1000480,
- 1000492,
- 1000513,
- 1000481,
- 1000485,
- 1000507,
- 1000531,
- 1000525,
- 1000544,
- 1000555,
- 1000547,
- 1000532,
- 1000553,
- 1000551,
- 1000535,
- 1000522,
- 1000504,
- 1000488,
- 1000510,
- 1000508,
- 1000514,
- 1000543,
- 1000570,
- 1000555,
- 1000542,
- 1000525,
- 1000552,
- 1000518,
- 1000504,
- 1000501,
- 1000496,
- 1000491,
- 1000466,
- 1000463,
- 1000483,
- 1000506,
- 1000486,
- 1000500,
- 1000501,
- 1000527,
- 1000519,
- 1000523,
- 1000524,
- 1000544,
- 1000529,
- 1000554,
- 1000534,
- 1000555,
- 1000550,
- 1000539,
- 1000511,
- 1000483,
- 1000498,
- 1000515,
- 1000531,
- 1000511,
- 1000500,
- 1000495,
- 1000503,
- 1000531,
- 1000526,
- 1000493,
- 1000462,
- 1000494,
- 1000511,
- 1000519,
- 1000546,
- 1000537,
- 1000532,
- 1000512,
- 1000501,
- 1000484,
- 1000495,
- 1000480,
- 1000511,
- 1000525,
- 1000510,
- 1000503,
- 1000532,
- 1000499,
- 1000511,
- 1000534,
- 1000541,
- 1000533,
- 1000553,
- 1000533,
- 1000529,
- 1000557,
- 1000550,
- 1000530,
- 1000510,
- 1000528,
- 1000543,
- 1000539,
- 1000554,
- 1000528,
- 1000543,
- 1000565,
- 1000588,
- 1000594,
- 1000616,
- 1000580,
- 1000577,
- 1000559,
- 1000567,
- 1000590,
- 1000559,
- 1000572,
- 1000576,
- 1000544,
- 1000561,
- 1000548,
- 1000550,
- 1000537,
- 1000531,
- 1000552,
- 1000565,
- 1000578,
- 1000559,
- 1000567,
- 1000576,
- 1000563,
- 1000586,
- 1000563,
- 1000574,
- 1000557,
- 1000559,
- 1000536,
- 1000517,
- 1000531,
- 1000558,
- 1000550,
- 1000554,
- 1000539,
- 1000525,
- 1000509,
- 1000507,
- 1000523,
- 1000547,
- 1000544,
- 1000542,
- 1000544,
- 1000519,
- 1000534,
- 1000543,
- 1000527,
- 1000554,
- 1000554,
- 1000555,
- 1000536,
- 1000532,
- 1000536,
- 1000505,
- 1000504,
- 1000505,
- 1000512,
- 1000493,
- 1000483,
- 1000477,
- 1000481,
- 1000459,
- 1000475,
- 1000496,
- 1000470,
- 1000488,
- 1000499,
- 1000472,
- 1000477,
- 1000499,
- 1000524,
- 1000551,
- 1000527,
- 1000521,
- 1000491,
- 1000490,
- 1000477,
- 1000472,
- 1000456,
- 1000447,
- 1000436,
- 1000456,
- 1000430,
- 1000431,
- 1000418,
- 1000401,
- 1000391,
- 1000390,
- 1000372,
- 1000371,
- 1000406,
- 1000393,
- 1000423,
- 1000415,
- 1000407,
- 1000438,
- 1000460,
- 1000432,
- 1000415,
- 1000402,
- 1000424,
- 1000423,
- 1000425,
- 1000424,
- 1000444,
- 1000431,
- 1000405,
- 1000403,
- 1000391,
- 1000428,
- 1000439,
- 1000423,
- 1000429,
- 1000411,
- 1000445,
- 1000460,
- 1000447,
- 1000457,
- 1000440,
- 1000441,
- 1000446,
- 1000462,
- 1000488,
- 1000469,
- 1000445,
- 1000440,
- 1000471,
- 1000453,
- 1000454,
- 1000449,
- 1000443,
- 1000432,
- 1000447,
- 1000462,
- 1000465,
- 1000439,
- 1000469,
- 1000448,
- 1000455,
- 1000460,
- 1000434,
- 1000438,
- 1000468,
- 1000492,
- 1000497,
- 1000520,
- 1000503,
- 1000520,
- 1000527,
- 1000547,
- 1000569,
- 1000553,
- 1000543,
- 1000516,
- 1000513,
- 1000514,
- 1000499,
- 1000522,
- 1000494,
- 1000480,
- 1000494,
- 1000473,
- 1000460,
- 1000486,
- 1000477,
- 1000448,
- 1000425,
- 1000412,
- 1000394,
- 1000411,
- 1000397,
- 1000417,
- 1000422,
- 1000450,
- 1000456,
- 1000440,
- 1000437,
- 1000438,
- 1000454,
- 1000450,
- 1000453,
- 1000433,
- 1000462,
- 1000439,
- 1000412,
- 1000435,
- 1000434,
- 1000443,
- 1000465,
- 1000444,
- 1000422,
- 1000416,
- 1000442,
- 1000417,
- 1000414,
- 1000434,
- 1000410,
- 1000421,
- 1000407,
- 1000436,
- 1000438,
- 1000455,
- 1000480,
- 1000500,
- 1000500,
- 1000524,
-1000546 };
-uint result_ac_increase_length = 1000;
-#endif /* result_increase_result_ac_increase */
diff --git a/cesar/cp/pwl/test/inc/result_stable.h b/cesar/cp/pwl/test/inc/result_stable.h
deleted file mode 100644
index 147e4af46b..0000000000
--- a/cesar/cp/pwl/test/inc/result_stable.h
+++ /dev/null
@@ -1,1006 +0,0 @@
-#ifndef result_stable_result_ac_stable
-#define result_stable_result_ac_stable
-/* File generated by scilab */
-uint result_ac_stable [1000] = {
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
- 1000000,
-1000000 };
-uint result_ac_stable_length = 1000;
-#endif /* result_stable_result_ac_stable */
diff --git a/cesar/cp/pwl/test/inc/table.h b/cesar/cp/pwl/test/inc/table.h
deleted file mode 100644
index 355ddc2f0a..0000000000
--- a/cesar/cp/pwl/test/inc/table.h
+++ /dev/null
@@ -1,1006 +0,0 @@
-#ifndef table_ac_stable
-#define table_ac_stable
-/* File generated by scilab */
-uint ac_stable [1000] = {
- 1000000,
- 2000000,
- 3000000,
- 4000000,
- 5000000,
- 6000000,
- 7000000,
- 8000000,
- 9000000,
- 10000000,
- 11000000,
- 12000000,
- 13000000,
- 14000000,
- 15000000,
- 16000000,
- 17000000,
- 18000000,
- 19000000,
- 20000000,
- 21000000,
- 22000000,
- 23000000,
- 24000000,
- 25000000,
- 26000000,
- 27000000,
- 28000000,
- 29000000,
- 30000000,
- 31000000,
- 32000000,
- 33000000,
- 34000000,
- 35000000,
- 36000000,
- 37000000,
- 38000000,
- 39000000,
- 40000000,
- 41000000,
- 42000000,
- 43000000,
- 44000000,
- 45000000,
- 46000000,
- 47000000,
- 48000000,
- 49000000,
- 50000000,
- 51000000,
- 52000000,
- 53000000,
- 54000000,
- 55000000,
- 56000000,
- 57000000,
- 58000000,
- 59000000,
- 60000000,
- 61000000,
- 62000000,
- 63000000,
- 64000000,
- 65000000,
- 66000000,
- 67000000,
- 68000000,
- 69000000,
- 70000000,
- 71000000,
- 72000000,
- 73000000,
- 74000000,
- 75000000,
- 76000000,
- 77000000,
- 78000000,
- 79000000,
- 80000000,
- 81000000,
- 82000000,
- 83000000,
- 84000000,
- 85000000,
- 86000000,
- 87000000,
- 88000000,
- 89000000,
- 90000000,
- 91000000,
- 92000000,
- 93000000,
- 94000000,
- 95000000,
- 96000000,
- 97000000,
- 98000000,
- 99000000,
- 100000000,
- 101000000,
- 102000000,
- 103000000,
- 104000000,
- 105000000,
- 106000000,
- 107000000,
- 108000000,
- 109000000,
- 110000000,
- 111000000,
- 112000000,
- 113000000,
- 114000000,
- 115000000,
- 116000000,
- 117000000,
- 118000000,
- 119000000,
- 120000000,
- 121000000,
- 122000000,
- 123000000,
- 124000000,
- 125000000,
- 126000000,
- 127000000,
- 128000000,
- 129000000,
- 130000000,
- 131000000,
- 132000000,
- 133000000,
- 134000000,
- 135000000,
- 136000000,
- 137000000,
- 138000000,
- 139000000,
- 140000000,
- 141000000,
- 142000000,
- 143000000,
- 144000000,
- 145000000,
- 146000000,
- 147000000,
- 148000000,
- 149000000,
- 150000000,
- 151000000,
- 152000000,
- 153000000,
- 154000000,
- 155000000,
- 156000000,
- 157000000,
- 158000000,
- 159000000,
- 160000000,
- 161000000,
- 162000000,
- 163000000,
- 164000000,
- 165000000,
- 166000000,
- 167000000,
- 168000000,
- 169000000,
- 170000000,
- 171000000,
- 172000000,
- 173000000,
- 174000000,
- 175000000,
- 176000000,
- 177000000,
- 178000000,
- 179000000,
- 180000000,
- 181000000,
- 182000000,
- 183000000,
- 184000000,
- 185000000,
- 186000000,
- 187000000,
- 188000000,
- 189000000,
- 190000000,
- 191000000,
- 192000000,
- 193000000,
- 194000000,
- 195000000,
- 196000000,
- 197000000,
- 198000000,
- 199000000,
- 200000000,
- 201000000,
- 202000000,
- 203000000,
- 204000000,
- 205000000,
- 206000000,
- 207000000,
- 208000000,
- 209000000,
- 210000000,
- 211000000,
- 212000000,
- 213000000,
- 214000000,
- 215000000,
- 216000000,
- 217000000,
- 218000000,
- 219000000,
- 220000000,
- 221000000,
- 222000000,
- 223000000,
- 224000000,
- 225000000,
- 226000000,
- 227000000,
- 228000000,
- 229000000,
- 230000000,
- 231000000,
- 232000000,
- 233000000,
- 234000000,
- 235000000,
- 236000000,
- 237000000,
- 238000000,
- 239000000,
- 240000000,
- 241000000,
- 242000000,
- 243000000,
- 244000000,
- 245000000,
- 246000000,
- 247000000,
- 248000000,
- 249000000,
- 250000000,
- 251000000,
- 252000000,
- 253000000,
- 254000000,
- 255000000,
- 256000000,
- 257000000,
- 258000000,
- 259000000,
- 260000000,
- 261000000,
- 262000000,
- 263000000,
- 264000000,
- 265000000,
- 266000000,
- 267000000,
- 268000000,
- 269000000,
- 270000000,
- 271000000,
- 272000000,
- 273000000,
- 274000000,
- 275000000,
- 276000000,
- 277000000,
- 278000000,
- 279000000,
- 280000000,
- 281000000,
- 282000000,
- 283000000,
- 284000000,
- 285000000,
- 286000000,
- 287000000,
- 288000000,
- 289000000,
- 290000000,
- 291000000,
- 292000000,
- 293000000,
- 294000000,
- 295000000,
- 296000000,
- 297000000,
- 298000000,
- 299000000,
- 300000000,
- 301000000,
- 302000000,
- 303000000,
- 304000000,
- 305000000,
- 306000000,
- 307000000,
- 308000000,
- 309000000,
- 310000000,
- 311000000,
- 312000000,
- 313000000,
- 314000000,
- 315000000,
- 316000000,
- 317000000,
- 318000000,
- 319000000,
- 320000000,
- 321000000,
- 322000000,
- 323000000,
- 324000000,
- 325000000,
- 326000000,
- 327000000,
- 328000000,
- 329000000,
- 330000000,
- 331000000,
- 332000000,
- 333000000,
- 334000000,
- 335000000,
- 336000000,
- 337000000,
- 338000000,
- 339000000,
- 340000000,
- 341000000,
- 342000000,
- 343000000,
- 344000000,
- 345000000,
- 346000000,
- 347000000,
- 348000000,
- 349000000,
- 350000000,
- 351000000,
- 352000000,
- 353000000,
- 354000000,
- 355000000,
- 356000000,
- 357000000,
- 358000000,
- 359000000,
- 360000000,
- 361000000,
- 362000000,
- 363000000,
- 364000000,
- 365000000,
- 366000000,
- 367000000,
- 368000000,
- 369000000,
- 370000000,
- 371000000,
- 372000000,
- 373000000,
- 374000000,
- 375000000,
- 376000000,
- 377000000,
- 378000000,
- 379000000,
- 380000000,
- 381000000,
- 382000000,
- 383000000,
- 384000000,
- 385000000,
- 386000000,
- 387000000,
- 388000000,
- 389000000,
- 390000000,
- 391000000,
- 392000000,
- 393000000,
- 394000000,
- 395000000,
- 396000000,
- 397000000,
- 398000000,
- 399000000,
- 400000000,
- 401000000,
- 402000000,
- 403000000,
- 404000000,
- 405000000,
- 406000000,
- 407000000,
- 408000000,
- 409000000,
- 410000000,
- 411000000,
- 412000000,
- 413000000,
- 414000000,
- 415000000,
- 416000000,
- 417000000,
- 418000000,
- 419000000,
- 420000000,
- 421000000,
- 422000000,
- 423000000,
- 424000000,
- 425000000,
- 426000000,
- 427000000,
- 428000000,
- 429000000,
- 430000000,
- 431000000,
- 432000000,
- 433000000,
- 434000000,
- 435000000,
- 436000000,
- 437000000,
- 438000000,
- 439000000,
- 440000000,
- 441000000,
- 442000000,
- 443000000,
- 444000000,
- 445000000,
- 446000000,
- 447000000,
- 448000000,
- 449000000,
- 450000000,
- 451000000,
- 452000000,
- 453000000,
- 454000000,
- 455000000,
- 456000000,
- 457000000,
- 458000000,
- 459000000,
- 460000000,
- 461000000,
- 462000000,
- 463000000,
- 464000000,
- 465000000,
- 466000000,
- 467000000,
- 468000000,
- 469000000,
- 470000000,
- 471000000,
- 472000000,
- 473000000,
- 474000000,
- 475000000,
- 476000000,
- 477000000,
- 478000000,
- 479000000,
- 480000000,
- 481000000,
- 482000000,
- 483000000,
- 484000000,
- 485000000,
- 486000000,
- 487000000,
- 488000000,
- 489000000,
- 490000000,
- 491000000,
- 492000000,
- 493000000,
- 494000000,
- 495000000,
- 496000000,
- 497000000,
- 498000000,
- 499000000,
- 500000000,
- 501000000,
- 502000000,
- 503000000,
- 504000000,
- 505000000,
- 506000000,
- 507000000,
- 508000000,
- 509000000,
- 510000000,
- 511000000,
- 512000000,
- 513000000,
- 514000000,
- 515000000,
- 516000000,
- 517000000,
- 518000000,
- 519000000,
- 520000000,
- 521000000,
- 522000000,
- 523000000,
- 524000000,
- 525000000,
- 526000000,
- 527000000,
- 528000000,
- 529000000,
- 530000000,
- 531000000,
- 532000000,
- 533000000,
- 534000000,
- 535000000,
- 536000000,
- 537000000,
- 538000000,
- 539000000,
- 540000000,
- 541000000,
- 542000000,
- 543000000,
- 544000000,
- 545000000,
- 546000000,
- 547000000,
- 548000000,
- 549000000,
- 550000000,
- 551000000,
- 552000000,
- 553000000,
- 554000000,
- 555000000,
- 556000000,
- 557000000,
- 558000000,
- 559000000,
- 560000000,
- 561000000,
- 562000000,
- 563000000,
- 564000000,
- 565000000,
- 566000000,
- 567000000,
- 568000000,
- 569000000,
- 570000000,
- 571000000,
- 572000000,
- 573000000,
- 574000000,
- 575000000,
- 576000000,
- 577000000,
- 578000000,
- 579000000,
- 580000000,
- 581000000,
- 582000000,
- 583000000,
- 584000000,
- 585000000,
- 586000000,
- 587000000,
- 588000000,
- 589000000,
- 590000000,
- 591000000,
- 592000000,
- 593000000,
- 594000000,
- 595000000,
- 596000000,
- 597000000,
- 598000000,
- 599000000,
- 600000000,
- 601000000,
- 602000000,
- 603000000,
- 604000000,
- 605000000,
- 606000000,
- 607000000,
- 608000000,
- 609000000,
- 610000000,
- 611000000,
- 612000000,
- 613000000,
- 614000000,
- 615000000,
- 616000000,
- 617000000,
- 618000000,
- 619000000,
- 620000000,
- 621000000,
- 622000000,
- 623000000,
- 624000000,
- 625000000,
- 626000000,
- 627000000,
- 628000000,
- 629000000,
- 630000000,
- 631000000,
- 632000000,
- 633000000,
- 634000000,
- 635000000,
- 636000000,
- 637000000,
- 638000000,
- 639000000,
- 640000000,
- 641000000,
- 642000000,
- 643000000,
- 644000000,
- 645000000,
- 646000000,
- 647000000,
- 648000000,
- 649000000,
- 650000000,
- 651000000,
- 652000000,
- 653000000,
- 654000000,
- 655000000,
- 656000000,
- 657000000,
- 658000000,
- 659000000,
- 660000000,
- 661000000,
- 662000000,
- 663000000,
- 664000000,
- 665000000,
- 666000000,
- 667000000,
- 668000000,
- 669000000,
- 670000000,
- 671000000,
- 672000000,
- 673000000,
- 674000000,
- 675000000,
- 676000000,
- 677000000,
- 678000000,
- 679000000,
- 680000000,
- 681000000,
- 682000000,
- 683000000,
- 684000000,
- 685000000,
- 686000000,
- 687000000,
- 688000000,
- 689000000,
- 690000000,
- 691000000,
- 692000000,
- 693000000,
- 694000000,
- 695000000,
- 696000000,
- 697000000,
- 698000000,
- 699000000,
- 700000000,
- 701000000,
- 702000000,
- 703000000,
- 704000000,
- 705000000,
- 706000000,
- 707000000,
- 708000000,
- 709000000,
- 710000000,
- 711000000,
- 712000000,
- 713000000,
- 714000000,
- 715000000,
- 716000000,
- 717000000,
- 718000000,
- 719000000,
- 720000000,
- 721000000,
- 722000000,
- 723000000,
- 724000000,
- 725000000,
- 726000000,
- 727000000,
- 728000000,
- 729000000,
- 730000000,
- 731000000,
- 732000000,
- 733000000,
- 734000000,
- 735000000,
- 736000000,
- 737000000,
- 738000000,
- 739000000,
- 740000000,
- 741000000,
- 742000000,
- 743000000,
- 744000000,
- 745000000,
- 746000000,
- 747000000,
- 748000000,
- 749000000,
- 750000000,
- 751000000,
- 752000000,
- 753000000,
- 754000000,
- 755000000,
- 756000000,
- 757000000,
- 758000000,
- 759000000,
- 760000000,
- 761000000,
- 762000000,
- 763000000,
- 764000000,
- 765000000,
- 766000000,
- 767000000,
- 768000000,
- 769000000,
- 770000000,
- 771000000,
- 772000000,
- 773000000,
- 774000000,
- 775000000,
- 776000000,
- 777000000,
- 778000000,
- 779000000,
- 780000000,
- 781000000,
- 782000000,
- 783000000,
- 784000000,
- 785000000,
- 786000000,
- 787000000,
- 788000000,
- 789000000,
- 790000000,
- 791000000,
- 792000000,
- 793000000,
- 794000000,
- 795000000,
- 796000000,
- 797000000,
- 798000000,
- 799000000,
- 800000000,
- 801000000,
- 802000000,
- 803000000,
- 804000000,
- 805000000,
- 806000000,
- 807000000,
- 808000000,
- 809000000,
- 810000000,
- 811000000,
- 812000000,
- 813000000,
- 814000000,
- 815000000,
- 816000000,
- 817000000,
- 818000000,
- 819000000,
- 820000000,
- 821000000,
- 822000000,
- 823000000,
- 824000000,
- 825000000,
- 826000000,
- 827000000,
- 828000000,
- 829000000,
- 830000000,
- 831000000,
- 832000000,
- 833000000,
- 834000000,
- 835000000,
- 836000000,
- 837000000,
- 838000000,
- 839000000,
- 840000000,
- 841000000,
- 842000000,
- 843000000,
- 844000000,
- 845000000,
- 846000000,
- 847000000,
- 848000000,
- 849000000,
- 850000000,
- 851000000,
- 852000000,
- 853000000,
- 854000000,
- 855000000,
- 856000000,
- 857000000,
- 858000000,
- 859000000,
- 860000000,
- 861000000,
- 862000000,
- 863000000,
- 864000000,
- 865000000,
- 866000000,
- 867000000,
- 868000000,
- 869000000,
- 870000000,
- 871000000,
- 872000000,
- 873000000,
- 874000000,
- 875000000,
- 876000000,
- 877000000,
- 878000000,
- 879000000,
- 880000000,
- 881000000,
- 882000000,
- 883000000,
- 884000000,
- 885000000,
- 886000000,
- 887000000,
- 888000000,
- 889000000,
- 890000000,
- 891000000,
- 892000000,
- 893000000,
- 894000000,
- 895000000,
- 896000000,
- 897000000,
- 898000000,
- 899000000,
- 900000000,
- 901000000,
- 902000000,
- 903000000,
- 904000000,
- 905000000,
- 906000000,
- 907000000,
- 908000000,
- 909000000,
- 910000000,
- 911000000,
- 912000000,
- 913000000,
- 914000000,
- 915000000,
- 916000000,
- 917000000,
- 918000000,
- 919000000,
- 920000000,
- 921000000,
- 922000000,
- 923000000,
- 924000000,
- 925000000,
- 926000000,
- 927000000,
- 928000000,
- 929000000,
- 930000000,
- 931000000,
- 932000000,
- 933000000,
- 934000000,
- 935000000,
- 936000000,
- 937000000,
- 938000000,
- 939000000,
- 940000000,
- 941000000,
- 942000000,
- 943000000,
- 944000000,
- 945000000,
- 946000000,
- 947000000,
- 948000000,
- 949000000,
- 950000000,
- 951000000,
- 952000000,
- 953000000,
- 954000000,
- 955000000,
- 956000000,
- 957000000,
- 958000000,
- 959000000,
- 960000000,
- 961000000,
- 962000000,
- 963000000,
- 964000000,
- 965000000,
- 966000000,
- 967000000,
- 968000000,
- 969000000,
- 970000000,
- 971000000,
- 972000000,
- 973000000,
- 974000000,
- 975000000,
- 976000000,
- 977000000,
- 978000000,
- 979000000,
- 980000000,
- 981000000,
- 982000000,
- 983000000,
- 984000000,
- 985000000,
- 986000000,
- 987000000,
- 988000000,
- 989000000,
- 990000000,
- 991000000,
- 992000000,
- 993000000,
- 994000000,
- 995000000,
- 996000000,
- 997000000,
- 998000000,
- 999000000,
-1000000000 };
-uint ac_stable_length = 1000;
-#endif /* table_ac_stable */
diff --git a/cesar/cp/pwl/test/inc/table_decrease.h b/cesar/cp/pwl/test/inc/table_decrease.h
deleted file mode 100644
index 4c1502802d..0000000000
--- a/cesar/cp/pwl/test/inc/table_decrease.h
+++ /dev/null
@@ -1,1006 +0,0 @@
-#ifndef table_decrease_ac_decrease
-#define table_decrease_ac_decrease
-/* File generated by scilab */
-uint ac_decrease [1000] = {
- 978868,
- 1903264,
- 2903242,
- 3870210,
- 4803672,
- 5740833,
- 6655859,
- 7587286,
- 8499465,
- 9492628,
- 10436544,
- 11370309,
- 12297674,
- 13277823,
- 14223398,
- 15200191,
- 16177069,
- 17155423,
- 18067085,
- 19001834,
- 19971074,
- 20877778,
- 21856318,
- 22825054,
- 23788891,
- 24759669,
- 25703027,
- 26654763,
- 27621546,
- 28562196,
- 29512043,
- 30468358,
- 31441427,
- 32378170,
- 33337651,
- 34245804,
- 35241431,
- 36193246,
- 37166851,
- 38125370,
- 39097306,
- 40084506,
- 41006675,
- 41985485,
- 42974272,
- 43905704,
- 44890392,
- 45820684,
- 46736529,
- 47695909,
- 48654961,
- 49567120,
- 50555737,
- 51535754,
- 52479568,
- 53420607,
- 54352068,
- 55263006,
- 56212584,
- 57177648,
- 58138911,
- 59046683,
- 59951802,
- 60917449,
- 61879848,
- 62806439,
- 63780282,
- 64730348,
- 65703963,
- 66651428,
- 67597666,
- 68585667,
- 69563104,
- 70500364,
- 71424280,
- 72419425,
- 73352186,
- 74332015,
- 75292900,
- 76209897,
- 77151110,
- 78102819,
- 79080491,
- 79996483,
- 80984424,
- 81955871,
- 82869796,
- 83784855,
- 84732285,
- 85632973,
- 86568088,
- 87468857,
- 88463853,
- 89388998,
- 90347958,
- 91287113,
- 92201671,
- 93195245,
- 94112455,
- 95019832,
- 95963160,
- 96906044,
- 97824443,
- 98818754,
- 99762795,
- 100750302,
- 101677510,
- 102650733,
- 103596080,
- 104497226,
- 105423270,
- 106422899,
- 107363894,
- 108332930,
- 109307408,
- 110244890,
- 111233316,
- 112172146,
- 113104307,
- 114071107,
- 115068520,
- 116016776,
- 116977608,
- 117953473,
- 118902829,
- 119860468,
- 120831531,
- 121822652,
- 122760524,
- 123725975,
- 124655327,
- 125603213,
- 126574509,
- 127509482,
- 128500669,
- 129455682,
- 130383410,
- 131293643,
- 132269365,
- 133225988,
- 134129218,
- 135078533,
- 136026204,
- 136970235,
- 137914062,
- 138867245,
- 139789300,
- 140710290,
- 141612205,
- 142530335,
- 143487767,
- 144463152,
- 145370857,
- 146360850,
- 147314068,
- 148274564,
- 149270903,
- 150219150,
- 151135896,
- 152074848,
- 153056137,
- 154054242,
- 154969907,
- 155962422,
- 156877094,
- 157875849,
- 158857174,
- 159807969,
- 160733073,
- 161638924,
- 162617684,
- 163559734,
- 164533453,
- 165489844,
- 166398739,
- 167317913,
- 168236887,
- 169210983,
- 170169593,
- 171133594,
- 172064467,
- 172987899,
- 173952173,
- 174875240,
- 175820464,
- 176810842,
- 177715231,
- 178693157,
- 179691725,
- 180609811,
- 181596762,
- 182499942,
- 183434329,
- 184409874,
- 185357043,
- 186272354,
- 187193588,
- 188180968,
- 189102130,
- 190067600,
- 191041002,
- 191943904,
- 192855152,
- 193834485,
- 194749234,
- 195681788,
- 196590260,
- 197587412,
- 198563734,
- 199493581,
- 200481556,
- 201398682,
- 202367072,
- 203314021,
- 204256870,
- 205252090,
- 206169604,
- 207111616,
- 208083698,
- 208988247,
- 209897536,
- 210863935,
- 211852179,
- 212759642,
- 213687006,
- 214596912,
- 215557423,
- 216500872,
- 217430258,
- 218362380,
- 219321051,
- 220307029,
- 221257506,
- 222215558,
- 223129296,
- 224100721,
- 225075600,
- 226041709,
- 227002490,
- 227955675,
- 228922059,
- 229868691,
- 230848301,
- 231832402,
- 232830584,
- 233789601,
- 234788543,
- 235768890,
- 236741635,
- 237707259,
- 238686922,
- 239656803,
- 240629178,
- 241599733,
- 242542553,
- 243521136,
- 244452182,
- 245393627,
- 246351586,
- 247308811,
- 248276966,
- 249219348,
- 250176799,
- 251079180,
- 252053991,
- 253010080,
- 254002487,
- 254976894,
- 255970188,
- 256893677,
- 257889504,
- 258855122,
- 259835421,
- 260814193,
- 261782790,
- 262704574,
- 263699165,
- 264607263,
- 265561228,
- 266531302,
- 267531011,
- 268441077,
- 269357198,
- 270313761,
- 271236083,
- 272222130,
- 273210624,
- 274157070,
- 275113953,
- 276052500,
- 276959911,
- 277949973,
- 278907168,
- 279812850,
- 280809577,
- 281717445,
- 282622955,
- 283532885,
- 284451942,
- 285449423,
- 286449227,
- 287398475,
- 288357715,
- 289273635,
- 290223463,
- 291132176,
- 292087819,
- 293027982,
- 293950564,
- 294871344,
- 295816298,
- 296775448,
- 297703274,
- 298655589,
- 299591659,
- 300492021,
- 301476274,
- 302422768,
- 303401478,
- 304345564,
- 305302515,
- 306300235,
- 307242621,
- 308171130,
- 309077914,
- 310065588,
- 311036933,
- 312035686,
- 312977992,
- 313938606,
- 314869721,
- 315772698,
- 316687541,
- 317653608,
- 318565883,
- 319554569,
- 320501928,
- 321448955,
- 322356038,
- 323258384,
- 324196130,
- 325097905,
- 326022476,
- 326967929,
- 327895069,
- 328892544,
- 329852293,
- 330842462,
- 331816376,
- 332780013,
- 333762547,
- 334670206,
- 335594155,
- 336537753,
- 337499783,
- 338412021,
- 339329847,
- 340261977,
- 341253757,
- 342228230,
- 343153786,
- 344131091,
- 345062722,
- 345969072,
- 346918542,
- 347893294,
- 348825106,
- 349796743,
- 350782649,
- 351715058,
- 352669932,
- 353594502,
- 354580800,
- 355514718,
- 356475818,
- 357405800,
- 358314120,
- 359292892,
- 360265914,
- 361233916,
- 362231595,
- 363158941,
- 364143601,
- 365120049,
- 366111252,
- 367040193,
- 367971306,
- 368905353,
- 369887202,
- 370848153,
- 371832284,
- 372769877,
- 373706117,
- 374663413,
- 375652697,
- 376628875,
- 377534246,
- 378488480,
- 379398836,
- 380354452,
- 381273557,
- 382205240,
- 383201839,
- 384178034,
- 385083114,
- 386061287,
- 386999741,
- 387916606,
- 388839266,
- 389796825,
- 390724204,
- 391653205,
- 392605748,
- 393511362,
- 394496766,
- 395489625,
- 396422288,
- 397356919,
- 398336951,
- 399276810,
- 400257817,
- 401231978,
- 402222100,
- 403215901,
- 404211867,
- 405137866,
- 406076240,
- 407010405,
- 407985260,
- 408946827,
- 409902863,
- 410837456,
- 411778675,
- 412718467,
- 413713932,
- 414693638,
- 415615196,
- 416588821,
- 417544989,
- 418458341,
- 419420420,
- 420343733,
- 421283667,
- 422205100,
- 423131229,
- 424075787,
- 424976496,
- 425878922,
- 426841826,
- 427811504,
- 428716309,
- 429645031,
- 430633108,
- 431583017,
- 432550117,
- 433502028,
- 434468992,
- 435405948,
- 436384777,
- 437339917,
- 438280772,
- 439212705,
- 440205313,
- 441110977,
- 442098114,
- 443077924,
- 444058231,
- 444968945,
- 445922766,
- 446860254,
- 447789657,
- 448719476,
- 449678597,
- 450672235,
- 451665662,
- 452612352,
- 453609037,
- 454577459,
- 455539601,
- 456493406,
- 457430533,
- 458401748,
- 459368828,
- 460321636,
- 461288099,
- 462232569,
- 463220609,
- 464144470,
- 465096561,
- 466068392,
- 467044592,
- 468011650,
- 468988583,
- 469967221,
- 470926672,
- 471895719,
- 472828090,
- 473731021,
- 474676604,
- 475674557,
- 476585144,
- 477550241,
- 478539188,
- 479518955,
- 480505909,
- 481420170,
- 482356390,
- 483315679,
- 484248760,
- 485228334,
- 486145230,
- 487144009,
- 488095165,
- 488999667,
- 489993793,
- 490911209,
- 491881402,
- 492873645,
- 493815185,
- 494739898,
- 495734726,
- 496675140,
- 497636803,
- 498587801,
- 499535074,
- 500528185,
- 501439755,
- 502367843,
- 503360901,
- 504349379,
- 505300753,
- 506224038,
- 507215233,
- 508145148,
- 509126357,
- 510106179,
- 511065551,
- 512024585,
- 513006890,
- 513973761,
- 514968577,
- 515927085,
- 516854873,
- 517847127,
- 518788569,
- 519751490,
- 520730329,
- 521711297,
- 522655218,
- 523560971,
- 524492794,
- 525465452,
- 526444735,
- 527425356,
- 528357378,
- 529298542,
- 530205225,
- 531150134,
- 532069729,
- 533058985,
- 533984946,
- 534928843,
- 535852232,
- 536773926,
- 537759538,
- 538743067,
- 539711293,
- 540661028,
- 541591824,
- 542521759,
- 543433053,
- 544363256,
- 545295267,
- 546259108,
- 547232369,
- 548224633,
- 549209692,
- 550177674,
- 551157414,
- 552112426,
- 553035351,
- 554010999,
- 554989738,
- 555978746,
- 556908932,
- 557867423,
- 558817125,
- 559742009,
- 560642608,
- 561624321,
- 562594102,
- 563556248,
- 564484717,
- 565389476,
- 566342437,
- 567323728,
- 568298157,
- 569253807,
- 570181467,
- 571093848,
- 572090115,
- 573047181,
- 574015609,
- 574978785,
- 575964198,
- 576896515,
- 577843896,
- 578803860,
- 579803569,
- 580772888,
- 581693862,
- 582598083,
- 583531191,
- 584501895,
- 585419657,
- 586417859,
- 587330752,
- 588298942,
- 589241698,
- 590184312,
- 591149392,
- 592078720,
- 593042728,
- 594002205,
- 594940797,
- 595875557,
- 596872606,
- 597815918,
- 598744778,
- 599698894,
- 600651689,
- 601645452,
- 602636908,
- 603635563,
- 604600133,
- 605532940,
- 606519334,
- 607498137,
- 608457978,
- 609417616,
- 610361333,
- 611306023,
- 612298334,
- 613244727,
- 614235725,
- 615173545,
- 616173533,
- 617101336,
- 618034724,
- 618966732,
- 619871591,
- 620859522,
- 621786333,
- 622778017,
- 623697798,
- 624694894,
- 625629865,
- 626555587,
- 627533821,
- 628435937,
- 629346685,
- 630311573,
- 631264117,
- 632187123,
- 633179780,
- 634120834,
- 635097045,
- 636056282,
- 637013234,
- 638009527,
- 638945486,
- 639904179,
- 640820210,
- 641820189,
- 642769336,
- 643721787,
- 644625537,
- 645527557,
- 646519701,
- 647428201,
- 648366475,
- 649266834,
- 650262149,
- 651169690,
- 652072792,
- 653023630,
- 653993860,
- 654987830,
- 655924696,
- 656922286,
- 657907012,
- 658812201,
- 659784759,
- 660736812,
- 661688255,
- 662620615,
- 663537403,
- 664536145,
- 665481608,
- 666397341,
- 667307050,
- 668262956,
- 669179633,
- 670107294,
- 671063523,
- 672032717,
- 672945219,
- 673891661,
- 674860802,
- 675827256,
- 676803832,
- 677777938,
- 678692723,
- 679644506,
- 680583554,
- 681484826,
- 682386712,
- 683353681,
- 684317790,
- 685289985,
- 686194151,
- 687192588,
- 688162945,
- 689116086,
- 690073466,
- 691031290,
- 692020942,
- 692978145,
- 693899538,
- 694813858,
- 695793924,
- 696722611,
- 697670522,
- 698577405,
- 699535967,
- 700476166,
- 701420675,
- 702335146,
- 703304169,
- 704209708,
- 705185282,
- 706097678,
- 707048936,
- 708010496,
- 709001273,
- 709994219,
- 710920831,
- 711842910,
- 712764634,
- 713743019,
- 714708818,
- 715665809,
- 716603192,
- 717507650,
- 718462235,
- 719461943,
- 720460874,
- 721363411,
- 722286369,
- 723222403,
- 724127045,
- 725085561,
- 726038946,
- 727016562,
- 727981993,
- 728958587,
- 729892394,
- 730865483,
- 731767181,
- 732693248,
- 733664227,
- 734624268,
- 735526346,
- 736525591,
- 737455381,
- 738366306,
- 739301037,
- 740259675,
- 741173859,
- 742149899,
- 743101699,
- 744003214,
- 744958517,
- 745935219,
- 746912874,
- 747832849,
- 748755342,
- 749707092,
- 750628644,
- 751613298,
- 752536070,
- 753446550,
- 754351877,
- 755282059,
- 756186468,
- 757181628,
- 758128393,
- 759098925,
- 760029154,
- 760935392,
- 761924637,
- 762847003,
- 763783269,
- 764776639,
- 765694945,
- 766659472,
- 767600867,
- 768566257,
- 769522010,
- 770433784,
- 771357348,
- 772279707,
- 773251631,
- 774182545,
- 775110798,
- 776073597,
- 776980343,
- 777957777,
- 778882566,
- 779851819,
- 780792026,
- 781772788,
- 782748918,
- 783674210,
- 784577079,
- 785533376,
- 786471128,
- 787438215,
- 788405252,
- 789377566,
- 790328837,
- 791251517,
- 792160742,
- 793110620,
- 794059025,
- 795001099,
- 795985636,
- 796909525,
- 797840446,
- 798811714,
- 799715289,
- 800658682,
- 801600861,
- 802574227,
- 803526757,
- 804466022,
- 805461925,
- 806411800,
- 807358841,
- 808296247,
- 809274054,
- 810239380,
- 811199869,
- 812145441,
- 813131134,
- 814059480,
- 814976791,
- 815968753,
- 816892406,
- 817824694,
- 818816686,
- 819760370,
- 820676369,
- 821584940,
- 822489279,
- 823472514,
- 824429055,
- 825424880,
- 826376553,
- 827347660,
- 828306503,
- 829284501,
- 830253055,
- 831225716,
- 832148798,
- 833143313,
- 834097990,
- 835075362,
- 836060495,
- 837036145,
- 837997700,
- 838986288,
- 839949792,
- 840855998,
- 841834610,
- 842746533,
- 843716280,
- 844686922,
- 845596244,
- 846516650,
- 847514627,
- 848497407,
- 849475410,
- 850399921,
- 851359028,
- 852312221,
- 853270133,
- 854195329,
- 855170773,
- 856168196,
- 857129440,
- 858107521,
- 859008779,
- 859946921,
- 860928591,
- 861875460,
- 862860409,
- 863764794,
- 864694845,
- 865669011,
- 866607459,
- 867588429,
- 868542354,
- 869490154,
- 870419616,
- 871330868,
- 872312286,
- 873303061,
- 874265265,
- 875171572,
- 876151767,
- 877104747,
- 878066959,
- 879030663,
- 880002730,
- 880935516,
- 881866427,
- 882815380,
- 883809274,
- 884715921,
- 885701432,
- 886644220,
- 887589622,
- 888584456,
- 889534346,
- 890441737,
- 891356268,
- 892297698,
- 893209780,
- 894184460,
- 895105421,
- 896042123,
- 896956100,
- 897865904,
- 898834317,
- 899794307,
- 900783199,
- 901736148,
- 902682521,
- 903653737,
- 904566336,
- 905558928,
- 906530779,
- 907459942,
- 908443416,
- 909416743,
- 910328549,
- 911293178,
- 912290532,
- 913281916,
- 914258777,
- 915245371,
- 916178131,
- 917159102,
- 918086027,
- 919035543,
- 919947632,
- 920892188,
- 921871556,
- 922831440,
- 923785847,
- 924716076,
- 925676417,
- 926626579,
- 927612055,
- 928521302,
- 929511210,
- 930509439,
- 931430063,
- 932386972,
- 933328539,
- 934248997,
- 935235091,
- 936224964,
- 937191796,
- 938108352,
- 939102853,
- 940065893,
- 940991361,
- 941985643,
- 942925647,
- 943904790,
- 944816802,
- 945768974,
- 946697814,
- 947611956,
- 948531174,
- 949479575,
- 950390402,
-951301979 };
-uint ac_decrease_length = 1000;
-#endif /* table_decrease_ac_decrease */
diff --git a/cesar/cp/pwl/test/inc/table_increase.h b/cesar/cp/pwl/test/inc/table_increase.h
deleted file mode 100644
index 9ce6c22670..0000000000
--- a/cesar/cp/pwl/test/inc/table_increase.h
+++ /dev/null
@@ -1,1006 +0,0 @@
-#ifndef table_increase_ac_increase
-#define table_increase_ac_increase
-/* File generated by scilab */
-uint ac_increase [1000] = {
- 1000211,
- 2000967,
- 3000967,
- 4001297,
- 5001962,
- 6002590,
- 7003439,
- 8004124,
- 9005002,
- 10005070,
- 11005630,
- 12006292,
- 13007018,
- 14007216,
- 15007760,
- 16007992,
- 17008223,
- 18008439,
- 19009322,
- 20009974,
- 21010281,
- 22011213,
- 23011427,
- 24011739,
- 25012100,
- 26012392,
- 27012958,
- 28013440,
- 29013772,
- 30014365,
- 31014866,
- 32015302,
- 33015571,
- 34016203,
- 35016608,
- 36017526,
- 37017569,
- 38018050,
- 39018313,
- 40018727,
- 41019007,
- 42019135,
- 43019913,
- 44020124,
- 45020236,
- 46020921,
- 47021074,
- 48021771,
- 49022612,
- 50023018,
- 51023427,
- 52024305,
- 53024418,
- 54024617,
- 55025178,
- 56025767,
- 57026452,
- 58027342,
- 59027846,
- 60028195,
- 61028582,
- 62029504,
- 63030452,
- 64030795,
- 65031171,
- 66031905,
- 67032166,
- 68032665,
- 69032928,
- 70033453,
- 71033990,
- 72034109,
- 73034334,
- 74034961,
- 75035721,
- 76035769,
- 77036441,
- 78036642,
- 79037033,
- 80037863,
- 81038450,
- 82038932,
- 83039155,
- 84039995,
- 85040115,
- 86040400,
- 87041260,
- 88042109,
- 89042634,
- 90043627,
- 91044275,
- 92045267,
- 93045317,
- 94046065,
- 95046475,
- 96047083,
- 97047937,
- 98048001,
- 99048828,
- 100049754,
- 101050320,
- 102050891,
- 103051707,
- 104051763,
- 105052322,
- 106052446,
- 107053173,
- 108053440,
- 109053986,
- 110054974,
- 111055713,
- 112055716,
- 113056306,
- 114056615,
- 115056870,
- 116057495,
- 117057610,
- 118058221,
- 119058899,
- 120059231,
- 121059256,
- 122059773,
- 123060164,
- 124060405,
- 125060911,
- 126061334,
- 127061623,
- 128061711,
- 129062332,
- 130062677,
- 131063383,
- 132063904,
- 133064191,
- 134064841,
- 135064929,
- 136065378,
- 137066100,
- 138066997,
- 139067239,
- 140067672,
- 141068639,
- 142069145,
- 143069668,
- 144070227,
- 145070788,
- 146071256,
- 147072035,
- 148072825,
- 149073805,
- 150074623,
- 151075048,
- 152075294,
- 153076216,
- 154076316,
- 155076783,
- 156077178,
- 157077214,
- 158077731,
- 159078563,
- 160079173,
- 161079360,
- 162079378,
- 163080221,
- 164080295,
- 165081148,
- 166081160,
- 167081346,
- 168081838,
- 169082586,
- 170083527,
- 171083739,
- 172084318,
- 173084580,
- 174085016,
- 175085927,
- 176086735,
- 177087545,
- 178087804,
- 179088217,
- 180088576,
- 181089267,
- 182090032,
- 183090389,
- 184091158,
- 185091705,
- 186091801,
- 187092757,
- 188092977,
- 189092991,
- 190093810,
- 191093940,
- 192094908,
- 193095564,
- 194095808,
- 195096336,
- 196097182,
- 197097969,
- 198098095,
- 199098883,
- 200099228,
- 201099493,
- 202100463,
- 203101350,
- 204101556,
- 205102408,
- 206103082,
- 207103997,
- 208104025,
- 209104261,
- 210104962,
- 211105082,
- 212105910,
- 213106226,
- 214106756,
- 215107327,
- 216107374,
- 217108198,
- 218108777,
- 219109056,
- 220110010,
- 221110917,
- 222111253,
- 223111370,
- 224112295,
- 225113021,
- 226113921,
- 227114315,
- 228114880,
- 229115586,
- 230116264,
- 231116677,
- 232116817,
- 233117312,
- 234117731,
- 235118593,
- 236118878,
- 237119129,
- 238119467,
- 239119859,
- 240120327,
- 241120663,
- 242121196,
- 243121399,
- 244121557,
- 245121575,
- 246121984,
- 247121994,
- 248122190,
- 249122462,
- 250122805,
- 251123008,
- 252123309,
- 253123585,
- 254123879,
- 255124450,
- 256124664,
- 257125353,
- 258125938,
- 259126358,
- 260126785,
- 261127103,
- 262127679,
- 263128104,
- 264129080,
- 265129331,
- 266129770,
- 267129845,
- 268130100,
- 269130167,
- 270130932,
- 271130973,
- 272131316,
- 273131513,
- 274131725,
- 275132039,
- 276132821,
- 277132875,
- 278133794,
- 279134254,
- 280134553,
- 281134555,
- 282135454,
- 283136292,
- 284136726,
- 285137502,
- 286137641,
- 287137756,
- 288138291,
- 289138722,
- 290139336,
- 291140261,
- 292140360,
- 293140788,
- 294141731,
- 295141763,
- 296142684,
- 297143628,
- 298144528,
- 299145337,
- 300145362,
- 301145363,
- 302145870,
- 303146277,
- 304147117,
- 305147618,
- 306148530,
- 307148973,
- 308149571,
- 309150345,
- 310151137,
- 311151687,
- 312152095,
- 313152816,
- 314153292,
- 315153931,
- 316154927,
- 317155084,
- 318155619,
- 319155831,
- 320156390,
- 321156820,
- 322156842,
- 323157418,
- 324158132,
- 325159064,
- 326159187,
- 327159473,
- 328159485,
- 329160061,
- 330160454,
- 331161142,
- 332162112,
- 333162963,
- 334163302,
- 335164179,
- 336164292,
- 337164818,
- 338165347,
- 339166276,
- 340167252,
- 341167874,
- 342168856,
- 343169610,
- 344170155,
- 345170883,
- 346170908,
- 347171310,
- 348171408,
- 349171668,
- 350172031,
- 351172205,
- 352173128,
- 353173888,
- 354174452,
- 355174831,
- 356175708,
- 357176529,
- 358177207,
- 359177289,
- 360177544,
- 361178288,
- 362178514,
- 363179197,
- 364180133,
- 365180638,
- 366180890,
- 367181571,
- 368181854,
- 369181994,
- 370182669,
- 371183120,
- 372183874,
- 373184011,
- 374184671,
- 375185060,
- 376185760,
- 377186676,
- 378186888,
- 379187157,
- 380187476,
- 381187499,
- 382188225,
- 383188378,
- 384188613,
- 385188700,
- 386189410,
- 387190098,
- 388190757,
- 389190938,
- 390191328,
- 391191486,
- 392192110,
- 393192747,
- 394193174,
- 395193281,
- 396193519,
- 397194465,
- 398194922,
- 399195818,
- 400196261,
- 401197069,
- 402197752,
- 403197786,
- 404198024,
- 405198973,
- 406199191,
- 407199806,
- 408200637,
- 409201410,
- 410201834,
- 411202560,
- 412203269,
- 413203743,
- 414204686,
- 415204831,
- 416204902,
- 417205575,
- 418206228,
- 419206427,
- 420207028,
- 421207217,
- 422207475,
- 423207573,
- 424207634,
- 425207674,
- 426208414,
- 427209030,
- 428209688,
- 429209939,
- 430210323,
- 431210762,
- 432211416,
- 433212003,
- 434212605,
- 435212650,
- 436212852,
- 437213636,
- 438213899,
- 439214337,
- 440215203,
- 441215582,
- 442216348,
- 443216948,
- 444217733,
- 445218471,
- 446219025,
- 447220017,
- 448220992,
- 449221362,
- 450221665,
- 451222616,
- 452223328,
- 453223447,
- 454223947,
- 455224276,
- 456224756,
- 457225086,
- 458225716,
- 459225927,
- 460226375,
- 461226966,
- 462227646,
- 463227719,
- 464228662,
- 465228790,
- 466228991,
- 467229187,
- 468230079,
- 469230540,
- 470231165,
- 471231870,
- 472232571,
- 473232979,
- 474233042,
- 475233107,
- 476233640,
- 477233673,
- 478233988,
- 479234366,
- 480234827,
- 481235455,
- 482235742,
- 483236071,
- 484236542,
- 485236877,
- 486237432,
- 487237551,
- 488238312,
- 489238791,
- 490239072,
- 491239310,
- 492239639,
- 493239869,
- 494240082,
- 495240487,
- 496240796,
- 497241472,
- 498242442,
- 499242986,
- 500243006,
- 501243900,
- 502244249,
- 503244359,
- 504244561,
- 505244691,
- 506245548,
- 507246185,
- 508246592,
- 509247261,
- 510247465,
- 511248296,
- 512248308,
- 513248796,
- 514249750,
- 515249808,
- 516250633,
- 517250931,
- 518251008,
- 519251592,
- 520252344,
- 521252395,
- 522252990,
- 523253373,
- 524253863,
- 525254390,
- 526254458,
- 527255342,
- 528256061,
- 529256130,
- 530256245,
- 531256731,
- 532257498,
- 533257586,
- 534258286,
- 535258473,
- 536258674,
- 537259080,
- 538259489,
- 539259665,
- 540259996,
- 541260047,
- 542260461,
- 543261183,
- 544261260,
- 545261845,
- 546262215,
- 547262426,
- 548262616,
- 549263176,
- 550264118,
- 551264799,
- 552265072,
- 553265279,
- 554265472,
- 555266151,
- 556266739,
- 557267672,
- 558268222,
- 559269026,
- 560269133,
- 561269873,
- 562270434,
- 563271200,
- 564271983,
- 565272126,
- 566272290,
- 567272607,
- 568273109,
- 569273801,
- 570274501,
- 571275388,
- 572276085,
- 573276764,
- 574277125,
- 575277392,
- 576277469,
- 577277618,
- 578277938,
- 579278140,
- 580278589,
- 581279359,
- 582279602,
- 583279814,
- 584279923,
- 585280621,
- 586281036,
- 587281538,
- 588282289,
- 589283283,
- 590283465,
- 591283767,
- 592284145,
- 593284860,
- 594285812,
- 595286282,
- 596286469,
- 597286724,
- 598287167,
- 599287890,
- 600288766,
- 601288803,
- 602289232,
- 603289547,
- 604289915,
- 605290060,
- 606290736,
- 607291262,
- 608291662,
- 609291664,
- 610291970,
- 611292760,
- 612293717,
- 613294385,
- 614294677,
- 615295499,
- 616295516,
- 617296387,
- 618296705,
- 619297277,
- 620297850,
- 621298199,
- 622298905,
- 623299264,
- 624299669,
- 625300283,
- 626300935,
- 627300964,
- 628301530,
- 629302241,
- 630302699,
- 631303171,
- 632303233,
- 633303318,
- 634303331,
- 635303685,
- 636304356,
- 637304492,
- 638304703,
- 639305104,
- 640305507,
- 641306069,
- 642306622,
- 643306698,
- 644307234,
- 645307324,
- 646307945,
- 647307945,
- 648308666,
- 649309332,
- 650310011,
- 651310962,
- 652311082,
- 653311813,
- 654311896,
- 655312698,
- 656312727,
- 657313377,
- 658314119,
- 659314336,
- 660315314,
- 661316206,
- 662316557,
- 663317031,
- 664317800,
- 665317873,
- 666318462,
- 667318699,
- 668319106,
- 669319536,
- 670319573,
- 671320213,
- 672320626,
- 673321465,
- 674321465,
- 675321973,
- 676322448,
- 677323410,
- 678324389,
- 679324467,
- 680325382,
- 681325999,
- 682326995,
- 683327041,
- 684327965,
- 685328933,
- 686329424,
- 687329721,
- 688329781,
- 689330412,
- 690330436,
- 691330588,
- 692331536,
- 693331810,
- 694332289,
- 695332774,
- 696333450,
- 697334282,
- 698334294,
- 699334839,
- 700335681,
- 701336583,
- 702337023,
- 703337856,
- 704338579,
- 705339016,
- 706339324,
- 707340198,
- 708340733,
- 709341041,
- 710341376,
- 711341610,
- 712341868,
- 713342720,
- 714343202,
- 715343811,
- 716344798,
- 717345779,
- 718346109,
- 719346467,
- 720346745,
- 721347703,
- 722347718,
- 723348014,
- 724348482,
- 725348908,
- 726349329,
- 727349432,
- 728349859,
- 729350645,
- 730351501,
- 731351700,
- 732352413,
- 733352933,
- 734353864,
- 735354278,
- 736354876,
- 737355430,
- 738356285,
- 739356594,
- 740357538,
- 741357782,
- 742358658,
- 743359145,
- 744359529,
- 745359621,
- 746359691,
- 747360424,
- 748361203,
- 749361985,
- 750362201,
- 751362543,
- 752362973,
- 753363599,
- 754364554,
- 755365008,
- 756365010,
- 757365020,
- 758365994,
- 759366764,
- 760367403,
- 761368356,
- 762368770,
- 763369236,
- 764369459,
- 765369804,
- 766370038,
- 767370699,
- 768370968,
- 769371951,
- 770372690,
- 771372980,
- 772373379,
- 773374358,
- 774374365,
- 775375067,
- 776375957,
- 777376609,
- 778377022,
- 779377880,
- 780378119,
- 781378601,
- 782379585,
- 783380031,
- 784380263,
- 785380486,
- 786381286,
- 787382061,
- 788382543,
- 789383327,
- 790383480,
- 791384252,
- 792385147,
- 793386093,
- 794386791,
- 795387746,
- 796387794,
- 797388326,
- 798388620,
- 799389317,
- 800390254,
- 801390361,
- 802391137,
- 803391774,
- 804391840,
- 805392656,
- 806393010,
- 807393596,
- 808393942,
- 809394384,
- 810395266,
- 811396030,
- 812396806,
- 813397086,
- 814397776,
- 815398493,
- 816398865,
- 817399797,
- 818400022,
- 819400774,
- 820401081,
- 821401678,
- 822401870,
- 823402108,
- 824402855,
- 825403826,
- 826404263,
- 827404885,
- 828405214,
- 829405543,
- 830405819,
- 831406306,
- 832407079,
- 833407986,
- 834408487,
- 835409002,
- 836409581,
- 837409735,
- 838410496,
- 839411186,
- 840411473,
- 841412437,
- 842413003,
- 843413581,
- 844413847,
- 845414321,
- 846414928,
- 847414968,
- 848415469,
- 849415998,
- 850416623,
- 851416844,
- 852417190,
- 853417585,
- 854418129,
- 855418272,
- 856418988,
- 857419814,
- 858419894,
- 859420657,
- 860421334,
- 861421414,
- 862421977,
- 863422817,
- 864423731,
- 865424687,
- 866424854,
- 867425288,
- 868425329,
- 869425812,
- 870426100,
- 871426511,
- 872426731,
- 873427045,
- 874427318,
- 875428087,
- 876428141,
- 877428594,
- 878428820,
- 879428968,
- 880429211,
- 881429595,
- 882429709,
- 883430073,
- 884431010,
- 885431223,
- 886432103,
- 887432405,
- 888432698,
- 889433604,
- 890434399,
- 891434419,
- 892434591,
- 893434810,
- 894435564,
- 895435972,
- 896436440,
- 897436860,
- 898437608,
- 899437853,
- 900437878,
- 901438265,
- 902438484,
- 903439471,
- 904440089,
- 905440272,
- 906440803,
- 907440953,
- 908441909,
- 909442608,
- 910442866,
- 911443481,
- 912443671,
- 913444131,
- 914444653,
- 915445358,
- 916446245,
- 917446430,
- 918446522,
- 919446899,
- 920447835,
- 921448033,
- 922448503,
- 923448880,
- 924449242,
- 925449521,
- 926450193,
- 927450883,
- 928451393,
- 929451454,
- 930452387,
- 931452531,
- 932453103,
- 933453648,
- 934453699,
- 935454200,
- 936455126,
- 937455980,
- 938456565,
- 939457444,
- 940457697,
- 941458487,
- 942459119,
- 943459979,
- 944460880,
- 945461195,
- 946461595,
- 947461706,
- 948462176,
- 949462712,
- 950462999,
- 951463873,
- 952463947,
- 953464228,
- 954464936,
- 955465101,
- 956465367,
- 957466248,
- 958466601,
- 959466627,
- 960466713,
- 961466944,
- 962467078,
- 963467750,
- 964467940,
- 965468670,
- 966469174,
- 967470053,
- 968470607,
- 969470813,
- 970471214,
- 971471669,
- 972472366,
- 973472762,
- 974473260,
- 975473405,
- 976474312,
- 977474412,
- 978474429,
- 979475222,
- 980475652,
- 981476236,
- 982477031,
- 983477170,
- 984477271,
- 985477602,
- 986478436,
- 987478490,
- 988478859,
- 989479604,
- 990479661,
- 991480260,
- 992480468,
- 993481347,
- 994481825,
- 995482536,
- 996483394,
- 997484201,
- 998484716,
- 999485607,
-1000486491 };
-uint ac_increase_length = 1000;
-#endif /* table_increase_ac_increase */
diff --git a/cesar/cp/pwl/test/override/cp/inc/context.h b/cesar/cp/pwl/test/override/cp/inc/context.h
deleted file mode 100644
index 21be941878..0000000000
--- a/cesar/cp/pwl/test/override/cp/inc/context.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef overide_cp_inc_context_h
-#define overide_cp_inc_context_h
-/* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file overide/cp/inc/context.h
- * \brief « brief description »
- * \ingroup « module »
- *
- * « long description »
- */
-#include "cp/pwl/pwl.h"
-#include "hal/phy/phy.h"
-#include "mac/common/config.h"
-
-#include "cp/pwl/inc/pwl.h"
-
-struct cp_t
-{
- cp_pwl_t pwl;
- phy_t *phy;
- mac_config_t *mac_config;
-};
-
-#endif /* overide_cp_inc_context_h */
diff --git a/cesar/cp/pwl/test/src/pwl.c b/cesar/cp/pwl/test/src/pwl.c
deleted file mode 100644
index a4c4bcfc33..0000000000
--- a/cesar/cp/pwl/test/src/pwl.c
+++ /dev/null
@@ -1,612 +0,0 @@
-/* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file src/pwl.c
- * \brief Test the PWL Module.
- * \ingroup cp_pwl
- *
- */
-#include <cyg/kernel/kapi.h>
-#include <cyg/hal/hal_arch.h>
-#include <stdio.h>
-
-#include "common/std.h"
-#include "lib/test.h"
-#include "mac/common/timings.h"
-#include "cp/cp.h"
-#include "cp/inc/context.h"
-
-#include "cp/pwl/test/inc/table.h"
-#include "cp/pwl/test/inc/table_increase.h"
-#include "cp/pwl/test/inc/table_decrease.h"
-#include "cp/pwl/test/inc/result_stable.h"
-#include "cp/pwl/test/inc/result_increase.h"
-#include "cp/pwl/test/inc/result_decrease.h"
-
-
-enum test_pwl_phy_t
-{
- TEST_PWL_PHY_NONE,
- TEST_PWL_PHY_AC_STABLE,
- TEST_PWL_PHY_AC_INC,
- TEST_PWL_PHY_AC_DEC,
- TEST_PWL_PHY_AC_CABLE
-};
-
-cp_t cp;
-uint i;
-uint zc_desired;
-uint phy_type;
-bool cco;
-uint mac_ntb_cable = 0;
-
-cyg_handle_t my_thread_handle;
-cyg_thread my_thread;
-u8 my_thread_stack [CYGNUM_HAL_STACK_SIZE_TYPICAL];
-
-/** Init
- * \param test the test object.
- *
- * This shall initialise the PWL module.
- * At the end of this test, the PWL module attributes shall be equal to 0.
- */
-void
-test_case_pwl_init (test_t test)
-{
- memset (&cp, 0, sizeof (cp_t));
- cp_pwl_init (&cp);
-
- test_case_begin (test, "PWL Init");
-
- test_begin (test, "verify")
- {
- test_fail_if (cp.pwl.frequency != 0, "Freq not initialised");
- test_fail_if (cp.pwl.bp_ntb != 0, "BP NTB not initialised");
- test_fail_if (cp.pwl.zc_ntb != 0, "ZC NTB not initialised");
- test_fail_if (cp.pwl.bp_avln_ntb[0] != 0, "BP AVLN not initialised");
- test_fail_if (cp.pwl.bp_avln_ntb[1] != 0, "BP AVLN not initialised");
- test_fail_if (cp.pwl.per_ntb != 0, "Per NTB not initialised");
- test_fail_if (cp.pwl.bto[0] != 0, "BTO 0 not initialised");
- test_fail_if (cp.pwl.bto[1] != 0, "BTO 1 not initialised");
- test_fail_if (cp.pwl.bto[2] != 0, "BTO 2 not initialised");
- test_fail_if (cp.pwl.bto[3] != 0, "BTO 3 not initialised");
- test_fail_if (cp.pwl.date_ntb[0] != 0, "Date ntb 0 not initialised");
- test_fail_if (cp.pwl.date_ntb[1] != 0, "Date ntb 1 not initialised");
- }
- test_end;
-}
-
-/** Frequency detection
- * \param test the test object.
- *
- * Shall detect the 50, 60 Hz or the coaxial cable.
- * Environment
- * This shall be use in a THREAD cause of the cyg_thread_delay function
- * it calls.
- *
- * On 50 Hz PWL
- * It shall read the PRATIC register twice and compute the zero cross gap.
- * At the end:
- * * frequency == CP_PWL_FREQ_50
- * * bp_ntb == CP_PWL_BP_50
- * * zc_ntb == CP_PWL_ZC_50
- *
- * On 60 Hz PWL
- * It shall read the PRATIC register twice and compute the zero cross gap.
- * At the end:
- * * frequency == CP_PWL_FREQ_60
- * * bp_ntb == CP_PWL_BP_60
- * * zc_ntb == CP_PWL_ZC_60
- *
- * On Coaxial
- * It shall read the PRATIC register twice and compute the zero cross gap.
- * At the end:
- * * frequency == CP_PWL_FREQ_50
- * * bp_ntb == CP_PWL_BP_50
- * * zc_ntb == CP_PWL_ZC_50
- */
-void
-test_case_pwl_frequency_detection (test_t test)
-{
- memset (&cp, 0, sizeof (cp_t));
- test_case_begin (test, "Frequency detection");
- cp.phy = (phy_t *) &cp;
-
- test_begin (test, "Frequency 50 Hz")
- {
-
- phy_type = TEST_PWL_PHY_NONE;
- zc_desired = CP_PWL_ZC_50;
- i = 0;
-
- cp_pwl_init (&cp);
- cp_pwl_acl_frequency_detection (&cp);
-
- test_fail_if (cp.pwl.frequency != CP_PWL_FREQ_50, "Wrong frequency");
- test_fail_if (cp.pwl.bp_ntb != CP_PWL_BP_50, "Wrong BP");
- test_fail_if (cp.pwl.zc_ntb != CP_PWL_ZC_50, "Wrong ZC NTB");
- test_fail_if (cp.pwl.discover_period_max_bp != 250, "Wrong interval");
- }
- test_end;
-
- test_begin (test, "Frequency 60 Hz")
- {
- zc_desired = CP_PWL_ZC_60;
- i = 0;
-
- cp_pwl_acl_frequency_detection (&cp);
-
- test_fail_if (cp.pwl.frequency != CP_PWL_FREQ_60, "Wrong frequency");
- test_fail_if (cp.pwl.bp_ntb != CP_PWL_BP_60, "Wrong BP");
- test_fail_if (cp.pwl.zc_ntb != CP_PWL_ZC_60, "Wrong ZC NTB");
- test_fail_if (cp.pwl.discover_period_max_bp != 300, "Wrong interval");
- }
- test_end;
-
- test_begin (test, "Frequency coaxial")
- {
- zc_desired = 0;
- i = 0;
-
- cp_pwl_acl_frequency_detection (&cp);
-
- test_fail_if (cp.pwl.frequency != CP_PWL_FREQ_50, "Wrong frequency");
- test_fail_if (cp.pwl.bp_ntb != CP_PWL_BP_50, "Wrong BP");
- test_fail_if (cp.pwl.zc_ntb != CP_PWL_ZC_50, "Wrong ZC NTB");
- }
- test_end;
-}
-
-/** Estimate beacon period
- * \param test the test object.
- *
- * This test shall provide the same result as the scilab simulation.
- * see cp/pwl/doc/scilab
- */
-void
-test_case_pwl_estimate_beacon_period_ac_stable (test_t test)
-{
- uint nb_iter;
- mac_config_t mac_config;
- memset (&cp, 0, sizeof (cp_t));
-
- test_case_begin (test, "Beacon period estimation");
- cp_pwl_init (&cp);
-
- *((uint*) &cp.pwl.frequency) = CP_PWL_FREQ_50;
- *((uint*) &cp.pwl.bp_ntb) = CP_PWL_BP_50;
- *((uint*) &cp.pwl.zc_ntb) = CP_PWL_ZC_50;
- memset (&mac_config, 0, sizeof (mac_config_t));
- cp.mac_config = &mac_config;
-
- /* initialise the per_ntb. */
- cp.pwl.per_ntb = cp.pwl.bp_ntb;
-
- i = 0;
- phy_type = TEST_PWL_PHY_AC_STABLE;
-
- test_begin (test, "AC Stable : Verifying the period computed")
- {
- for (nb_iter = 0; nb_iter < ac_stable_length; nb_iter ++)
- {
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
-
- test_fail_if (cp.pwl.per_ntb != result_ac_stable[nb_iter],
- "Estimation is false");
- }
- }
- test_end;
-}
-
-/** Estimate beacon period, AC increase
- * \param test the test object.
- *
- * This test shall provide the same result as the scilab simulation.
- * see cp/pwl/doc/scilab
- */
-void
-test_case_pwl_estimate_beacon_period_ac_increase (test_t test)
-{
- uint nb_iter;
- mac_config_t mac_config;
- memset (&cp, 0, sizeof (cp_t));
-
- test_case_begin (test, "Beacon period estimation");
- cp_pwl_init (&cp);
-
- *((uint*) &cp.pwl.frequency) = CP_PWL_FREQ_50;
- *((uint*) &cp.pwl.bp_ntb) = CP_PWL_BP_50;
- *((uint*) &cp.pwl.zc_ntb) = CP_PWL_ZC_50;
- memset (&mac_config, 0, sizeof (mac_config_t));
- cp.mac_config = &mac_config;
-
-
- /* initialise the per_ntb. */
- cp.pwl.per_ntb = cp.pwl.bp_ntb;
-
- cp.pwl.date_ntb[0] = 0;
- cp.pwl.date_ntb[1] = 0;
-
- i = 0;
- phy_type = TEST_PWL_PHY_AC_INC;
-
- test_begin (test, "AC Increase : Verifying the period computed")
- {
- for (nb_iter = 0; nb_iter < ac_stable_length; nb_iter ++)
- {
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
-
- test_fail_if (cp.pwl.per_ntb != result_ac_increase[nb_iter],
- "Estimation is false, i : %d", i);
- }
- }
- test_end;
-}
-
-/** Estimate beacon period, AC decrease
- * \param test the test object.
- *
- * This test shall provide the same result as the scilab simulation.
- * see cp/pwl/doc/scilab
- */
-void
-test_case_pwl_estimate_beacon_period_ac_decrease (test_t test)
-{
- uint nb_iter;
- mac_config_t mac_config;
- memset (&cp, 0, sizeof (cp_t));
-
- test_case_begin (test, "Beacon period estimation");
-
- cp_pwl_init (&cp);
- *((uint*) &cp.pwl.frequency) = CP_PWL_FREQ_50;
- *((uint*) &cp.pwl.bp_ntb) = CP_PWL_BP_50;
- *((uint*) &cp.pwl.zc_ntb) = CP_PWL_ZC_50;
- memset (&mac_config, 0, sizeof (mac_config_t));
- cp.mac_config = &mac_config;
-
-
- /* initialise the per_ntb. */
- cp.pwl.per_ntb = cp.pwl.bp_ntb;
-
- cp.pwl.date_ntb[0] = 0;
- cp.pwl.date_ntb[1] = 0;
-
- i = 0;
- phy_type = TEST_PWL_PHY_AC_DEC;
-
- test_begin (test, "AC Decrease : Verifying the period computed")
- {
- for (nb_iter = 0; nb_iter < ac_stable_length; nb_iter ++)
- {
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
-
- test_fail_if (cp.pwl.per_ntb != result_ac_decrease[nb_iter],
- "Estimation is false");
- }
- }
- test_end;
-}
-
-/** Compute the beacon period
- * \param test the test object.
- */
-void
-test_case_pwl_compute_beacon_from_schedules_data (test_t test)
-{
- uint i;
- mac_config_t mac_config;
- memset (&cp, 0, sizeof (cp_t));
-
- test_case_begin (test, "Beacon period estimation");
-
- *((uint*) &cp.pwl.frequency) = CP_PWL_FREQ_50;
- *((uint*) &cp.pwl.bp_ntb) = CP_PWL_BP_50;
- *((uint*) &cp.pwl.zc_ntb) = CP_PWL_ZC_50;
- memset (&mac_config, 0, sizeof (mac_config_t));
- cp.mac_config = &mac_config;
-
-
- cp.pwl.date_ntb[0] = 0;
- cp.pwl.date_ntb[1] = 0;
-
- test_begin (test, "update the PWL")
- {
- s16 bto[4] = {0,0,0,0};
-
- cp_pwl__sta__compute_beacon_period_start_time_ntb (&cp, 996451, bto,
- 2300);
-
- for (i = 0; i < 3; i++)
- test_fail_if (cp.pwl.bp_avln_ntb[i] !=
- 994151 + i * 1000000);
-
-
- }
- test_end;
-
- test_begin (test, "with btos")
- {
- s16 bto[4] = {0, -10, 30, 50};
-
- cp_pwl__sta__compute_beacon_period_start_time_ntb (&cp, 1000000, bto, 0);
-
- test_fail_if (cp.pwl.bp_avln_ntb[0] != 1000000);
- test_fail_if (cp.pwl.bp_avln_ntb[1] != 2000030);
- test_fail_if (cp.pwl.bp_avln_ntb[2] != 3000080);
- test_fail_if (cp.pwl.bp_avln_ntb[3] != 4000130);
- }
- test_end;
-
- test_begin (test, "with btos and BPSTO")
- {
- s16 bto[4] = {0, -10, 30, 50};
-
- cp_pwl__sta__compute_beacon_period_start_time_ntb (&cp, 1000000, bto, 250);
-
- test_fail_if (cp.pwl.bp_avln_ntb[0] != 999750);
- test_fail_if (cp.pwl.bp_avln_ntb[1] != 1999780);
- test_fail_if (cp.pwl.bp_avln_ntb[2] != 2999830);
- test_fail_if (cp.pwl.bp_avln_ntb[3] != 3999880);
- }
- test_end;
-
-}
-
-void
-test_case_pwl_get_next_date (test_t test)
-{
- test_case_begin (test, "Get the next date depending on the CCo status");
-
- test_begin (test, "do it")
- {
- mac_config_t mac_config;
- memset (&cp, 0, sizeof (cp_t));
- memset (&mac_config, 0, sizeof (mac_config_t));
- cp_pwl_init (&cp);
- cp.mac_config = &mac_config;
-
- cp.pwl.bp_avln_ntb[1] = 500000;
- cp.pwl.bp_avln_ntb[2] = 1500000;
-
- cco = true;
- test_fail_if (cp_pwl_get_next_timer_date (&cp, cco) != 1500000 -
- CP_PWL_TIMER_OFFSET_CCO);
-
- cco = false;
- test_fail_if (cp_pwl_get_next_timer_date (&cp, cco) != 500000 +
- CP_PWL_TIMER_OFFSET_STA);
- }
- test_end;
-}
-
-void
-test_case_pwl_cable (test_t test)
-{
- test_case_begin (test, "PWL on cable");
-
- test_begin (test, "Cable")
- {
- uint i;
- uint val;
- uint phy;
- phy_type = TEST_PWL_PHY_AC_CABLE;
- mac_config_t mac_config;
-
- memset (&cp, 0, sizeof (cp_t));
- memset (&mac_config, 0, sizeof (mac_config_t));
- cp_pwl_init (&cp);
- cp.mac_config = &mac_config;
- cp.phy = (phy_t*) &phy;
- cp_pwl_acl_frequency_detection (&cp);
-
- test_fail_unless (cp.pwl.cable == true);
-
- mac_ntb_cable = 2000000;
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
-
- for (i = 0, val = mac_ntb_cable;
- i < CP_PWL_BP_AVLN_NB;
- i++, val += 1000000)
- {
- test_fail_unless (cp.pwl.bp_avln_ntb[i] == val);
- test_fail_unless (cp.pwl.bto[i] == 0);
- }
-
- mac_ntb_cable = 3000001;
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
-
- for (i = 0, val = 3000000;
- i < CP_PWL_BP_AVLN_NB;
- i++, val += 1000000)
- {
- test_fail_unless (cp.pwl.bp_avln_ntb[i] == val);
- test_fail_unless (cp.pwl.bto[i] == 0);
- }
-
- /* Do a Phy date jump. */
- mac_ntb_cable = 13340000;
- cp.pwl.tracking = false;
-
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
-
- test_fail_unless (cp.pwl.tracking == true);
- for (i = 0, val = mac_ntb_cable;
- i < CP_PWL_BP_AVLN_NB;
- i++, val += 1000000)
- {
- test_fail_unless (cp.pwl.bp_avln_ntb[i] == val);
- test_fail_unless (cp.pwl.bto[i] == 0);
- }
-
-
- mac_ntb_cable = 14340001;
- val = cp.pwl.bp_avln_ntb[1];
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
- for (i = 0;
- i < CP_PWL_BP_AVLN_NB;
- i++, val += 1000000)
- {
- test_fail_unless (cp.pwl.bp_avln_ntb[i] == val);
- test_fail_unless (cp.pwl.bto[i] == 0);
- }
- }
- test_end;
-}
-
-void
-test_case_pwl_schedule_jump (test_t test)
-{
- test_case_begin (test, "Schedule jump");
-
- test_begin (test, "tracker to STA.")
- {
- uint phy = 0;
- mac_config_t mac_config;
-
- memset (&cp, 0, sizeof (cp_t));
- memset (&mac_config, 0, sizeof (mac_config_t));
- cp.phy = (phy_t *) &phy;
- cp.mac_config = &mac_config;
-
- cp_pwl_init (&cp);
- cp_pwl_acl_frequency_detection (&cp);
- cp.pwl.cable = false;
-
- cp.pwl.bp_avln_ntb[0] = 0xA3546e60;
- cp.pwl.bp_avln_ntb[1] = 0xA363b9a9;
- cp.pwl.bp_avln_ntb[2] = 0xA3730080;
- cp.pwl.bp_avln_ntb[3] = 0xA3824771;
-
- cp.pwl.date_ntb[0] = 0x094818a8;
- mac_config.ntb_offset_tck = 0x9a0e7a8b;
-
- phy_type = TEST_PWL_PHY_AC_STABLE;
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
-
- test_fail_unless (cp.pwl.bp_avln_ntb[1] - cp.pwl.bp_avln_ntb[0] ==
- cp.pwl.per_ntb);
- test_fail_unless (cp.pwl.bp_avln_ntb[2] - cp.pwl.bp_avln_ntb[1] ==
- cp.pwl.per_ntb);
- }
- test_end;
-
- test_begin (test, "First track.")
- {
- uint phy = 0;
- mac_config_t mac_config;
-
- memset (&cp, 0, sizeof (cp_t));
- memset (&mac_config, 0, sizeof (mac_config_t));
- cp.phy = (phy_t *) &phy;
- cp.mac_config = &mac_config;
-
- cp_pwl_init (&cp);
- cp_pwl_acl_frequency_detection (&cp);
- cp.pwl.cable = false;
-
- mac_config.ntb_offset_tck = 0x922ee979;
-
- phy_type = TEST_PWL_PHY_AC_STABLE;
- cp_pwl__tracker__compute_beacon_period_start_time_ntb (&cp);
-
- /* Should be the offset plus the phy_date but this one is override in
- * the test and does not add the offset. */
- test_fail_unless (cp.pwl.bp_avln_ntb[1] - cp.pwl.bp_avln_ntb[0] ==
- cp.pwl.per_ntb);
- test_fail_unless (cp.pwl.bp_avln_ntb[2] - cp.pwl.bp_avln_ntb[1] ==
- cp.pwl.per_ntb);
-
- }
- test_end;
-
-}
-
-void
-my_thread_entry (cyg_addrword_t data)
-{
- test_t test;
-
- test_init (test, 0, NULL);
-
- test_case_pwl_init (test);
- test_case_pwl_frequency_detection (test);
- test_case_pwl_estimate_beacon_period_ac_stable (test);
- test_case_pwl_estimate_beacon_period_ac_increase (test);
- test_case_pwl_estimate_beacon_period_ac_decrease (test);
- test_case_pwl_compute_beacon_from_schedules_data (test);
- test_case_pwl_get_next_date (test);
- test_case_pwl_cable (test);
- test_case_pwl_schedule_jump (test);
-
- test_result (test);
- HAL_PLATFORM_EXIT (test_nb_failed (test) == 0 ? 0 : 1);
-}
-
-int
-main (void)
-{
- // Create the thread object.
- cyg_thread_create( 1, my_thread_entry, 0, "PWL", my_thread_stack,
- CYGNUM_HAL_STACK_SIZE_TYPICAL, &my_thread_handle,
- &my_thread);
-
-
- // Activate the thread.
- cyg_thread_resume (my_thread_handle);
-
- return 0;
-}
-
-u32
-phy_clock_get_zero_cross_captured_date (phy_t *ctx)
-{
- switch (phy_type)
- {
- case TEST_PWL_PHY_NONE:
- if (i == 0)
- {
- i ++;
- return 0;
- }
- else
- {
- return zc_desired;
- }
- break;
- case TEST_PWL_PHY_AC_STABLE:
- if (i == ac_stable_length)
- return 0;
- return ac_stable[i++];
- break;
- case TEST_PWL_PHY_AC_INC:
- if (i == ac_increase_length)
- return 0;
- return ac_increase[i++];
- break;
- case TEST_PWL_PHY_AC_DEC:
- if (i == ac_decrease_length)
- return 0;
- return ac_decrease[i++];
- break;
- case TEST_PWL_PHY_AC_CABLE:
- return 0;
- break;
- }
-
- return 0;
-}
-
-u32
-mac_ntb (void)
-{
- if (phy_type == TEST_PWL_PHY_AC_CABLE)
- return mac_ntb_cable;
- else
- return cp.pwl.bp_avln_ntb[1] + 1;
-}
diff --git a/cesar/cp/pwl/test/src/pwl_new_beacon.c b/cesar/cp/pwl/test/src/pwl_new_beacon.c
deleted file mode 100644
index 0caf58aa6f..0000000000
--- a/cesar/cp/pwl/test/src/pwl_new_beacon.c
+++ /dev/null
@@ -1,103 +0,0 @@
-/* Cesar project {{{
- *
- * Copyright (C) 2009 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file src/pwl_new_beacon.c
- * \brief « brief description »
- * \ingroup « module »
- *
- * « long description »
- */
-#include <cyg/kernel/kapi.h>
-#include <cyg/hal/hal_arch.h>
-
-#include "common/std.h"
-
-#include "lib/test.h"
-
-#include "cp/cp.h"
-#include "cp/pwl/pwl.h"
-
-#include "cp/inc/context.h"
-
-enum test_enum
-{
- TEST_OLD_BEACON_PERIOD,
- TEST_NEW_BEACON_PERIOD
-};
-
-static enum test_enum period;
-static cp_t cp;
-
-void
-test_case_pwl_is_new_beacon_period (test_t test)
-{
- cp_pwl_init (&cp);
-
- /* Configure PWL module. */
- *((cp_pwl_frequency_t*) &cp.pwl.frequency) = CP_PWL_FREQ_50;
- *((cp_pwl_bp_t*) &cp.pwl.bp_ntb) = CP_PWL_BP_50;
- *((uint*) &cp.pwl.zc_ntb) = CP_PWL_ZC_50;
- cp.pwl.per_ntb = 999930;
- cp.pwl.bp_avln_ntb[0] = 0;
- cp.pwl.bp_avln_ntb[1] = cp.pwl.bp_avln_ntb[0] + cp.pwl.per_ntb;
- cp.pwl.bp_avln_ntb[2] = cp.pwl.bp_avln_ntb[1] + cp.pwl.per_ntb;
- cp.pwl.bp_avln_ntb[3] = cp.pwl.bp_avln_ntb[2] + cp.pwl.per_ntb;
-
- test_case_begin (test, "New beacon period");
-
- test_begin (test, "Not a new beacon period")
- {
- period = TEST_OLD_BEACON_PERIOD;
-
- test_fail_unless (cp_pwl_is_new_beacon_period (&cp) == false);
- }
- test_end;
-
- test_begin (test, "New beacon period")
- {
- period = TEST_NEW_BEACON_PERIOD;
-
- test_fail_unless (cp_pwl_is_new_beacon_period (&cp) == true);
- }
- test_end;
-
- cp_pwl_uninit (&cp);
-}
-
-int
-main (void)
-{
- test_t test;
-
- test_init (test, 0, NULL);
-
- test_case_pwl_is_new_beacon_period (test);
-
- test_result (test);
- HAL_PLATFORM_EXIT (test_nb_failed (test) == 0 ? 0 : 1);
- return (test_nb_failed (test) == 0 ? 0 : 1);
-}
-
-u32
-mac_ntb (void)
-{
- if (period == TEST_OLD_BEACON_PERIOD)
- {
- return cp.pwl.bp_avln_ntb[0] + 800000;
- }
- else
- {
- return cp.pwl.bp_avln_ntb[1] + 10000;
- }
-}
-
-u32
-phy_clock_get_zero_cross_captured_date (phy_t *ctx)
-{
- return 0;
-}
diff --git a/cesar/cp/sta/core/src/core.c b/cesar/cp/sta/core/src/core.c
index d9a8e74597..f94f9ec279 100644
--- a/cesar/cp/sta/core/src/core.c
+++ b/cesar/cp/sta/core/src/core.c
@@ -52,7 +52,6 @@
#include "cp/sta/action/action.h"
#include "cp/cco/action/cco_action.h"
#include "cp/sta/mgr/sta_mgr.h"
-#include "cp/pwl/pwl.h"
#include "ce/rx/cp/cp.h"
#include "cp/sta/core/inc/core.h"