We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60baed6 commit b972abdCopy full SHA for b972abd
soc/runtime/test_mode.c
@@ -7,9 +7,8 @@
7
#include <generated/csr.h>
8
#include <console.h>
9
10
-#include "test_mode.h"
11
-#include "rtio.h"
12
#include "dds.h"
+#include "test_mode.h"
13
14
#ifdef ARTIQ_AMP
15
@@ -105,16 +104,18 @@ static void p_ddsfud(void)
105
104
106
#else /* ARTIQ_AMP */
107
+#include "rtio.h"
108
+
109
static void p_ttlout(int n, int value)
110
{
111
rtio_init();
- rtio_set_oe(rtio_get_counter() + 8000, n2, 1);
112
- rtio_set_o(rtio_get_counter() + 8000, n2, value2);
+ rtio_set_oe(rtio_get_counter() + 8000, n, 1);
113
+ rtio_set_o(rtio_get_counter() + 8000, n, value);
114
}
115
116
static void p_ddssel(int channel)
117
- DDS_WRITE(DDS_GPIO, n2);
118
+ DDS_WRITE(DDS_GPIO, channel);
119
120
121
static void p_ddsreset(void)
0 commit comments