From b972abd142403d99de11c37e0f50584cf23af4b4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 18 Apr 2015 15:30:46 +0800 Subject: [PATCH] runtime: fix test mode on UP --- soc/runtime/test_mode.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/soc/runtime/test_mode.c b/soc/runtime/test_mode.c index 6ab78aa76..7c5c9c65a 100644 --- a/soc/runtime/test_mode.c +++ b/soc/runtime/test_mode.c @@ -7,9 +7,8 @@ #include #include -#include "test_mode.h" -#include "rtio.h" #include "dds.h" +#include "test_mode.h" #ifdef ARTIQ_AMP @@ -105,16 +104,18 @@ static void p_ddsfud(void) #else /* ARTIQ_AMP */ +#include "rtio.h" + static void p_ttlout(int n, int value) { rtio_init(); - rtio_set_oe(rtio_get_counter() + 8000, n2, 1); - rtio_set_o(rtio_get_counter() + 8000, n2, value2); + rtio_set_oe(rtio_get_counter() + 8000, n, 1); + rtio_set_o(rtio_get_counter() + 8000, n, value); } static void p_ddssel(int channel) { - DDS_WRITE(DDS_GPIO, n2); + DDS_WRITE(DDS_GPIO, channel); } static void p_ddsreset(void)