Skip to content

Commit b972abd

Browse files
committedApr 18, 2015
runtime: fix test mode on UP
1 parent 60baed6 commit b972abd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
 

Diff for: ‎soc/runtime/test_mode.c

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
#include <generated/csr.h>
88
#include <console.h>
99

10-
#include "test_mode.h"
11-
#include "rtio.h"
1210
#include "dds.h"
11+
#include "test_mode.h"
1312

1413
#ifdef ARTIQ_AMP
1514

@@ -105,16 +104,18 @@ static void p_ddsfud(void)
105104

106105
#else /* ARTIQ_AMP */
107106

107+
#include "rtio.h"
108+
108109
static void p_ttlout(int n, int value)
109110
{
110111
rtio_init();
111-
rtio_set_oe(rtio_get_counter() + 8000, n2, 1);
112-
rtio_set_o(rtio_get_counter() + 8000, n2, value2);
112+
rtio_set_oe(rtio_get_counter() + 8000, n, 1);
113+
rtio_set_o(rtio_get_counter() + 8000, n, value);
113114
}
114115

115116
static void p_ddssel(int channel)
116117
{
117-
DDS_WRITE(DDS_GPIO, n2);
118+
DDS_WRITE(DDS_GPIO, channel);
118119
}
119120

120121
static void p_ddsreset(void)

0 commit comments

Comments
 (0)
Please sign in to comment.