We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89f4b7 commit 3a0182dCopy full SHA for 3a0182d
main.c
@@ -132,6 +132,14 @@ static void command_loop(void)
132
case S_CMD_NOP:
133
sendbyte_blocking(S_ACK);
134
break;
135
+ case S_CMD_O_DELAY:
136
+ {
137
+ uint32_t delay;
138
+ readbytes_blocking(&delay, 3);
139
+ sleep_us(delay);
140
+ sendbyte_blocking(S_ACK);
141
+ break;
142
+ }
143
case S_CMD_Q_IFACE:
144
145
sendbyte_blocking(0x01);
@@ -153,6 +161,7 @@ static void command_loop(void)
153
161
{
154
162
static const uint32_t cmdmap[8] = {
155
163
(1 << S_CMD_NOP) |
164
+ (1 << S_CMD_O_DELAY) |
156
165
(1 << S_CMD_Q_IFACE) |
157
166
(1 << S_CMD_Q_RDNMAXLEN) |
158
167
(1 << S_CMD_Q_WRNMAXLEN) |
0 commit comments