summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/test/host-Makefile
blob: c2a4dcca20fd646d07bdd0dc792e3e8aee4c7b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Host specific Makefile.

# Variant is host.
VARIANT = host

# Include common defines.
include common-define.mk

# List of program to build.
HOST_PROGRAMS = test_ce_host test_ce_intervals test_ce_poly test_ce_pber\
                test_ce_bmu

test_ce_host_SOURCES = $(ce_rx_bl_test_sources_common) ecos_stub.c
test_ce_host_MODULES = $(ce_rx_bl_modules_common) ce/rx
test_ce_host_CONFIG_MODULES = cp

ce_rx_MODULE_SOURCES = tonemask.c

test_ce_intervals_SOURCES = test_intervals.c ecos_stub.c
test_ce_intervals_MODULES = $(ce_rx_bl_modules_common)
test_ce_intervals_CONFIG_MODULES = cp

test_ce_poly_SOURCES = test_poly.c ecos_stub.c
test_ce_poly_MODULES = $(ce_rx_bl_modules_common)

test_ce_pber_SOURCES = test_pber.c ecos_stub.c
test_ce_pber_MODULES = $(ce_rx_bl_modules_common)

test_ce_bmu_SOURCES = test_ber_margin_update.c ecos_stub.c
test_ce_bmu_MODULES = $(ce_rx_bl_modules_common) ce/rx

INCLUDES += ce/rx/bitloading/test/override

# Include base makefile.
include $(BASE)/common/make/top.mk

# Include some additional rules.
include common-rule.mk
tatic unsigned int current_gpio_op;
+static unsigned int current_gpio_io;
+static unsigned int current_cpld;
+
+void gpio_modify_op(int mask, int set)
+{
+ unsigned int new_gpio, changed;
+
+ new_gpio = (current_gpio_op & ~mask) | set;